@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas:wght@400;700&display=swap');

/* ==========================================================================
   Estilos Base
   ========================================================================== */
html {
    height: 100%; /* Asegura que el HTML ocupe toda la altura */
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    /* Fondo dorado navideño con imagen */
    background-image: url('../medios/239.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #1d3557;
    margin: 0;
    display: flex; /* Habilita flexbox */
    flex-direction: column; /* Apila los elementos verticalmente */
    min-height: 100vh; /* Altura mínima del 100% de la pantalla */
}

h1, h2, h3 {
    font-family: 'Mountains of Christmas', cursive;
    font-weight: 700;
    color: #d62828; /* Un rojo navideño más intenso */
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Hacemos que el contenido principal sea flexible para empujar el footer */
.site-content {
    /* El padding-top ahora se calcula con JavaScript */
    flex: 1 0 auto; /* Crece para ocupar el espacio y empujar el footer */
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: #333;
}

/* Imágenes de las secciones principales */
.section-images {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 32px 0 0 0;
}
.section-img {
    width: 320px;
    max-width: 90vw;
    height: 550px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(230,57,70,0.13);
    transition: transform .3s, box-shadow .3s;
    background: #fff;
}
.section-img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(230,57,70,0.22);
}

@media (max-width: 600px) {
    .section-img {
        width: 98vw;
        height: 550px;
        margin-bottom: 18px;
    }
    .section-images {
        gap: 12px;
    }
}
.animated-section {
	opacity: 0;
	transform: translateY(40px);
	animation: fadeInUp 1.2s cubic-bezier(.42,0,.58,1) forwards;
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(40px);}
	to { opacity: 1; transform: translateY(0);}
}

/* ====================================================
   ESTILOS GENERALES DE TÍTULOS
   ==================================================== */
