/* Reset mejorado */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #C29696; /* Color actualizado a #C29696 */
    --secondary-color: #8B5FBF;
    --accent-color: #7449A8;
    --text-color: #2D3748;
    --light-bg: #F7FAFC;
    --dark-bg: #1d1c1c;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 20px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Para compensar el navbar fijo */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--light-bg);
    color: var(--text-color);
    text-align: center;
    overflow-x: hidden;
}

/* Mejora de rendimiento para animaciones */
.logo,
.nav-links a,
.hero-button,
.btn-whatsapp,
.producto,
.socials a {
    will-change: transform, opacity;
}

/* === NAVBAR MEJORADO === */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 2rem;
    background: transparent;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

nav.scrolled {
    background: rgba(194, 150, 150, 0.95); /* Color actualizado */
    box-shadow: var(--shadow);
    padding: 0.5rem 2rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--secondary-color);
}

/* Menú hamburguesa - Mejorado */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
    transform-origin: center;
    position: relative;
}

/* === WhatsApp Flotante === */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20b85a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 28px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Tooltip para WhatsApp con animación fade + slide */
.whatsapp-tooltip {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%) translateX(10px); /* inicia un poco desplazado */
    background: rgba(0, 0, 0, 0.85);
    color: #f5f5f5;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    z-index: 1000;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0,0,0,0.85);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 65px;
    transform: translateY(-50%) translateX(0); /* vuelve a su lugar */
}


/* === HERO SECTION === */
#hero {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url('img/hero3/hero3.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 80px 20px 20px;
    color: white;
}

.hero-content {
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    animation: slideDown 1.5s ease;
    line-height: 1.2;
}

.hero-button {
    padding: 0.8rem 2rem;
    background: var(--secondary-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 2s ease;
}

.hero-button:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Animaciones mejoradas */
@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes slideDown { 
    from { transform: translateY(-30px); opacity:0; } 
    to { transform: translateY(0); opacity:1; } 
}

@keyframes fadeInUp { 
    from { transform: translateY(30px); opacity:0; } 
    to { transform: translateY(0); opacity:1; } 
}

/* === SECCIONES GENERALES === */
section {
    padding: 5rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

/* --- SOMOS SELAH --- */
#somos-selah {
    padding-top: 7rem;
}

#somos-selah p {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* --- PRODUCTOS MEJORADO --- */
#productos {
    position: relative;
    padding-top: 7rem;
}

