:root {
    /* Sistema de diseño */
    --primary-color: #ffae00;
    --primary-dark: #e69e00;
    --secondary-color: #6c757d;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #fff;
    --overlay-opacity: 0.7;
    
    /* Espaciados */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Header */
    --header-height: 90px;
    
    /* Bordes */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.15);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.main-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(0, 0, 0, 0.85);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

/* Logo */
.logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: var(--space-xs) 0;
}

.logo img {
    height: auto;
    max-height: 70%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Navegación */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-md);
    margin: 0 var(--space-md);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón CTA */
.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

/* FAQ Container */
.faq-container {
    max-width: 1200px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
    animation: fadeIn 0.6s ease-out;
}

.faq-intro {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.faq-intro h2 {
    font-size: 2.25rem;
    color: var(--dark-color);
    margin-bottom: var(--space-sm);
    position: relative;
}

.faq-intro h2::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.faq-intro p {
    font-size: 1.125rem;
    color: var(--text-dark);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Acordeón */
.accordion {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: var(--space-lg) 0;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    padding: var(--space-md);
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-header span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-color);
    flex: 1;
}

.accordion-header i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fcfcfc;
}

.accordion-content-inner {
    padding: 0 var(--space-md) var(--space-md);
}

.accordion-content p {
    margin: 0;
    line-height: 1.7;
    color: #555;
}

/* Estado activo */
.accordion-item.active {
    box-shadow: inset 0 0 0 1px var(--primary-color);
}

.accordion-item.active .accordion-header {
    background: var(--primary-color);
}

.accordion-item.active .accordion-header span,
.accordion-item.active .accordion-header i {
    color: white;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

/* CTA Section */
.faq-cta {
    text-align: center;
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 174, 0, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px dashed var(--primary-color);
}

.faq-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.faq-cta p {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--dark-color);
    line-height: 1.7;
}

/* Botón WhatsApp Flotante mejorado */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--box-shadow);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 100%; /* Mejor proporción para el ícono */
    height: auto;
    transition: transform 0.3s ease;
}

.whatsapp-float i {
    display: block;
    font-size: 1.8rem; /* Usando rem para escalabilidad */
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: var(--box-shadow-hover);
    text-decoration: none;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    :root {
        --header-height: 80px;
        --space-md: 1.5rem;
    }
    
    .nav-menu {
        gap: var(--space-sm);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
        --space-lg: 2rem;
    }
    
    .main-header {
        padding: 0 var(--space-md);
    }
    
    .faq-intro h2 {
        font-size: 1.75rem;
    }
    
    .accordion-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .accordion-header span {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 30px;
        right: 30px;
    }
    
    .faq-cta {
        padding: var(--space-md);
    }
}

@media (max-width: 576px) {
    .nav-menu {
        display: none; /* O implementa un menú hamburguesa */
    }
    
    .faq-intro h2 {
        font-size: 1.5rem;
    }
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}