h2 {
    text-align: center;
    color: var(--color-primary);
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* ====================================================
   ESTILOS NAVBAR
   ==================================================== */
.site-header {
    background: rgba(239, 72, 86, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(44, 106, 79, 0.10);
    transition: background-color 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Estilos específicos para el header en la página de inicio */
.site-header.home {
    background: transparent;
    box-shadow: none;
}

.site-header.home.header-scrolled {
    background: rgba(236, 57, 72, 0.8);
    box-shadow: 0 4px 24px rgba(44, 106, 79, 0.10);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-logo-link .custom-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px #e63946aa);
    transition: all .3s;
}

.main-navigation {
    flex: 1;
}

.menu-toggle {
    display: none; /* Oculto por defecto */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.main-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-menu a {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all .3s;
    text-decoration: none;
    color: #fff;
}
.full-section-link h2 { /* Quitamos el subrayado de los títulos */
    color: #d62828; /* Rojo navideño más intenso */
    /* text-decoration: underline; */
    /* text-underline-offset: 8px; */
    transition: color 0.3s; /* Solo transición de color */
}
.full-section-link:hover h2 { color: #e63946; text-decoration-color: #e63946; }

.main-menu a:hover {
    background: #e7151599;
    color: #E63946;
    text-decoration: none;
}

/* Estilos para el menú hamburguesa y modo móvil */
@media (max-width: 900px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block; /* Muestra el botón de hamburguesa */
    }

    .main-menu {
        display: none; /* Oculto por defecto en móvil */
        flex-direction: column;
        position: fixed; /* Cambiado a fixed para el overlay */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(45, 106, 79, 0.95); /* Verde oscuro, más opaco */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding-top: 120px; /* Espacio para el logo y botón de cierre */
        z-index: 1000; /* Justo debajo del toggle */
        overflow-y: auto;
    }

    .main-menu.open {
        display: flex; /* Se muestra cuando tiene la clase 'open' */
    }

    .main-menu a {
        padding: 1.2rem;
        text-align: center;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.5rem;
        color: #fff;
    }

    .main-menu li:last-child a {
        border-bottom: none;
    }
}

/* Video de fondo en la página de inicio */
.home-hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1; /* Detrás de todo el contenido */
}

/* Ajuste para que el contenido principal no sea tapado por el header */
.home .hero-section {
    min-height: 100vh;
}



/* Estilos para la imagen de la sección "Nuestra Historia" */
.nuestra-historia-logo {
    height: 150px;
    width: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.countdown-container .time-unit span:first-child {
    font-size: 3.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 16px #fff, 0 0 32px #e63946, 0 0 48px #fff;
    animation: shine 1.2s infinite alternate;
    letter-spacing: 2px;
    filter: brightness(1.3) drop-shadow(0 0 8px #fff);
}

.music-glass-btn {
    border: none;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    box-shadow: 0 2px 12px #e63946aa;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
    cursor: pointer;
    transition: box-shadow .3s, background .3s;
    position: relative;
    z-index: 2;
}

.music-glass-btn:active {
    box-shadow: 0 4px 24px #e63946cc;
    background: rgba(255,255,255,0.28);
}

@media (max-width: 600px) {
    .countdown-container {
        flex-direction: column;
        gap: 24px;
        padding: 18px;
    }
    .music-glass-btn {
        width: 44px;
        height: 44px;
        margin: 0 4px;
    }
}

@keyframes shine {
    0% {
        text-shadow: 0 0 16px #fff, 0 0 32px #e63946, 0 0 48px #fff;
        filter: brightness(1.3) drop-shadow(0 0 8px #fff);
    }
    100% {
        text-shadow: 0 0 32px #fff, 0 0 48px #e63946, 0 0 64px #fff;
        filter: brightness(1.7) drop-shadow(0 0 16px #e63946);
    }
}
.calculator-box.mejorada {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calculator-box.mejorada .input-group {
    margin-bottom: 20px;
}

.calculator-box.mejorada label {
    color: var(--color-primary);
    font-weight: bold;
}

.calculator-box.mejorada input[type="range"] {
    width: 100%;
    margin: 10px 0;
}

.calculator-box.mejorada .height-display-container {
    display: flex;
    justify-content: space-between;
    color: var(--color-dark);
}

.calculator-box.mejorada #height_display {
    color: var(--color-primary);
    font-weight: bold;
}

.calculator-box.mejorada fieldset {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.calculator-box.mejorada legend {
    padding: 0 10px;
    font-weight: bold;
    color: var(--color-primary);
}

.calculator-box.mejorada .tree-options-container {
    display: flex;
    justify-content: space-around;
}

.calculator-box.mejorada .tree-option {
    flex: 1;
    margin: 0 10px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.3s;
}

.calculator-box.mejorada .tree-option input[type="radio"] {
    display: none;
}

.calculator-box.mejorada .tree-option.selected {
    border-color: var(--color-primary);
}

.calculator-box.mejorada #calculate_btn {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
    display: block;
    width: 100%;
    margin-top: 10px;
}

.calculator-box.mejorada #calculate_btn:hover {
    background: #c52b38;
}

.calculator-box.mejorada #results {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s, transform 0.5s, max-height 0.5s;
}

.calculator-box.mejorada #results.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
}

.calculator-box.mejorada .results-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.calculator-box.mejorada .result-item {
    margin-bottom: 10px;
}

.calculator-box.mejorada .result-item strong {
    color: var(--color-primary);
}

.calculator-box.mejorada .result-item span {
    font-size: 1.2rem;
}

.calculator-box.mejorada #res_lights_bulbs {
    font-size: 0.9rem;
    color: var(--color-dark);
}

/* Fin Estilos Calculadora */

/* ----------------------------------------------------\
   HERO SECTION
   ---------------------------------------------------- */
/* Hero Section mejorada */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: var(--color-light); /* Texto blanco para el contenido del hero */
}
.hero-video {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: 0;
	pointer-events: none;
}
.shadow-gradient {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: linear-gradient(180deg,rgba(0,0,0,0.55) 0%,rgba(0,0,0,0.85) 100%);
	z-index: 1;
}
.hero-content {
	position: relative;
	z-index: 2;
}

body.home-page {
    background-image: url('../medios/239.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

/* Ajuste para que el header fijo no tape los títulos al navegar con anclas */
.content-section[id] {
    scroll-margin-top: 100px; /* Ajusta este valor según la altura de tu header */
}


/* Estilo para los subtítulos (el primer párrafo de cada sección) */
.content-section > p:first-of-type {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    color: #457b9d;
}

/* ----------------------------------------------------\
   5. CONTADOR REGRESIVO
   ---------------------------------------------------- */
.countdown-container {
	/* Estilos para el efecto cristal rojo */
	background: rgba(230, 57, 70, 0.85);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 30px;
	border-radius: 15px;
	margin-top: 20px;
	box-shadow: 0 8px 32px rgba(230, 57, 70, 0.4);
	position: relative;
	/* Flexbox para alinear contador y botones */
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px; /* Espacio entre contador y botones */
	text-align: center;
}

.countdown-container h2 {
	color: var(--color-light);
	font-size: 1.5rem;
	margin-bottom: 30px;
	font-weight: 400;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mensaje cuando el contador llega a cero */
.countdown-finished-message {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Ajustes responsive adicionales del bloque contador / controles de audio */
@media (max-width: 720px){
	#countdown-timer{
        flex-wrap: nowrap; /* Evita que el contador se divida en varias líneas */
        gap: 10px; /* Reduce el espacio entre unidades de tiempo */
        margin-right:0;
    }
	.time-unit{padding:12px 18px;}
	.time-unit span:first-child{font-size:2.6rem;}
}

@media (max-width: 560px){
    .countdown-container {
        flex-direction: column; /* Apila el contador y los botones */
        gap: 20px;
    }
    #countdown-timer {
        width: 100%; /* Ocupa todo el ancho disponible */
        gap: 2%; /* Espacio flexible entre cajas */
    }
    .time-unit {
        flex: 1; /* Cada caja ocupa el mismo espacio flexible */
        padding: 8px 2px; /* Padding vertical, mínimo horizontal */
        min-width: 0; /* IMPORTANTE: Reseteamos el ancho mínimo */
    }
    .time-unit span:first-child { font-size: 1.6rem; } /* Números más pequeños */
    .time-unit span:last-child { font-size: 0.5rem; } /* Texto más pequeño */

    .countdown-controls {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
}
@media (max-width:400px){
	/* Ya no necesitamos esta regla específica */
}

#countdown-timer {
	display: flex;
	justify-content: center;
	gap: 15px;
	color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.time-unit {
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,0.1);
	padding: 15px 25px;
	border-radius: 12px;
	backdrop-filter: blur(5px);
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	align-items: center;
	font-weight: bold;
}

.time-unit span:first-child {
	font-size: 3.5rem;
	color: #fff;
	line-height: 1;
	margin-bottom: 5px;
	/* Animación de pulsación festiva */
	animation: pulse 1.5s infinite alternate; 
}

@keyframes pulse {
	from {
		text-shadow: 0 0 5px rgba(255, 196, 0, 0.5);
	}
	to {
		text-shadow: 0 0 15px var(--color-secondary), 0 0 20px var(--color-secondary);
	}
}

.time-unit span:last-child {
	font-size: 0.9rem;
	color: #fff;
	text-transform: uppercase;
}

/* ----------------------------------------------------\
   6. GRID DE TARJETAS (Tendencias, Colecciones, Inspiración, Encuéntranos)
   ---------------------------------------------------- */
.card-grid {
	display: grid;
	/* Layout responsivo: mínimo 300px por columna */
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
	gap: 30px;
	margin-top: 50px;
}

.card {
	background: var(--color-light);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
	text-align: center; /* Por defecto para colecciones/tendencias */
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 196, 0, 0.5); /* Efecto dorado sutil al pasar */
}

.card img {
	width: 100%;
	height: auto;
	display: block;
}

.card-body {
	padding: 25px;
}

.card-body h3 {
	color: var(--color-primary);
	margin-bottom: 10px;
}

.card a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.card a:hover {
	color: var(--color-secondary);
}

/* Estilo para que toda la tarjeta sea un enlace */
.card-link {
	text-decoration: none;
	color: inherit; /* Hereda el color del texto para no tener subrayados azules */
	display: block; /* Asegura que el enlace ocupe todo el espacio de la tarjeta */
}

/* ----------------------------------------------------\
   7. CALCULADORA DE ADORNOS
   ---------------------------------------------------- */
#calculadora {
	background-color: transparent !important;
}

.calculator-box {
	border: 1px solid var(--color-border);
	background: var(--color-light);
}

.calculator-box label {
	font-size: 1rem;
	color: var(--color-dark);
}

.calculator-box select,
.calculator-box input[type="number"] {
	appearance: none;
	-webkit-appearance: none;
	background-color: #fafafa;
	border: 1px solid var(--color-border) !important;
	font-size: 1rem;
}

.calculator-box button[type="submit"] {
	background-color: var(--color-primary) !important;
	transition: background-color 0.3s ease;
}

.calculator-box button[type="submit"]:hover {
	background-color: #800000; /* Rojo más oscuro al pasar el mouse */
}

#results {
	border-color: var(--color-border) !important;
}

#results strong {
	color: var(--color-primary);
	font-weight: 700;
}