.productos-descripcion {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

.productos-carrusel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.productos-carrusel {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0.5rem 2rem;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.productos-carrusel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.producto {
    flex: 0 0 auto;
    width: 280px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.producto:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.producto img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.producto:hover img {
    transform: scale(1.05);
}

.producto h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.producto p {
    color: #666;
    margin-top: auto; /* Empuja el texto hacia arriba para alinear botones */
}

/* Botones de navegación para el carrusel */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.carrusel-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.carrusel-btn.prev {
    left: 0;
}

.carrusel-btn.next {
    right: 0;
}

/* Indicadores de carrusel */
.carrusel-indicadores {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.indicador.activo {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* --- CONTACTO MEJORADO --- */
/* Estilos para la sección de contacto */
#contacto {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contacto-subtitle {
    margin-bottom: 2rem;
    color: #666;
}

.contacto-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contacto-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    order: 2; /* Para móviles: info después del formulario */
}

.contacto-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    order: 1; /* Para móviles: formulario primero */
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D3748;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #8B5FBF;
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-enviar {
    background: #8B5FBF;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.btn-enviar:hover {
    background: #7449A8;
    transform: translateY(-2px);
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contacto-icon {
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background: #C29696;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contacto-details h3 {
    margin-bottom: 0.3rem;
    color: #2D3748;
    font-size: 1rem;
}

.contacto-details p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    color: #25d366;
    text-decoration: none;
    font-weight: 600;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.whatsapp-link:hover {
    text-decoration: underline;
}

/* Para tablets y dispositivos más grandes */
@media (min-width: 768px) {
    #contacto {
        padding: 4rem 1.5rem;
    }
    
    .contacto-container {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .contacto-info {
        flex: 1;
        min-width: 280px;
        order: 2; /* Para desktop: info a la derecha */
    }
    
    .contacto-form {
        flex: 2;
        min-width: 280px;
        order: 1; /* Para desktop: formulario a la izquierda */
    }
    
    .btn-enviar {
        width: auto;
    }
}

/* Para desktop */
@media (min-width: 1024px) {
    .contacto-info, .contacto-form {
        padding: 2rem;
    }
}

/* --- FOOTER MEJORADO --- */
footer {
    background-color: var(--dark-bg);
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-container p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
}

.footer-container .frase {
    font-style: italic;
    font-size: 1rem;
    color: #f5deb3;
    margin: 1.2rem 0;
}


.socials {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.socials a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

#form-message {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Sección de Testimonios */
#testimonios {
    padding: 5rem 1.5rem;
    background: #faf9f7;
    text-align: center;
}

.testimonios-subtitle {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.testimonios-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonio {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonio-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonio-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonio-text p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    padding: 0 1rem;
}

.testimonio-text p::before,
.testimonio-text p::after {
    content: '"';
    font-size: 3rem;
    color: #C29696;
    opacity: 0.3;
    position: absolute;
}

.testimonio-text p::before {
    top: -15px;
    left: -10px;
}

.testimonio-text p::after {
    content: '"';
    bottom: -30px;
    right: -10px;
}

.testimonio-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonio-avatar {
    width: 50px;
    height: 50px;
    background: #C29696;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.testimonio-info h4 {
    margin: 0;
    color: #2D3748;
    font-size: 1rem;
}

.testimonio-info span {
    color: #666;
    font-size: 0.9rem;
}

.testimonios-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.testimonios-cta p {
    margin-bottom: 1rem;
    color: #555;
}

.btn-testimonio {
    display: inline-block;
    background: #8B5FBF;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-testimonio:hover {
    background: #7449A8;
    transform: translateY(-2px);
}


/* Responsive para tablets */
@media (min-width: 768px) {
    .testimonios-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive para desktop */
@media (min-width: 1024px) {
    .testimonios-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    #testimonios {
        padding: 6rem 1.5rem;
    }
}

/* Pequeñas mejoras para móviles */
@media (max-width: 480px) {
    .testimonio {
        padding: 1.5rem;
    }
    
    .testimonio-text p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .testimonio-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonio-avatar {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}
/* Modal para testimonios */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-content h3 {
    text-align: center;
    color: #2D3748;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.modal-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #C29696, #8B5FBF);
    border-radius: 2px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    transform: rotate(90deg);
}

/* Formulario dentro del modal */
#testimonio-form .form-group {
    margin-bottom: 1.5rem;
}

#testimonio-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D3748;
    font-size: 0.95rem;
}

#testimonio-form input,
#testimonio-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

#testimonio-form input:focus,
#testimonio-form textarea:focus {
    outline: none;
    border-color: #8B5FBF;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 95, 191, 0.2);
    transform: translateY(-2px);
}

#testimonio-form textarea {
    min-height: 120px;
    resize: vertical;
}

#testimonio-form .btn-enviar {
    background: linear-gradient(135deg, #8B5FBF, #7449A8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(139, 95, 191, 0.3);
}

#testimonio-form .btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 95, 191, 0.4);
    background: linear-gradient(135deg, #7449A8, #8B5FBF);
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto de carga del botón */
.btn-enviar.loading {
    position: relative;
    color: transparent;
}

.btn-enviar.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 2rem 1.5rem;
        width: 85%;
    }
    
    .modal-content h3 {
        font-size: 1.3rem;
    }
    
    #testimonio-form input,
    #testimonio-form textarea {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        padding: 1.5rem;
        width: 90%;
    }
    
    .close-modal {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
    }
}
.btn-testimonio {
    display: inline-block;
    background: #8B5FBF;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
}

.btn-testimonio:hover {
    background: #7449A8;
    transform: translateY(-2px);
}
/* Mensajes flotantes */
#form-message {
    display: none;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mejoras para el formulario de testimonio */
#testimonio-form .form-group {
    margin-bottom: 1.2rem;
}

#testimonio-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2D3748;
}

/* === RESPONSIVE DESIGN MEJORADO === */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .producto {
        width: 250px;
    }
}

@media (max-width: 768px) {
    /* Navbar responsive mejorado */
    nav {
        padding: 0.8rem 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        margin: 0;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    /* Animación hamburguesa a X */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* WhatsApp flotante en móviles */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Ocultar tooltip en móviles */
    }
    
    /* Ajustes de secciones */
    section {
        padding: 4rem 1rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .productos-carrusel-container {
        padding: 0 30px;
    }
    
    .carrusel-btn {
        width: 35px;
        height: 35px;
    }
}
/* === SECCIÓN FAQ === */
#faq {
    padding: 5rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

#faq h2 {
    text-align: center; /* asegura que quede centrado */
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--light-bg);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-color);
    color: white;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Ajustable según contenido */
    padding: 1rem 1.5rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 768px) {
    #faq {
        padding: 4rem 1rem;
    }
}


@media (max-width: 480px) {
    nav {
        padding: 0.6rem 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    #hero {
        min-height: 70vh;
        padding: 70px 15px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-button {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }
    
    .producto {
        width: 220px;
        padding: 1.2rem;
    }
    
    .producto img {
        height: 160px;
    }
    
    #contacto {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }
    
    .btn-whatsapp {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
    
    .socials a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .carrusel-btn {
        width: 30px;
        height: 30px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float i {
        font-size: 22px;
    }
}

/* Utilidad para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}