@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');

/* ======== 1. VARIABLES Y CONFIGURACIÓN BASE ======== */
:root {
    --verde: #1b5900;
    --beish: #e6d97a;
    --bordo: #3c0012;
    --naranja: #d36f00;
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7281;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* ======== SOLUCIÓN DESBORDAMIENTO ======== */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    overflow-x: hidden;
}

body.loaded {
    opacity: 1;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.bg-verde {
    background-color: var(--verde);
}

.bg-beish {
    background-color: var(--beish);
}

.bg-bordo {
    background-color: var(--bordo);
}

.bg-naranja {
    background-color: var(--naranja);
}

.text-verde {
    color: var(--verde);
}

.text-beish {
    color: var(--beish);
}

.text-bordo {
    color: var(--bordo);
}

.text-naranja {
    color: var(--naranja);
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-gradient-gray {
    background-image: linear-gradient(to bottom, #ffffff, var(--gray-50));
}

.bg-gradient-gray-alt {
    background-image: linear-gradient(to bottom, var(--gray-50), #ffffff);
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-white {
    color: #ffffff;
}

/* ... (sección 2. ANIMACIONES sigue igual) ... */
.floating-animation {
    animation: floating 3s ease-in-out infinite;
    position: absolute;
    border-radius: 9999px;
}

.float-1 {
    top: 5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--beish);
}

.float-2 {
    top: 10rem;
    right: 5rem;
    width: 4rem;
    height: 4rem;
    background-color: var(--naranja);
}

.float-3 {
    bottom: 5rem;
    left: 25%;
    width: 3rem;
    height: 3rem;
    background-color: var(--beish);
}

.float-4 {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--naranja);
}

.float-5 {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    width: 4rem;
    height: 4rem;
    background-color: var(--beish);
}

.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
    opacity: 0;
    transform: translateX(50px);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(211, 111, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(211, 111, 0, 0.6);
    }
}

/* ======== 3. NAVEGACIÓN (HEADER) ======== */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#main-header.scrolled .logo-title {
    color: var(--verde);
}

#main-header.scrolled .nav-link {
    color: var(--verde);
}

#main-header.scrolled .nav-link:hover {
    color: var(--naranja);
}

/* Color del botón hamburguesa en scroll */
#main-header.scrolled .mobile-menu-btn .line {
    background: var(--verde);
}

.navbar-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    /* h-16 */
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon-wrapper {
    flex-shrink: 0;
    width: 3rem;
    /* w-12 */
    height: 3rem;
    /* h-12 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo para la imagen SVG del logo */
.logo-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-title-wrapper {
    margin-left: 1rem;
}

.logo-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--beish);
    transition: color 0.3s ease;
}

/* Menú Desktop */
.nav-links-desktop {
    display: none;
}

.nav-links-list {
    margin-left: 2.5rem;
    display: flex;
    align-items: baseline;
    gap: 2rem;
}

.nav-link {
    position: relative;
    overflow: hidden;
    color: var(--beish);
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--naranja);
}

/* ======== MEJORA HOVER NAV DESKTOP ======== */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--naranja);
    /* Animación de "crecer" desde el centro */
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: center;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Menú Móvil */
.mobile-menu-button-wrapper {
    display: block;
}

/* ======== MEJORA BOTÓN HAMBURGUESA ======== */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    /* 32px */
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
}

.line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--beish);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Animación a "X" */
.mobile-menu-btn.open .line-1 {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.open .line-2 {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-btn.open .line-3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hidden {
    display: none;
}

.mobile-menu-links {
    padding: 0.5rem 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--verde);
    text-decoration: none;
}

.mobile-nav-link:hover {
    color: var(--naranja);
}

/* ======== 4. HERO SECTION ======== */
.hero-gradient {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Degradado de fallback si no hay imagen */
    background: linear-gradient(135deg, var(--verde) 0%, var(--bordo) 100%);
}

/* --- NUEVA CLASE PARA LA IMAGEN DE FONDO --- */
.hero-with-background {
    background: url('img/fincas-22-1.jpg') center center / cover no-repeat;
    /* Ajusta la ruta de la imagen */
    position: relative;
    /* Asegura que el overlay se posicione correctamente */
    background-attachment: fixed;
}

/* Overlay para oscurecer la imagen y mantener el texto legible */
.hero-with-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(27, 89, 0, 0.808) 0%, rgba(60, 0, 18, 0.644) 100%);
    z-index: 1;
}

/* Asegura que el contenido del hero esté sobre el overlay */
.hero-content-container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-title span {
    font-family: 'Cinzel Decorative', serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 2rem;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--naranja);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #f97316;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