/* ----------------------------------------------------\
   8. TESTIMONIOS
   ---------------------------------------------------- */
.testimonials-section {
	background: var(--color-secondary);
	padding: 40px 0;
	text-align: center;
}
.testimonials {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
}
.testimonial-card {
	background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    padding-top: 4rem; /* Espacio para el ícono */
    position: relative;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-style: italic;
    color: #333;
}
.testimonial-icon {
    position: absolute;
    top: -25px; /* Mitad fuera de la tarjeta */
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #E63946; /* Rojo de Papá Noel */
    color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-author {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-style: normal;
    color: #E63946;
}

.social-section {
    background: #f9f9f9;
    padding: 40px 20px;
}

/* ----------------------------------------------------\
   9. GALERÍA
   ---------------------------------------------------- */
.gallery-section {
	background: var(--color-accent);
	padding: 40px 0;
	text-align: center;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 18px;
	margin-top: 24px;
}
.gallery-grid img {
	width: 100%;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0,0,0,0.12);
	border: 3px solid var(--color-gold);
	transition: transform 0.2s;
}
.gallery-grid img:hover {
	transform: scale(1.07) rotate(-2deg);
	border-color: var(--color-primary);
}

/* ----------------------------------------------------\
   10. MEDIA QUERIES (Responsividad)
   ---------------------------------------------------- */
