/* style.css */

/* Variables de Color */
:root {
    --primary-color: #0056B3; /* Azul profesional */
    --secondary-color: #28A745; /* Verde para destacar acciones */
    --tertiary-color: #6C757D; /* Gris para botones secundarios */
    --text-color: #343A40; /* Negro oscuro para texto principal */
    --light-text-color: #6C757D; /* Gris para texto secundario */
    --background-light: #F8F9FA; /* Gris muy claro para secciones */
    --white: #FFFFFF;
    --border-color: #dee2e6;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(0, 86, 179, 0.2);
}

.btn-primary:hover {
    background-color: #004494;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.btn-secondary:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 22px;
}

.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-card {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 18px;
    font-size: 0.9em;
    width: fit-content;
    margin-top: 15px;
}

.btn-card:hover {
    background-color: #004494;
}

.btn-small {
    padding: 6px 15px;
    font-size: 0.85em;
    background-color: var(--tertiary-color);
    color: var(--white);
}

.btn-small:hover {
    background-color: #5a6268;
}

/* Secciones Generales */
.section {
    padding: 80px 0;
    text-align: center;
}

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

.section-description {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: var(--light-text-color);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px; /* Aumentamos el tamaño del logo */
    max-width: 100%;
}

.nav-menu ul {
    display: flex;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-header {
    margin-left: 20px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 86, 179, 0.7)), url('https://via.placeholder.com/1920x800?text=Imagen+Hero') no-repeat center center/cover;
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
}

.hero-content {
    max-width: 900px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Mensaje de la Directora */
.director-message {
    background-color: var(--white);
    padding: 80px 20px;
}

.director-message .message-header {
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: center; /* Centra los elementos horizontalmente en el contenedor */
    margin-bottom: 40px;
}

.director-message .director-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 20px; /* Espacio entre el título y la imagen */
    margin-bottom: 10px; /* Reducimos el espacio entre la imagen y el mensaje */
    border: 5px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.director-message h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 0;
}

.director-message .message-content {
    max-width: 800px;
    margin: 0 auto; /* Mantener 0 auto para centrar horizontalmente */
    background-color: var(--background-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

.director-message .message-content p {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.director-message .message-content p:last-of-type {
    margin-bottom: 30px;
}

.director-message .signature {
    text-align: right;
    font-style: italic;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 0;
}

.director-message .btn {
    margin-top: 30px;
}


/* Beneficios Grid (¿Qué es el Coaching Ontológico?) */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.benefit-item {
    padding: 30px;
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.benefit-item i {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.benefit-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
    word-wrap: normal;
    overflow-wrap: normal;
    white-space: normal;
}

.benefit-item p {
    color: var(--light-text-color);
    font-size: 0.95em;
}

/* Programas Grid */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    justify-content: center; /* Centra la única tarjeta cuando hay espacio */
}

.program-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.program-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.program-card p {
    font-size: 0.9em;
    color: var(--light-text-color);
    margin-bottom: 15px;
}

.program-card ul {
    margin-bottom: 20px;
    flex-grow: 1; /* Permite que la lista crezca para empujar el botón hacia abajo */
}

.program-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-color);
}

.program-card ul li i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1em;
}

/* Why Us Grid */
/* Esto ya debería estar centrado si tienes 3 elementos en la grilla y usas justify-content: center */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center; /* Esto centra las columnas de la grilla */
}

/* Modifica la regla para las cards individuales */
.why-us-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px; /* Redondeo de las esquinas de la tarjeta */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center; /* Centra el texto dentro de la tarjeta */
    transition: transform 0.3s ease;

    /* AÑADIR ESTO para centrar el contenido (imagen, título, párrafo) de cada card. */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos (incluida la imagen) horizontalmente */
    justify-content: flex-start; /* Alinea los elementos al inicio verticalmente */
}

/* Regla para las imágenes de Metodología y Docentes */
.why-us-icon {
    width: 150px; /* Tamaño que quieres para estas imágenes */
    height: 150px; /* Importante que sea igual al width para un círculo perfecto */
    margin-bottom: 15px;
    border-radius: 50%; /* ¡Esto las hará circulares! */
    object-fit: cover; /* MUY IMPORTANTE: Recorta la imagen para que rellene el círculo */
    border: 2px solid var(--primary-color); /* Opcional: un borde para que se destaque el círculo */
}

/* Regla para el logo de Global Coaching Federation (la card "Aval Global") */
.why-us-item .aval-logo {
    width: 150px; /* Tamaño del logo GCF */
    height: 150px; /* Importante que sea igual al width para un círculo perfecto */
    margin-bottom: 15px;
    border-radius: 50%; /* ¡Esto lo hará circular! */
    object-fit: contain; /* Para el logo GCF, 'contain' es mejor si tiene fondo transparente o espacio alrededor */
    /* border: 2px solid var(--accent-color);  Opcional: un borde */
}
/* Testimonios Carousel (simplificado, se necesitaría JS para la funcionalidad completa) */
.testimonials-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto; /* Para scroll horizontal si hay muchos */
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: center; /* Centra las tarjetas si hay pocas */
}

.testimonial-card {
    min-width: 320px; /* Ancho fijo para las tarjetas */
    max-width: 350px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
    scroll-snap-align: start;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 15px;
}

.testimonial-card h4 {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1em;
}


/* CTA Final / Contacto */
.cta-final {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 20px;
}

.cta-final h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.5em;
}

.cta-final p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: var(--text-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--light-text-color);
    opacity: 0.8;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* Estilos para el mensaje de confirmación del formulario */
.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda; /* Un verde claro */
    color: #155724; /* Texto verde oscuro */
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: var(--white);
    padding-top: 60px;
    font-size: 0.9em;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    padding: 0 15px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1em;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p,
.footer-col ul li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col .social-links a {
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

/* Botón de WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366; /* Color de WhatsApp */
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

/* Media Queries para Responsividad */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 80px; /* Altura del header */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 8px 16px var(--shadow-light);
        z-index: 990;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid var(--background-light);
    }

    .nav-menu a:hover::after {
        width: 0; /* Desactivar animación de underline en móvil */
    }

    .menu-toggle {
        display: block;
    }

    .btn-header {
        display: none; /* Opcional: ocultar en móvil si el menú lo reemplaza */
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .section {
        padding: 60px 0;
    }

    h2 {
        font-size: 2em;
    }

    .benefits-grid,
    .programs-grid,
    .why-us-grid {
        grid-template-columns: 1fr; /* Una columna en pantallas más pequeñas */
        margin-top: 30px;
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 100%;
    }

    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        display: flex; /* Para centrar los iconos */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .director-message .message-content {
        padding: 30px;
    }
    .director-message p {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    h2 {
        font-size: 1.8em;
    }

    .contact-form {
        padding: 25px;
    }

    .logo img {
        height: 55px; /* Ajuste para el logo en pantallas muy pequeñas */
    }
}