/* ==========================================================================
   AOMA Consultores - Sistema de Diseño CSS
   ========================================================================== */

/* 1. VARIABLES DE DISEÑO (Tokens) */
:root {
    /* Paleta Oficial */
    --color-primary: #263452;       /* Azul Marino Principal */
    --color-primary-dark: #18242F;  /* Azul Marino Sombra / Negro Blue */
    --color-gold: #cfaa33;          /* Amarillo Dorado */
    --color-coral: #d4776a;         /* Rojo Coral */
    --color-salmon: #dc9054;        /* Naranja Salmón */
    --color-neutral-dark: #222221;  /* Gris Oscuro (Texto) */
    
    /* Colores Secundarios & Fondos */
    --color-bg-light: #ffffff;
    --color-bg-alt: #f4f6fa;        /* Fondo alternativo suave */
    --color-bg-dark: #121b24;       /* Fondo súper oscuro para secciones especiales */
    --color-border: #e2e8f0;
    
    /* Tipografía */
    --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Sombras (Elevation) */
    --shadow-sm: 0 2px 4px rgba(24, 36, 47, 0.05);
    --shadow-md: 0 10px 30px rgba(24, 36, 47, 0.06);
    --shadow-lg: 0 20px 40px rgba(24, 36, 47, 0.12);
    
    /* Bordes */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.15s ease;
}

/* 2. ESTILOS GENERALES Y RESETS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-neutral-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Contenedores */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.25;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. BOTONES Y COMPONENTES COMUNES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-light);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-light);
    transform: translateY(-2px);
}

.btn-whatsapp-hero {
    background-color: #25d366;
    color: #ffffff;
}

.btn-whatsapp-hero:hover {
    background-color: #1ebd58;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-icon-wa {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Glassmorphism General */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-md);
}

/* Títulos de sección */
.section-subtitle {
    display: inline-block;
    color: var(--color-gold);
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-desc {
    max-width: 600px;
    margin: 12px auto 0;
    color: #555555;
    font-size: 1.1rem;
}

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

.loading {
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: #777777;
}

/* 4. CABECERA Y NAVEGACIÓN (HEADER) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(24, 36, 47, 0.05);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    padding: 8px 0;
    background: rgba(24, 36, 47, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
    color: var(--color-gold);
}

.main-header.scrolled .btn-contact-nav {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.main-header.scrolled .btn-contact-nav:hover {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    transition: var(--transition-smooth);
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition-smooth);
}

.main-header.scrolled .logo-img {
    height: 40px;
    filter: brightness(0) invert(1); /* Convierte el logo a blanco en fondo oscuro */
}

/* Menú de navegación */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.btn-contact-nav {
    border: 2px solid var(--color-primary);
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-md);
}

.btn-contact-nav:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-light) !important;
}

/* Menú Toggle Móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.main-header.scrolled .menu-toggle .bar {
    background-color: #ffffff;
}

/* 5. HERO SECTION */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f4f6fa 0%, #e9eef7 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(199, 170, 51, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background-color: rgba(38, 52, 82, 0.06);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-full);
    border-left: 3px solid var(--color-gold);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 20px;
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a5464;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Ilustración del Hero */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hero-illustration {
    position: relative;
    width: 100%;
    height: 100%;
}

.illustration-shape {
    position: absolute;
    border-radius: 50%;
}

.circle-1 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    top: 40px;
    left: 40px;
    opacity: 0.15;
}

.circle-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-salmon) 100%);
    bottom: 40px;
    right: 40px;
    opacity: 0.12;
}

.illustration-card {
    position: absolute;
    padding: 20px;
    border-radius: var(--radius-md);
    width: 240px;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.illustration-card.pos-2 {
    top: 50%;
    left: 40%;
    animation-delay: -2s;
}

.illustration-card.pos-3 {
    top: 15%;
    right: 5%;
    animation-delay: -4s;
}

.card-icon {
    font-size: 1.8rem;
    display: inline-block;
    margin-bottom: 8px;
}

.illustration-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.illustration-card p {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* 6. PRESENTACIÓN BREVE (INTRO) */
.intro-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 1.15rem;
    color: #4a5464;
    font-weight: 500;
    margin-bottom: 20px;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gold);
    font-family: var(--font-title);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 600;
}