@media (max-width: 768px) {
	/* Header Responsive */
	.main-menu {
		flex-direction: column;
		gap: 5px;
		padding-top: 10px;
	}
    
	.site-header {
		padding: 10px 0;
		background: rgba(230, 94, 94, 0.2);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border: none;
		box-shadow: none;
	}
    
	h2 {
		font-size: 2rem;
	}
    
	.content-section {
		padding: 50px 15px;
	}
	.collections-container {
        flex-direction: column;
        align-items: center;
    }

    .collection-card {
        max-width: 90%; /* Ocupa más ancho en móviles */
        margin-bottom: 2rem;
    }
}@media (max-width: 480px) {
	.time-unit span:first-child {
		font-size: 2rem;
	}
	.countdown-container h2 {
		font-size: 1.2rem;
	}
}

.christmas-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-gold) 100%);
	color: var(--color-secondary);
	border: none;
	border-radius: 40px;
	padding: 12px 28px;
	font-size: 1.15rem;
	font-weight: bold;
	box-shadow: 0 4px 16px rgba(0,0,0,0.18);
	cursor: pointer;
	transition: background 0.3s, transform 0.2s;
	margin-top: 24px;
	outline: none;
}
.christmas-btn:hover {
	background: linear-gradient(90deg, var(--color-gold) 60%, var(--color-primary) 100%);
	transform: scale(1.05);
}
.btn-icon {
	display: flex;
	align-items: center;
}
.btn-text {
	font-family: 'Montserrat', Arial, sans-serif;
	letter-spacing: 1px;
}
.social-icons {
	display: flex;
	gap: 18px;
	margin-top: 18px;
	justify-content: center;
}
.social-icon img {
	width: 36px;
	height: 36px;
	filter: drop-shadow(0 2px 8px var(--color-gold));
	transition: transform 0.2s;
}
.social-icon:hover img {
	transform: scale(1.15) rotate(-8deg);
}
.crystal-btn {
	background: #E63946;
	color: #fff;
	border: none;
	box-shadow: 0 4px 15px rgba(230,57,70,0.4);
	border-radius: 40px;
	padding: 14px 32px;
	font-size: 1.15rem;
	font-weight: bold;
	transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
	margin-left: 30px;
	cursor: pointer;
}
.crystal-btn:hover {
	background: #d62f3c;
	box-shadow: 0 6px 20px rgba(230,57,70,0.6);
	transform: scale(1.05);
}

.crystal-menu-item {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.crystal-menu-item:hover, .crystal-menu-item:focus {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  color: #fff;
  outline: none;
}

/* ====== NUEVO MENÚ HAMBURGUESA CIRCULAR ====== */
#menu {
  z-index: 1500; /* Asegura que el menú esté por encima de otros elementos */
  display: none; /* Oculto por defecto, se muestra en media query */
}

