/* =========================
   Variables de color
========================= */
:root {
    --brand-red: #E73D34;
    --brand-red-hover: #d32f2f;
    --text-primary: #1a365d;
    --text-secondary: #2d3748;
    --text-muted: #4a5568;
    --bg-light: #f8fafc;
    --bg-hero: #f0f8ff;
    --border-soft: #e2e8f0;
    --white: #ffffff;
}

/* =========================
   Fuentes
========================= */
@font-face {
    font-family: 'Averta';
    src: url('../assets/fonts/Averta.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Averta';
    src: url('../assets/fonts/Averta Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* =========================
   Reset / Base
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Averta', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--bg-light);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================
   Header
========================= */
.header {
    background: rgba(240, 248, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.header-content { display: flex; align-items: center; justify-content: space-between; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo */
.logo { display: flex; align-items: center; }
.logo-image { height: 50px; width: auto; }

/* Nav */
.nav-list { display: flex; list-style: none; gap: 15px; align-items: center; }
.nav-arrow { color: var(--brand-red); font-weight: normal; font-size: 14px; }
.nav-list a {
    text-decoration: none; color: var(--text-primary);
    font-weight: 500; font-size: 16px; transition: color 0.3s ease;
}
.nav-list a:hover { color: var(--brand-red); }

/* Acceso clientes */
.btn-client-access {
    background: var(--white);
    color: #4a5568;
    border: 1px solid var(--border-soft);
    padding: 12px 20px; border-radius: 8px;
    font-family: 'Averta', sans-serif; font-weight: bold; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.3s ease;
}
.btn-client-access::after { content: ">"; color: var(--brand-red); margin-left: 4px; }
.btn-client-access:hover { border-color: #cbd5e0; background: #f7fafc; }

.btn-icon { width: 22px; height: 22px; }
/* ic-acces SVG */
.btn-icon .cls-1 { fill: transparent !important; }
.btn-icon .cls-2 { fill: #4a5568 !important; }
.btn-icon .cls-3 { stroke: #4a5568 !important; }

/* =========================
   Hero
========================= */
.hero {
    background: var(--bg-hero);
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding-top: 100px;
}
.hero-content { text-align: center; position: relative; z-index: 2; }
.hero-icon { margin-bottom: 30px; }
.icon-image { width: 80px; height: auto; }
.hero-title {
    font-size: 72px; font-weight: 700; color: var(--text-primary);
    font-style: italic; line-height: 1.1; margin-bottom: 0;
}

/* Nubes */
.hero-clouds { position: absolute; inset: 0; z-index: 1; }
.cloud {
    position: absolute; background: rgba(255,255,255,0.9);
    border-radius: 50px; opacity: 0.8; animation: float 8s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(255,255,255,0.5);
}
.cloud-1 { width: 120px; height: 60px; top: 10%; right: 15%; animation-delay: 0s; }
.cloud-2 { width: 100px; height: 50px; top: 40%; left: 10%; animation-delay: 2s; }
.cloud-3 {
    width: 140px; height: 70px; bottom: 10%; left: 50%;
    transform: translateX(-50%); animation-delay: 4s;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

/* =========================
   Main content
========================= */
.main-content {
    padding: 100px 0 80px 0;
    background: url('../images/fondo1.png') no-repeat center center / cover;
    position: relative; scroll-margin-top: 100px;
}
.content-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

/* Izquierda */
.content-title {
    font-family: 'Averta', sans-serif; font-size: 28px; font-weight: normal;
    color: #2d3748; margin-bottom: 30px; line-height: 1.3;
}
.location-info { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.location-icon { width: 24px; height: 24px; filter: none; }
.location-text { font-family: 'Averta', sans-serif; font-size: 24px; color: var(--brand-red); }
.content-description {
    font-family: 'Averta', sans-serif; font-size: 18px; color: var(--text-muted);
    line-height: 1.7; margin-bottom: 40px;
}

/* =========================
   Botones CTA (banda)
========================= */
.cta-buttons {
    background: var(--white); border-radius: 20px; padding: 20px 15px;
    display: flex; gap: 20px; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 40px; max-width: 450px; margin-left: auto; margin-right: auto;
}
.btn-primary {
    background: var(--brand-red); color: var(--white);
    border: none; padding: 12px 24px; border-radius: 12px;
    font-family: 'Averta', sans-serif; font-weight: bold; font-size: 14px;
    cursor: pointer; transition: all 0.3s ease; white-space: nowrap;
    display: flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--brand-red-hover); transform: translateY(-2px); }
.btn-primary .button-text { color: var(--white); }

/* Importante: flecha hereda currentColor del botón */
.btn-primary { color: var(--white); } /* texto/flecha blancas en btn rojo */

/* Secundario */
.btn-secondary {
    background: transparent; color: #2d3748; border: none; padding: 0;
    font-family: 'Averta', sans-serif; font-weight: normal; font-size: 14px;
    cursor: pointer; transition: all 0.3s ease; text-align: left; white-space: nowrap;
}
.btn-secondary:hover { color: var(--brand-red); }

/* =========================
   Imagen derecha
========================= */
.content-right { display: flex; align-items: center; justify-content: center; }
.people-image { width: 100%; max-width: 500px; height: auto; }

/* =========================
   Tercera sección
========================= */
.third-section { padding: 100px 0 80px 0; background: var(--white); scroll-margin-top: 100px; }
.third-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.third-content-left { display: flex; align-items: center; justify-content: center; }
.women-image { width: 100%; max-width: 500px; height: auto; }

/* Encabezado */
.section-header { text-align: center; margin-bottom: 50px; }
.section-subtitle {
    font-family: 'Averta', sans-serif; font-size: 14px; color: var(--brand-red);
    margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px;
}
.third-title {
    font-family: 'Averta', sans-serif; font-size: 32px; font-weight: bold;
    color: var(--text-primary); margin-bottom: 0; line-height: 1.3;
}
.third-content-right { padding-left: 20px; }
.company-description { display: flex; flex-direction: column; gap: 20px; }
.company-description p {
    font-family: 'Averta', sans-serif; font-size: 16px; color: var(--text-muted);
    line-height: 1.7; margin: 0;
}

/* =========================
   Bottom CTA
========================= */
.bottom-cta { text-align: center; margin-top: 30px; padding: 20px 0; }
.bottom-cta-text {
    font-family: 'Averta', sans-serif; font-size: 18px; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 20px; max-width: 800px; margin-inline: auto;
}
.highlight-text { color: var(--brand-red); font-weight: bold; }

.bottom-cta-button {
    background: var(--white); color: var(--brand-red);
    border: 2px solid var(--brand-red); padding: 16px 32px; border-radius: 8px;
    font-family: 'Averta', sans-serif; font-weight: normal; font-size: 16px;
    cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
    margin: 0 auto;
}
.bottom-cta-button .button-text { color: currentColor; } /* texto hereda */
.bottom-cta-button:hover { background: var(--brand-red); color: var(--white); }

/* =========================
   Banner
========================= */
.banner-section { padding: 100px 0 80px 0; background: var(--white); }
.banner-content {
    background: url('../images/fondo_banner.png') no-repeat center center / cover;
    border-radius: 20px; padding: 80px 40px; text-align: center; position: relative;
    overflow: hidden; max-width: 900px; margin: 0 auto;
}
.banner-text {
    font-family: 'Averta', sans-serif; font-size: 20px; font-weight: bold;
    color: var(--text-primary); line-height: 1.6; margin: 0; max-width: 600px; margin-inline: auto; text-align: center;
}

/* =========================
   Metodología
========================= */
.methodology-section { padding: 100px 0 80px 0; background: var(--white); }
.methodology-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.methodology-left { padding-right: 20px; }
.methodology-title {
    font-family: 'Averta', sans-serif; font-size: 36px; font-weight: bold;
    color: var(--text-primary); margin-bottom: 30px; line-height: 1.3;
}
.methodology-description {
    font-family: 'Averta', sans-serif; font-size: 18px; color: var(--text-muted);
    line-height: 1.7; margin-bottom: 40px;
}

/* Botón de metodología:
   - Color por defecto rojo (texto + flecha)
   - Hover: fondo rojo, texto/flecha blancos */
.methodology-button {
    background: var(--white); color: var(--brand-red);
    border: 2px solid var(--brand-red); padding: 16px 32px; border-radius: 8px;
    font-family: 'Averta', sans-serif; font-weight: normal; font-size: 16px;
    cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px;
}
.methodology-button .button-text { color: currentColor; }
.methodology-button:hover { background: var(--brand-red); color: var(--white); }

.methodology-right { display: flex; align-items: center; justify-content: center; }
.methodology-right .woman-image { width: 100%; max-width: 500px; height: auto; }

/* =========================
   Beneficios
========================= */
.benefits-section {
    padding: 100px 0 80px 0;
    background: url('../images/fondo1.png') no-repeat center center / cover;
    position: relative; scroll-margin-top: 100px;
}
.benefits-title {
    font-family: 'Averta', sans-serif; font-size: 32px; font-weight: bold;
    color: var(--text-primary); text-align: center; margin-bottom: 50px;
}
.benefits-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 20px 20px; row-gap: 40px; max-width: 1200px; margin: 0 auto;
}
.benefit-card {
    background: var(--white); border-radius: 15px; padding: 30px 20px; text-align: center;
    position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease; min-height: 200px; display: flex; flex-direction: column;
    justify-content: space-between; overflow: visible;
}
.benefit-card::before {
    content: ''; position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 60px; background: var(--white); border-radius: 50%;
    border: 3px solid var(--bg-hero); box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.benefit-card:hover { transform: translateY(-5px); }
.benefit-icon { width: 45px; height: 45px; margin: -45px auto 20px; object-fit: contain; position: relative; z-index: 3; }
.benefit-text {
    font-family: 'Averta', sans-serif; font-size: 13px; font-weight: bold; color: var(--text-primary);
    line-height: 1.4; margin: 0 0 20px 0; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center;
}
.benefit-arrow { color: var(--brand-red); font-size: 18px; font-weight: bold; text-align: right; margin-top: auto; }

/* =========================
   Responsivo
========================= */
@media (max-width: 768px) {
    /* Mobile Menu */
    .mobile-menu-toggle { display: flex; }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(240, 248, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    .nav.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
    }
    
    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
    }
    
    .nav-list a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
    }
    
    .nav-arrow {
        display: none;
    }
    
    .client-access {
        display: none;
    }
    
    /* Resto de estilos móviles */
    .hero-title { font-size: 48px; }
    .content-grid { grid-template-columns: 1fr; gap: 40px; }
    .third-content-grid { grid-template-columns: 1fr; gap: 20px; }
    .cta-buttons { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .banner-content { padding: 60px 20px; }
    .banner-text { font-size: 18px; text-align: center; margin-inline: auto; max-width: 100%; }
    .methodology-grid { grid-template-columns: 1fr; gap: 40px; }
    .methodology-title { font-size: 28px; }
    .methodology-description { font-size: 16px; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .benefit-card { padding: 20px 15px; min-height: 180px; }
    .benefit-text { font-size: 12px; font-weight: bold; }
    .benefits-title { font-size: 28px; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 36px; }
    .content-title { font-size: 24px; }
    .nav-list { flex-direction: column; gap: 15px; text-align: center; }
    .benefits-grid { grid-template-columns: 1fr; gap: 15px; }
    .benefit-card { padding: 25px 20px; min-height: 160px; }
    .benefit-text { font-size: 13px; font-weight: bold; }
    .benefits-title { font-size: 24px; }
    .appointment-form { 
        flex-direction: column; 
        gap: 15px; 
        max-width: 100%;
        padding: 0 10px;
    }
    .form-input, .form-textarea { 
        min-width: 100%; 
        padding: 12px 15px;
        font-size: 14px;
    }
    .appointment-form .appointment-button {
        min-width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    .appointment-title { font-size: 24px; }
    .contact-content { flex-direction: column; text-align: center; gap: 20px; }
    .contact-info { flex-direction: column; gap: 10px; }
}

/* =========================
   Contacto
========================= */
.contact-section { background: var(--bg-hero); padding: 100px 0 0 0; position: relative; scroll-margin-top: 100px; }
.appointment-cta {
    background: var(--white); border-radius: 20px; padding: 50px 40px; text-align: center;
    max-width: 800px; margin: 0 auto 80px auto; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.appointment-title {
    font-family: 'Averta', sans-serif; font-size: 28px; font-weight: bold; color: var(--text-primary); margin-bottom: 30px;
}
/* =========================
   Formulario de Citas - Estilos Nuevos
========================= */
.appointment-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    align-items: stretch; 
    max-width: 500px; 
    margin: 0 auto; 
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input, .form-textarea {
    padding: 15px 20px; 
    border: 2px solid var(--border-soft);
    border-radius: 10px; 
    font-family: 'Averta', sans-serif; 
    font-size: 16px; 
    color: var(--text-primary);
    background: var(--bg-light); 
    transition: all 0.3s ease;
    width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Averta', sans-serif;
}

.form-input:focus, .form-textarea:focus { 
    outline: none; 
    border-color: var(--brand-red); 
    background: var(--white); 
    box-shadow: 0 0 0 3px rgba(231, 61, 52, 0.1);
}

.form-input::placeholder, .form-textarea::placeholder { 
    color: #94a3b8; 
}

.form-input.error, .form-textarea.error {
    border-color: #e53e3e;
    background-color: #fed7d7;
}

.form-message {
    padding: 15px 20px;
    border-radius: 10px;
    font-family: 'Averta', sans-serif;
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

.form-message.success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 2px solid #9ae6b4;
}

.form-message.error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 2px solid #feb2b2;
}

/* Estilos para el botón del formulario */
.appointment-form .appointment-button {
    margin-top: 10px;
    align-self: center;
    min-width: 250px;
}

.appointment-button {
    background: var(--brand-red); color: var(--white);
    border: none; border-radius: 10px; padding: 15px 40px;
    font-family: 'Averta', sans-serif; font-size: 16px; font-weight: bold;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: background-color 0.3s ease; white-space: nowrap; min-width: 250px; flex-shrink: 0;
}
.appointment-button:hover { background: #c53030; }

.contact-footer { background: transparent; padding: 40px 0; margin-top: 0; }
.contact-content {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: nowrap; width: 100%;
}
.contact-logo { flex-shrink: 0; }
.footer-logo { height: 45px; width: auto; }
.contact-info { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.contact-title {
    font-family: 'Averta', sans-serif; font-size: 18px; font-weight: bold; color: var(--text-primary); margin: 0; white-space: nowrap;
}
.contact-phone, .contact-email {
    font-family: 'Averta', sans-serif; font-size: 16px; color: var(--text-primary); margin: 0; line-height: 1.4; white-space: nowrap;
}
@media (max-width: 480px) {
    .appointment-cta { padding: 30px 20px; margin-bottom: 40px; }
    .appointment-title { font-size: 20px; }
    .email-input { padding: 12px 15px; font-size: 14px; }
    .appointment-button { padding: 12px 20px; font-size: 14px; }
    .contact-footer { padding: 30px 0; }
    .footer-logo { height: 50px; }
    .contact-title { font-size: 16px; }
    .contact-phone, .contact-email { font-size: 14px; }
}

/* =========================
   Flechas (SVG) — sistema unificado
   - Usa SVG inline con trazo y/o relleno sin color fijo.
   - La flecha hereda el color del botón vía currentColor.
========================= */
.button-arrow { width: 16px; height: 16px; display: inline-block; }
/* Asegura que subrutas del SVG tomen el color del botón */
.button-arrow *, .button-arrow svg * {
    stroke: currentColor !important;
    /* Si tu SVG usa relleno, descomenta la línea siguiente:
       fill: currentColor !important; */
}

/* Estados por botón (colores ya definidos arriba):
   - .btn-primary        => color: #fff (flecha blanca)
   - .bottom-cta-button  => color: rojo por defecto; blanco en :hover
   - .methodology-button => color: rojo por defecto; blanco en :hover
   - .appointment-button => color: #fff (flecha blanca)
*/

/* =========================
   Fallback con filter (solo si usas IMG en vez de SVG inline)
   - Aplica estas utilidades directamente en el <img class="button-arrow">
========================= */
/* .arrow--red { filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%); }
.arrow--white { filter: brightness(0) invert(1); } */
