
/*
Theme Name: Asertiva Coach
Theme URI: https://wwww.asertivacoach.cl
Author: blidux
Description: Tema minimalista basado en Bootstrap para Asertiva Coach (landing + blog).
Version: 1.0.0
Text Domain: asertiva-coach
*/

:root {
    --color-primary: #3A8270;
    --color-primary-dark: #2d6558;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #ffffff;
}


/* ===========================================
   HEADER / NAVBAR RESPONSIVE
   =========================================== */

/* Base para que el header sea limpio y consistente */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
       position: sticky;
    top: 0;
    z-index: 9999;
}

/* Evita que el logo desborde */
.navbar-brand img {
    max-height: 85px !important;
    width: auto !important;
}

/* Alineación del dropdown del menú */
.navbar-nav .nav-item .nav-link {
    padding: 10px 15px;
    font-weight: 500;
}

/* Estilo del botón hamburguesa */
.navbar-toggler {
    border: none !important;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: brightness(0) !important; /* hace el ícono oscuro */
}
/* Estado activo por scrollspy (home) */
.navbar-nav .nav-link.active {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--color-primary) !important;
}

/* Estado activo que ya marca WordPress en otras páginas (blog, single, etc.) */
.navbar-nav .current-menu-item > a,
.navbar-nav .current_page_parent > a,
.navbar-nav .current_page_item > a {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--color-primary) !important;
}


/* HERO */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #5fa892 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

/* BUTTONS */
.btn-primary {
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 130, 112, 0.3);
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 130, 112, 0.3);
    outline: 3px solid var(--color-primary-dark);
    outline-offset: 3px;
}

.btn-sm-custom {
    padding: 8px 24px;
    font-size: 0.875rem;
    border-radius: 6px;
}
/* ===========================================
   HERO con fondo + overlay (compatible con estilos actuales)
   =========================================== */

.hero-with-bg {
    position: relative;
    padding: 120px 0 100px;
    background-image: url('https://www.asertivacoach.cl/wp-content/uploads/2025/11/Invitación-vertical-baby-shower-acuarela-verde-1920-x-1024-px-1.jpg'); /* CAMBIAR */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

/* Overlay */
.hero-with-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero-with-bg .container {
    position: relative;
    z-index: 2;
}

/* Ajustes sobre tu hero-title existente */
.hero-with-bg .hero-title {
    color: #fff !important;
}

.hero-with-bg .hero-subtitle {
    color: #eee !important;
}

/* Botón outline claro solo para hero */
.hero-with-bg .btn-outline-light {
    border-color: #fff !important;
    color: #fff !important;
}

.hero-with-bg .btn-outline-light:hover {
    background: #fff !important;
    color: var(--color-primary) !important;
}

/* Mantiene tu hero-image pero lo adapta al fondo */
.hero-with-bg .hero-image {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border-radius: 12px;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-with-bg {
        padding: 90px 0 70px !important;
        background-position: center top;
    }

    .hero-with-bg .hero-title {
        font-size: 2rem !important;
    }

    .hero-with-bg .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-with-bg .hero-image {
        height: 250px !important;
    }
}


/* SECTIONS */
section {
    padding: 140px 0;
}
/* Más espacio entre secciones para que el menú active correctamente */
#inicio,
#programas,
#sobre-mi,
#testimonios,
#recursos {
    scroll-margin-top: 100px; /* corrige el salto del anchor */
    padding-top: 100px;
    padding-bottom: 100px;
}



.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* PROGRAM CARDS */
.program-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.program-card:hover,
.program-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.program-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* ABOUT */
.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--color-text-light);
}

/* PAIN/BENEFIT */
.pain-benefit-section {
    background: var(--color-bg-light);
}
.pain-list,
.benefit-list {
    list-style: none;
    padding: 0;
}
.pain-list li,
.benefit-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.pain-list li:last-child,
.benefit-list li:last-child {
    border-bottom: none;
}

/* TESTIMONIALS */
.testimonial-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.3s ease;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* BLOG CARDS */
.blog-card {
    height: 100%;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-text-light);
}

/* CTA FINAL */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2d6558 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}
.btn-light-custom {
    background: white;
    color: var(--color-primary);
    border: 2px solid white;
    padding: 14px 40px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-light-custom:hover,
.btn-light-custom:focus {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    outline: 3px solid white;
    outline-offset: 3px;
}

/* FOOTER */
footer {
    background: var(--color-bg-light);
    padding: 60px 0 30px;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #dee2e6;
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    outline: 3px solid #25D366;
    outline-offset: 3px;
}
/* ===============================
   TESTIMONIAL AVATAR (Estilo Bolt)
   =============================== */

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-bg-light); /* gris suave */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    font-size: 2.5rem;
    color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Avatar en mobile */
@media (max-width: 768px) {
    .testimonial-avatar {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}

/* Nombre y rol */
.testimonial-name {
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.testimonial-role {
    font-size: 0.95rem;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--color-text);
    text-align: center;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-image,
    .about-image { height: 300px; font-size: 3rem; }
    .section-title { font-size: 2rem; }
    .cta-section h2 { font-size: 1.75rem; }
    section { padding: 60px 0; }
}

/* ACCESSIBILIDAD */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}
.skip-link:focus {
    top: 0;
}

/* ----- Footer responsivo ----- */
@media (max-width: 768px) {
    footer .row > div {
        text-align: center !important;
        margin-bottom: 30px;
    }

    footer .footer-widget-title {
        text-align: center !important;
    }

    footer p,
    footer a {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .social-links {
        justify-content: center !important;
    }
}
/* ----- Márgenes generales en mobile ----- */
@media (max-width: 768px) {
    section,
    .container,
    .container-fluid {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    h1, h2, h3, h4, h5 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }

    .hero-section .hero-title {
        font-size: 1.9rem !important;
    }

    .hero-section .hero-subtitle {
        font-size: 1rem !important;
    }
}
/* ----- Cards en mobile ----- */
@media (max-width: 768px) {
    .program-card,
    .blog-card,
    .testimonial-card {
        margin: 0 auto 25px auto !important;
        text-align: center !important;
    }

    .program-icon,
    .blog-image,
    .testimonial-avatar {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
/* ----- CTA final en mobile ----- */
@media (max-width: 768px) {
    .cta-section h2 {
        text-align: center !important;
        font-size: 1.6rem !important;
    }

    .cta-section .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 15px auto 0 auto;
    }
}
/* ----- NAVBAR EN MOBILE ----- */
@media (max-width: 768px) {

    /* Centrar elementos dentro del header */
    header .navbar {
        padding: 10px 0 !important;
    }

    /* Centra logo y texto del sitio */
    .navbar-brand,
    .navbar-brand img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        text-align: center !important;
    }

    /* Mueve el botón hamburguesa hacia la derecha */
    .navbar-toggler {
        position: absolute;
        right: 15px;
        top: 15px;
    }

    /* Corrige el colapso del menú */
    #mainMenu {
        padding-top: 15px;
        padding-bottom: 10px;
        text-align: center !important;
        background: #fff !important;
    }

    /* Links centrados */
    .navbar-nav .nav-item {
        margin: 5px 0 !important;
    }

    .navbar-nav .nav-link {
        display: block;
        padding: 10px 0;
    }
}
/* --- Quitar comportamiento fixed o sticky del menú en mobile --- */
@media (max-width: 768px) {
    header,
    nav.navbar {
        position: static !important;
        top: auto !important;
        z-index: auto !important;
    }

    /* Evita que algún contenedor interno fuerce sticky */
    .navbar.sticky-top,
    header.sticky-top {
        position: static !important;
    }
}