#menu-bar {
  width: 45px;
  height: 40px;
  margin: 30px 0 20px 20px;
  cursor: pointer;
}

.bar {
  height: 5px;
  width: 100%;
  background-color: #ffffff; /* Verde Navidad */
  display: block;
  border-radius: 5px;
  transition: 0.3s ease;
}

#bar1 { transform: translateY(-4px); }
#bar3 { transform: translateY(4px); }

.nav {
  transition: 0.3s ease;
  display: none;
}
.nav ul { padding: 0 22px; }
.nav li { list-style: none; padding: 12px 0; }
.nav li a {
  color: white;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px; /* Espacio entre el icono y el texto */
}
.nav li a:hover { font-weight: bold; }

.menu-bg, #menu {
  top: 15px; /* Ajustamos la posición vertical */
  right: 20px; /* Lo movemos a la derecha */
  position: fixed; /* Usamos fixed para que se posicione relativo a la ventana */
}

.menu-bg {
  z-index: 1499;
  width: 0;
  height: 0;
  margin: 0; /* Reseteamos el margen */
  background: radial-gradient(circle, #2D6A4F, #1B4332); /* Verde Navidad */
  border-radius: 50%;
  transition: 0.3s ease;
}

.change { display: block; }
.change .bar { background-color: white; }
.change #bar1 { transform: translateY(4px) rotateZ(-45deg); }
.change #bar2 { opacity: 0; }
.change #bar3 { transform: translateY(-6px) rotateZ(45deg); }

/* Ajustamos el tamaño y la transformación para que se estire hacia abajo */
.change-bg {
    width: 120vw; height: 77vh; transform: translate(35%, -10.5%);
}

@media (min-width:901px){ #menu, .menu-bg {display:none;} .custom-logo{height:120px !important;} }
@media (max-width:900px){ 
    #menu{display:block;} 
    .main-menu{display:none;} 
    .site-header{padding:6px 0 !important;background:rgba(220, 5, 44, 0.817) !important;} 
    .custom-logo{height:100px !important;} 
    main, .site-content { padding-top: 60px; } /* Añade espacio para el header */
}
@media (max-width:600px){
    .custom-logo-link .custom-logo {height: 70px !important;} /* Reducimos el logo en móviles */
    .hero-section{padding-top:225px;} 
}

/* Botón música */
#play-music{position:relative;overflow:hidden;transition:background .4s,transform .3s;}
#play-music.playing{background:linear-gradient(135deg,#06b347,#0e8f39);box-shadow:0 0 0 3px rgba(255,255,255,.25),0 8px 22px -6px rgba(0,0,0,.45);}
#play-music .equalizer{display:inline-flex;align-items:flex-end;gap:2px;margin-left:8px;}
#play-music .bar{width:3px;height:4px;background:#fff;animation:equalize 1s infinite ease-in-out;animation-play-state:paused;opacity:.7;border-radius:2px;}
#play-music.playing .bar{animation-play-state:running;}
#play-music .bar:nth-child(2){animation-delay:.2s}
#play-music .bar:nth-child(3){animation-delay:.4s}
#play-music .bar:nth-child(4){animation-delay:.6s}
@keyframes equalize{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
#play-music .status-label{display:inline-block;min-width:120px;text-align:left;}
/* Botón Mute (mismo diseño que crystal-btn) */
#mute-music{position:relative;overflow:hidden;transition:background .4s,transform .3s;}
#mute-music[aria-pressed="true"]{background:linear-gradient(135deg,#E63946,#9b1c26);box-shadow:0 0 0 3px rgba(255,255,255,.25),0 8px 22px -6px rgba(0,0,0,.45);}
#mute-music:hover{transform:translateY(-6px);} 
#mute-music .btn-icon{display:inline-flex;align-items:center;justify-content:center;}

#countdown {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* Botones de música navideña junto al contador */
.christmas-btn.crystal-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(230, 57, 70, 0.18);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(230,57,70,0.12);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    outline: none;
}
.christmas-btn.crystal-btn:hover {
    background: rgba(230, 57, 70, 0.32);
    transform: scale(1.04);
}
.christmas-btn .btn-icon svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    transition: filter 0.3s;
    filter: drop-shadow(0 2px 6px #e63946aa);
}
.christmas-btn .equalizer {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    margin-left: 8px;
    height: 18px;
}
.christmas-btn .bar {
    width: 3px;
    height: 4px;
    background: #fff;
    opacity: .7;
    border-radius: 2px;
    animation: equalize 1s infinite ease-in-out;
    animation-play-state: paused;
}
.christmas-btn.playing .bar {
    animation-play-state: running;
}
.christmas-btn .bar:nth-child(2){animation-delay:.2s}
.christmas-btn .bar:nth-child(3){animation-delay:.4s}
.christmas-btn .bar:nth-child(4){animation-delay:.6s}
@keyframes equalize{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
.christmas-btn .status-label {
    min-width: 80px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Responsive para botones junto al contador */
@media (max-width: 600px) {
    .countdown-container {
        flex-direction: column !important;
        gap: 18px !important;
        padding: 18px !important;
    }
    #countdown-timer {
        margin-bottom: 10px;
    }
    .christmas-btn.crystal-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        font-size: 0.95rem;
    }
    .christmas-btn .btn-icon svg {
        width: 20px;
        height: 20px;
    }
    .christmas-btn .status-label {
        min-width: 60px;
        font-size: 0.9rem;
    }
}

/* Botones redondos de música navideña estilo cristal */
.music-glass-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(230,57,70,0.12);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    outline: none;
    margin: 0 8px;
}
.music-glass-btn:hover {
    background: rgba(230, 57, 70, 0.32);
    transform: scale(1.08);
}
.music-glass-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    filter: drop-shadow(0 2px 6px #e63946aa);
    transition: fill 0.3s;
}
@media (max-width: 600px) {
    .countdown-container {
        flex-direction: column !important;
        gap: 18px !important;
        padding: 18px !important;
    }
    #countdown-timer {
        margin-bottom: 10px;
    }
    .music-glass-btn {
        width: 44px;
        height: 44px;
        margin: 0 4px;
    }
    .music-glass-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================================================
   Galerías de Páginas Secundarias (Tendencias, Inspiración, Colecciones)
   ========================================================================== */

/* Contenedores de las galerías para un layout consistente */
.gallery,
.inspiration-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.collections-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.collection-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    flex: 1 1 300px; /* Permite que las tarjetas crezcan y se encojan con un tamaño base */
    max-width: 350px; /* Ancho máximo para mantener la estética */
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Estilo unificado para todas las imágenes de las galerías */
.gallery-item img,
.inspiration-gallery img,
.collection-card img {
    width: 100%;
    height: 550px; /* Altura fija para uniformidad */
    object-fit: cover; /* Evita que la imagen se deforme */
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transición suave */
    display: block;
}

/* Efecto de zoom al pasar el ratón */
.gallery-item:hover img,
.inspiration-gallery img:hover,
.collection-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Estilos para el texto dentro de las tarjetas */
.gallery-item h3, .collection-info h3 {
    color: #E63946;
    margin-top: 1rem;
}

.gallery-item p, .collection-info p {
    padding: 0 1rem 1rem;
    flex-grow: 1;
}

.collection-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.btn-coleccion {
    display: inline-block;
    background-color: #E63946;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0 1rem 1rem;
    transition: background-color 0.3s;
}

.btn-coleccion:hover {
    background-color: #d62828;
}

.site-footer {
    background-color: #1d3557;
    color: #f1faee;
    padding: 40px 20px;
    text-align: center;
}

/* ==========================================================================
   Calculadora Mágica
   ========================================================================== */

.magic-calculator-container {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 10px 10px 30px #d9d9d9, -10px -10px 30px #ffffff;
    max-width: 600px;
    margin: 2rem auto;
}

.magic-calculator-container .input-group,
.magic-calculator-container fieldset {
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

.magic-calculator-container label,
.magic-calculator-container legend {
    display: block;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.5rem;
    color: #1d3557;
    margin-bottom: 1rem;
    text-align: center;
}

/* Estilo para el slider de altura - ¡El barrilete! */
.tree-height-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    /* Usamos un gradiente dinámico para el efecto de llenado */
    background: linear-gradient(to right, #e63946 0%, #e63946 var(--slider-fill-percentage, 50%), #a8dadc var(--slider-fill-percentage, 50%), #a8dadc 100%);
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}

.tree-height-slider:hover {
    opacity: 1;
}

/* El "pulgar" del slider */
.tree-height-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #e63946;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #f1faee;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.tree-height-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #e63946;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #f1faee;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.height-display-container {
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e63946;
}

/* Opciones de tipo de árbol */
.tree-options-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
}