.intro-featured {
    height: 100%;
    display: flex;
    align-items: center;
}

.featured-card {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.featured-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.featured-card h3 {
    color: var(--color-gold);
    margin-bottom: 20px;
}

.featured-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
}

.quote-author-info {
    border-left: 3px solid var(--color-coral);
    padding-left: 16px;
}

.author-name {
    display: block;
    font-weight: 700;
    font-family: var(--font-title);
    font-size: 1.1rem;
}

.author-title {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* 7. SECCIÓN SERVICIOS */
.services-section {
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}

.section-header {
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(199, 170, 51, 0.3);
}

.service-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--color-gold);
    flex-shrink: 0;
}

.service-card:nth-child(2) .service-icon {
    color: var(--color-coral);
}

.service-card:nth-child(3) .service-icon {
    color: var(--color-salmon);
}

.service-card h3 {
    font-size: 1.35rem;
}

.service-card p {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.service-list {
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #444444;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-gold);
    font-weight: 700;
}

.service-card:nth-child(2) .service-list li::before {
    color: var(--color-coral);
}

.service-card:nth-child(3) .service-list li::before {
    color: var(--color-salmon);
}

/* Bloque de Beneficios */
.service-benefits {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    background-color: rgba(244, 246, 250, 0.6);
    margin: 0 -40px -40px -40px;
    padding: 24px 40px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.benefit-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-neutral-dark);
    margin-bottom: 8px;
    display: block;
}

.benefit-desc {
    font-size: 0.85rem;
    color: #4a5464;
    margin-bottom: 0 !important;
}

.benefit-desc strong {
    color: var(--color-primary-dark);
}

/* 8. SECCIÓN SOBRE MÍ */
.about-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-img-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.portrait-placeholder {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 460px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.portrait-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(199, 170, 51, 0.2), transparent 60%);
}

.portrait-avatar {
    width: 75%;
    height: auto;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: -20px;
}

.portrait-info-tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(24, 36, 47, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    color: #ffffff;
}

.portrait-info-tag h4 {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.portrait-info-tag p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.about-details h2 {
    margin-bottom: 20px;
}

.profile-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

.profile-card {
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 4px solid var(--color-primary);
}

.profile-card:nth-child(2) {
    border-left-color: var(--color-gold);
}

.profile-card h4 {
    margin-bottom: 12px;
    color: var(--color-primary-dark);
}

.profile-card ul {
    padding-left: 0;
}

.profile-card li {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #444444;
    position: relative;
    padding-left: 16px;
}

.profile-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

/* 9. TESTIMONIOS */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: #4a5464;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.testimonial-meta {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.testimonial-author {
    display: block;
    font-weight: 700;
    font-family: var(--font-title);
    color: var(--color-primary);
}

.testimonial-position {
    display: block;
    font-size: 0.8rem;
    color: #666666;
}

/* 10. SECCIÓN BLOG */
.blog-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.blog-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.blog-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(38, 52, 82, 0.15);
}

.blog-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #777777;
    margin-bottom: 12px;
    font-weight: 600;
}