/* ======== 5. SECCIONES GENERALES (HEADER Y PRODUCTOS) ======== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.product-grid {
    display: grid;
    grid-template-columns: 2fr;
    gap: 2rem;
}

.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 14rem;
    object-fit: contain;
}

.product-card-content {
    padding: 2rem;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.product-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    text-align: center;
}

.product-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 1.875rem;
    font-weight: 700;
}

.price-unit {
    color: var(--gray-500);
    margin-left: 0.5rem;
}

.product-cta-wrapper {
    text-align: center;
}

.cta-button-product {
    display: inline-block;
    text-decoration: none;
    background-color: transparent;
    border: 2px solid var(--verde);
    color: var(--verde);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.cta-button-product:hover {
    background-color: var(--verde);
    color: white;
}

/* ======== 6. PARALLAX CTA SECTION ======== */
.parallax-bg {
    height: 24rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-overlay {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.parallax-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.parallax-subtitle {
    font-size: 1.25rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.cta-button-light {
    background-color: var(--naranja);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button-light:hover {
    background-color: #f97316;
}

/* ======== 7. ABOUT SECTION ======== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text-content {
    color: var(--gray-700);
}

.stats-container {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.about-image-content {
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ======== 9. CONTACT SECTION ======== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--naranja);
}
/* focus visible accesible */
:focus-visible {
  outline: 3px solid rgba(211,111,0,0.25);
  outline-offset: 2px;
}
.cta-button-full {
    width: 100%;
    background-color: var(--verde);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button-full:hover {
    background-color: #144200;
    transform: scale(1.05);
}
.cta-button, .cta-button-light, .cta-button-full, .cta-button-product {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cta-button:hover, .cta-button-light:hover, .cta-button-full:hover, .cta-button-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.contact-info-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
}

.contact-icon-wrapper {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-item-title {
    font-weight: 600;
    color: var(--gray-900);
}

.contact-item-text {
    color: var(--gray-600);
}

.contact-hours {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.hours-item {
    display: flex;
    justify-content: space-between;
}

.map-container {
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    display: block;
}

/* ======== 10. TRUST SEALS SECTION (NUEVO) ======== */
.trust-seals-section {
    background-color: var(--gray-50);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.trust-seals-title {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.seals-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.trust-seal {
    height: 4rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.trust-seal:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ======== 11. FOOTER ======== */
.footer-wrapper {
    color: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand {
    margin-bottom: 1rem;
}

.logo-icon-wrapper-footer {
    width: 2.5rem;
    height: 2.5rem;
    background-image: linear-gradient(to bottom right, var(--naranja), #facc15);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
}

.footer-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-brand-text {
    color: var(--gray-300);
    margin-top: 1rem;
}

.footer-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.footer-link {
    color: var(--gray-300);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--beish);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--naranja);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #f97316;
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-300);
}

/* ======== 12. NOTIFICATION POPUP (REFACTORIZADO) ======== */
.notification-popup {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 1000;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: white;
    transform: translateX(calc(100% + 1rem));
    transition: transform 0.3s ease;
}

.notification-popup.success {
    background-color: #22c55e;
}

.notification-popup.error {
    background-color: #ef4444;
}

.notification-popup.show {
    transform: translateX(0);
}

#product-destacado {
    margin-top: 4rem;
    width: 100%;
}

/* ------------------------------------------- */
/* --- NUEVOS ESTILOS PARA EL CARRUSEL --- */
/* ------------------------------------------- */

/* El viewport del carrusel: es la ventana visible */
#carousel-viewport {
    overflow-x: scroll;
    /* Permite el scroll horizontal */
    scroll-snap-type: x mandatory;
    /* Para que se detenga en cada producto */
    -webkit-overflow-scrolling: touch;
    /* Mejor scroll en iOS */
    margin-top: 1.5rem;
    padding-bottom: 2rem;
    /* Padding horizontal para que las tarjetas no choquen con el borde */
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Ocultar barra de scroll (opcional) */
#carousel-viewport::-webkit-scrollbar {
    display: none;
}

#carousel-viewport {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* El track del carrusel: contiene todas las tarjetas */
.product-carousel-track {
    display: flex;
    /* CRUCIAL: Alinear horizontalmente */
    gap: 1.5rem;
    /* Espacio entre productos (coincide con tu @media (min-width: 768px) grid gap) */
    width: max-content;
    /* Permite que el contenedor sea más ancho */
}

/* Estilo de la tarjeta dentro del carrusel */
.product-carousel-track .product-card {
    /* Define un ancho fijo para que la tarjeta ocupe el espacio deseado */
    min-width: 300px;
    max-width: 300px;
    flex-shrink: 0;
    /* Evita que la tarjeta se encoja */
    scroll-snap-align: start;
    /* Asegura que el scroll se detenga en la tarjeta */
}
/* ===== FILTROS DE PRODUCTOS ===== */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-filters select {
  padding: 0.6rem 1rem;
  border: 1px solid var(--beish);
  border-radius: 0.5rem;
  background: white;
  color: var(--verde);
  font-family: var(--inter);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.product-filters select:hover,
.product-filters select:focus {
  border-color: var(--naranja);
  outline: none;
  box-shadow: 0 0 0 2px rgba(211, 100, 10, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .product-filters {
    flex-direction: column;
    align-items: stretch;
  }
  .product-filters select {
    width: 100%;
  }
}
/* Estilos para los botones de control */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.carousel-controls button {
    background-color: var(--verde);
    color: white;
    border: none;
    padding: .5rem .5rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 9999px;
    transition: background-color 0.3s;
}

.carousel-controls button:hover {
    background-color: var(--naranja);
}
/* Loader animado de producto */
#loader-message {
    text-align: center;
    padding: 2rem;
    font-size: 1.25rem;
    color: var(--naranja);
    animation: pulse-glow 1.5s infinite;
}

/* Fade-in secuencial */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
#loader-message {
    opacity: 1;
    transition: opacity 0.5s ease;
}

#loader-message.fade-out {
    opacity: 0;
}
/* ======== 13. RESPONSIVE (Media Queries) ======== */
@media (min-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav-links-desktop {
        display: block;
    }

    .mobile-menu-button-wrapper {
        display: none;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .parallax-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #carousel-viewport {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #carousel-viewport {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