.tree-options-container .tree-option {
    cursor: pointer;
}

.tree-options-container .tree-option input[type="radio"] {
    display: none; /* Ocultamos el radio button real */
}

.tree-options-container .tree-option-label {
    display: block;
    padding: 10px 20px;
    background: #a8dadc;
    color: #1d3557;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tree-options-container .tree-option input[type="radio"]:checked + .tree-option-label {
    background: #457b9d;
    color: #f1faee;
    border-color: #e63946;
    transform: scale(1.1);
}

/* Botón de Calcular */
.calculate-button {
    display: block;
    margin: 2rem auto 1.5rem;
    padding: 12px 30px;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 1.6rem;
    color: #e63946; /* Letras rojas */
    background-color: #2a9d8f; /* Fondo verde */
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.4);
    width: auto; /* Ancho automático */
}

.calculate-button:hover {
    background-color: #264653;
    color: #f1faee;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(38, 70, 83, 0.5);
}

.calculate-button .fa-magic {
    margin-right: 10px;
    animation: sparkle 1.5s infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* Contenedor de resultados */
.results-container {
    background: #f1faee;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
    border: 2px dashed #a8dadc;
}

.results-container h3 {
    margin-top: 0;
    color: #1d3557;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.result-item {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-label {
    font-weight: bold;
    color: #457b9d;
    font-size: 0.9rem;
}

.result-label .fas {
    margin-right: 5px;
    color: #e63946;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1d3557;
}

/* ==========================================================================
   Estilos movidos desde HTML/JS para centralización
   ========================================================================== */

/* --- Estilos del Canvas de Nieve --- */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.7;
}