.blog-category {
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.85rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-readmore {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
}

.blog-readmore::after {
    content: " →";
    transition: var(--transition-fast);
}

.blog-card:hover .blog-readmore::after {
    transform: translateX(4px);
}

/* 11. RECURSOS */
.resources-section {
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.resource-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 28px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(220, 144, 84, 0.3);
}

.resource-icon-badge {
    font-size: 2rem;
    margin-bottom: 16px;
}

.resource-type {
    font-size: 0.7rem;
    font-weight: 700;
    background-color: rgba(220, 144, 84, 0.1);
    color: #b75e1a;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.resource-card p {
    font-size: 0.85rem;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-download {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
}

.btn-download::before {
    content: "⬇ ";
    margin-right: 4px;
}

/* 12. CLIENTES */
.clients-section {
    padding: 80px 0;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.client-card {
    background-color: var(--color-bg-alt);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.client-logo-dummy {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 16px;
}

.client-card:nth-child(2) .client-logo-dummy {
    background-color: var(--color-gold);
}

.client-card:nth-child(3) .client-logo-dummy {
    background-color: var(--color-coral);
}

.client-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.client-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: #777777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.client-card p {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 0;
}

/* 13. PREGUNTAS FRECUENTES (FAQ - ACORDEÓN) */
.faq-section {
    padding: 100px 0;
    background-color: var(--color-bg-alt);
}

.faq-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.faq-intro h2 {
    margin-bottom: 16px;
}

.faq-intro p {
    color: #555555;
    margin-bottom: 24px;
}

/* Acordeón */
.faq-accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.accordion-item.open {
    border-color: rgba(199, 170, 51, 0.4);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.accordion-header h3 {
    font-size: 1.05rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    padding-right: 16px;
    line-height: 1.4;
}

.accordion-icon {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-gold);
    transition: var(--transition-smooth);
    display: inline-block;
    user-select: none;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg); /* Gira el '+' para que parezca una 'x' */
    color: var(--color-coral);
}

/* Panel Desplegable */
.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1); /* Suaviza el cierre y apertura */
}

.accordion-item.open .accordion-panel {
    max-height: 1000px; /* Suficiente altura para contener el texto */
    transition: max-height 0.5s ease-in-out;
}

.accordion-content {
    padding: 0 28px 24px 28px;
    font-size: 0.95rem;
    color: #4a5464;
    border-top: 1px solid transparent;
}

.accordion-item.open .accordion-content {
    border-top-color: rgba(24, 36, 47, 0.05);
}

/* 14. SECCIÓN CONTACTO */
.contact-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-method-card {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background-color: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.contact-method-card:hover {
    border-color: rgba(38, 52, 82, 0.2);
    background-color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.method-icon {
    font-size: 1.8rem;
    margin-right: 20px;
    line-height: 1;
}

.contact-method-card h4 {
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.contact-method-card p {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 0;
}

/* Formulario */
.contact-form-wrapper {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    padding: 48px;
}

.contact-form h3 {
    margin-bottom: 8px;
}

.contact-form > p {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-neutral-dark);
    background-color: #ffffff;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(199, 170, 51, 0.15);
}

.form-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    background-color: rgba(37, 211, 102, 0.1);
    color: #1ebd58;
    border: 1px solid rgba(37, 211, 102, 0.2);
    display: block;
}

.form-status.error {
    background-color: rgba(212, 119, 106, 0.1);
    color: var(--color-coral);
    border: 1px solid rgba(212, 119, 106, 0.2);
    display: block;
}

/* 15. PIE DE PÁGINA (FOOTER) */
.main-footer {
    background-color: var(--color-primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    border-top: 4px solid var(--color-gold);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 24px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-container h4 {
    color: #ffffff;
    margin-bottom: 24px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-container h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-gold);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--color-gold);
    padding-left: 4px;
}

.footer-legal ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* 16. BOTÓN FLOTANTE DE WHATSAPP */
.whatsapp-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.4;
    z-index: -1;
    animation: pulsewa 2s infinite;
}

.wa-floating-icon {
    width: 32px;
    height: 32px;
}

/* Tooltip */
.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: var(--color-primary-dark);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition-smooth);
}

.wa-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: var(--color-primary-dark);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.08);
    background-color: #1ebd58;
}

.whatsapp-floating-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulsewa {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 17. RESPONSIVE DESIGN (Media Queries) */
@media (max-width: 1024px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        margin: 0 auto 20px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        height: 300px;
    }
    
    .intro-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .intro-featured {
        justify-content: center;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    /* Navbar móvil */
    .menu-toggle {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #ffffff;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-smooth);
        z-index: 998;
    }
    
    .navbar.open {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        padding: 40px 24px;
        gap: 20px;
        align-items: stretch;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 12px 16px;
        border-bottom: 1px solid var(--color-border);
        border-radius: 0;
    }
    
    .btn-contact-nav {
        text-align: center;
        border-radius: var(--radius-md);
        margin-top: 10px;
    }
    
    /* Toggle active styles */
    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    /* Ajustes generales */
    .services-grid,
    .testimonials-grid,
    .blog-grid,
    .resources-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