/* --- Estilos de los iconos de música --- */
/* El estado se controla desde JS, aquí solo definimos el estado inicial */
#icon-pause,
#icon-unmute {
    display: none;
}

/* --- Estilos de contenido del Index --- */
.section-subtitle {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.text-center {
    text-align: center;
}

.full-section-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.centered-content {
    max-width: 800px;
    margin: 0 auto;
}

/* --- Estilos del Footer --- */
.site-footer {
    background: #2D6A4F;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-column p { color: #f1faee; }
.footer-title { color: var(--color-gold, #FFD700); margin-bottom: 15px; }
.footer-column.footer-social { text-align: center; }
.contact-list { list-style: none; padding: 0; color: #f1faee; }
.contact-list li { margin-bottom: 10px; }
.contact-list a { color: #fff; text-decoration: underline; }
.footer-icons { display: flex; justify-content: center; gap: 20px; }
.footer-icons a { display: inline-block; }
.social-icon-img { width: 36px; height: 36px; filter: invert(1) drop-shadow(0 1px 4px var(--shadow-color)); }
.site-info { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.site-info p { font-size: 0.9rem; color: #f1faee; }
.site-info a { color: #fff; text-decoration: underline; }

/* --- Estilos de la sección "Encuéntranos y Comercializa" --- */
#encuentranos-comercializa {
    background: linear-gradient(90deg, #E63946 60%, #e80404 100%);
    color: #fff;
    padding: 48px 20px;
    text-align: center;
}

#encuentranos-comercializa h2 {
    color: #fff; /* Asegura que el título sea blanco */
}

#encuentranos-comercializa p {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 24px auto;
    color: #f1faee; /* Color claro para el párrafo */
}

/* --- Estilos para los iconos de redes sociales en el cuerpo de la página --- */
.social-section .social-icons img {
    width: 36px;
    height: 36px;
    filter: invert(1) drop-shadow(0 1px 4px var(--shadow-color));
}

/* --- Estilos para el feed de Instagram (blockquote original) --- */
.instagram-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas por defecto */
    gap: 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.instagram-media {
    width: 100% !important;
    max-width: 320px !important; /* Ancho máximo por post */
    margin: auto !important;
    min-width: unset !important; /* Resetea el min-width de Instagram */
}

@media (max-width: 768px) {
    .instagram-feed-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Higher than navbar */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh; /* Adjust as needed */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -20px; /* Adjust position relative to image */
    right: -20px; /* Adjust position relative to image */
    background: #e63946;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.lightbox-close:hover {
    background: #d62828;
    transform: scale(1.1);
}

.lightbox-caption {
    color: white;
    margin-top: 10px;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
    }
}