@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --verde-suave: #7FAF8B;       /* Verde salvia suave - crecimiento, calma */
    --beige-rosado: #E9D6CF;      /* Beige rosado - calidez, cercanía */
    --gris-verdoso: #5F6F68;      /* Gris verdoso - profesionalidad, seriedad suave */
    --blanco: #FFFFFF;
    --gris-calido: #F5F5F0;       /* Fondo general muy suave */
    --texto-principal: #2C3E50;
    --texto-secundario: #5F6F68;
    --crema: #FCFAF8;             /* Color de fondo alternativo */
    --black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--texto-principal);
    background-color: var(--gris-calido);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--gris-verdoso);
}

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

/* Header */
.main-header {
    background-color: var(--blanco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 10px; /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Sombra suave para integración con fondo */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--gris-verdoso);
}

.logo-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--texto-secundario);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--gris-verdoso);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    background-color: var(--beige-rosado);
    padding: 6rem 0;
    text-align: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--gris-verdoso);
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    color: var(--texto-principal);
    margin-bottom: 1rem;
    font-weight: 500;
}

.sub-lead {
    font-size: 1.1rem;
    color: var(--texto-secundario);
    margin-bottom: 2rem;
}

/* Problem Section */
.problem-section {
    padding: 5rem 0;
    background-color: var(--blanco);
}

.problem-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.problem-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--texto-secundario);
}

/* Mentor Section */
.mentor-section {
    padding: 5rem 0;
    background-color: var(--gris-calido);
}

.mentor-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.mentor-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Situations Section */
.situations-section {
    padding: 5rem 0;
    background-color: var(--crema);
    text-align: center;
}

.situations-section h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.situations-grid-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.situation-item {
    background-color: var(--blanco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.situation-item:hover {
    transform: translateY(-5px);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.situation-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--verde-suave);
}

/* Consultation Section */
.consultation-section {
    padding: 5rem 0;
    background-color: var(--blanco);
}

.consultation-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.consultation-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.cta-link {
    color: var(--verde-suave);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 1rem;
    transition: color 0.3s;
}

.cta-link:hover {
    color: var(--gris-verdoso);
}

/* Professional Section */
.professional-section {
    padding: 5rem 0;
    background-color: var(--gris-calido);
    text-align: center;
}

.professional-section h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.professional-profile {
    background-color: var(--blanco);
    padding: 2.5rem;
    border-radius: 16px;
    display: inline-block;
    max-width: 600px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.profile-text h3 {
    font-size: 1.8rem;
    color: var(--verde-suave);
    margin-bottom: 0.5rem;
}

.role {
    font-size: 1.1rem;
    color: var(--gris-verdoso);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.credentials {
    list-style: none;
    text-align: left;
    margin: 0 auto;
    display: inline-block;
}

.credentials li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--texto-principal);
}

/* CTA Final Section */
.cta-final-section {
    padding: 6rem 0;
    background-color: var(--verde-suave);
    color: var(--blanco);
    text-align: center;
}

.cta-final-section h2 {
    color: var(--blanco);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.cta-final-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Buttons */
/* Animación "Split" adaptada al diseño */
@keyframes topAnimation { 
  from { transform: translate(0rem, 0); } 
  to { transform: translate(0rem, 3.5rem); } 
} 
@keyframes bottomAnimation { 
  from { transform: translate(-11.5rem, 0); } 
  to { transform: translate(0rem, 0); } 
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: transparent; /* Transparente para ver el efecto */
    color: var(--blanco);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    position: relative;
    overflow: hidden; /* Contener el efecto dentro del botón */
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.15s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Pseudo-elementos para la animación */
.cta-button::before,
.cta-button::after {
    content: "";
    position: absolute;
    height: 40%;
    width: 10%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
    border-radius: 50%;
}

.cta-button::before {
    background-color: #6a9675; /* Color secundario de la animación */
    top: -0.75rem;
    left: 0.5rem;
    animation: topAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.25s infinite alternate;
}

.cta-button::after {
    background-color: var(--verde-suave); /* Color principal */
    top: 3rem;
    left: 13rem;
    animation: bottomAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s infinite alternate;
}

/* Estado Hover: Llenar el botón */
.cta-button:hover {
    color: var(--blanco);
    transform: translateY(-2px);
}

.cta-button:hover::before,
.cta-button:hover::after {
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 0;
    animation: none;
    left: 0; /* Asegurar que cubran todo */
}

/* Asegurar color base si no hay hover (fallback visual) */
.whatsapp-btn {
    background-color: #25D366; /* Mantener color original de WhatsApp */
}

/* Ajuste específico para el botón de WhatsApp (sobreescribe la animación genérica para mantener identidad) */
.whatsapp-btn::before, .whatsapp-btn::after {
    display: none; /* Desactivar animación split en botón WhatsApp estándar si se prefiere simple, o ajustar colores */
}

/* Si quieres aplicar la animación SOLO al botón principal "Solicitar consulta inicial" */
/* Asumiendo que quieres probarlo en ese botón específico, podemos crear una clase modificadora */
.btn-animated {
    background-color: #CCAF9F !important; /* Fondo inicial beige rosado oscuro para contraste */
    color: var(--texto-principal); /* Texto oscuro inicial */
}

.btn-animated::before {
    background-color: #6a9675; 
}
.btn-animated::after {
    background-color: var(--verde-suave);
}
.btn-animated:hover {
    color: var(--blanco);
}

.whatsapp-btn-large {
    background-color: var(--blanco);
    color: var(--verde-suave);
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

.whatsapp-btn-large:hover {
    background-color: #f0f0f0;
    color: var(--texto-principal); /* #2C3E50 */
}

/* Footer */
.main-footer {
    background-color: var(--gris-verdoso);
    color: var(--blanco);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
    border-radius: 6px;
}

.footer-info p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-info a {
    color: var(--blanco);
    text-decoration: underline;
    opacity: 0.8;
}

.footer-info a:hover {
    opacity: 1;
}

.footer-credit {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-credit a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
}

.footer-credit a:hover {
    text-decoration: underline;
    opacity: 1;
}

@media (min-width: 769px) {
    .footer-content {
        position: relative;
    }
    
    .footer-credit {
        position: absolute;
        bottom: 5px;
        right: 0;
        margin: 0;
    }
}

/* Utilities */
.img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Estilo para bordes suaves que se funden */
.soft-edge {
    /* Opción 1: Mascara de degradado radial para desvanecer los bordes */
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    
    /* Eliminar sombra dura si se usa fade */
    box-shadow: none; 
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Cookie Overlay */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Fondo oscuro bloqueante */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.cookie-modal {
    background-color: var(--blanco);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cookie-modal h3 {
    color: var(--gris-verdoso);
    margin-bottom: 1rem;
}

.cookie-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.cookie-list li {
    margin-bottom: 0.5rem;
}

.cookie-list a {
    color: var(--verde-suave);
    text-decoration: none;
    font-weight: 500;
}

.cookie-list a:hover {
    text-decoration: underline;
}

.cookie-note {
    font-size: 0.9rem;
    color: var(--texto-secundario);
    margin-bottom: 2rem;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-btn-accept {
    width: 100%;
    cursor: pointer;
    border: none;
    background-color: var(--texto-principal); /* #2C3E50 */
    color: var(--blanco);
}

.cookie-btn-reject {
    background: none;
    border: none;
    color: var(--texto-secundario);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* Modal Privacidad */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        display: none; /* Ocultar menú por defecto en móvil si existiera */
    }

    .hero-container, .grid-2-col {
        flex-direction: column;
        display: flex;
        gap: 2rem;
    }
    
    .reverse-mobile {
        flex-direction: column-reverse;
    }
    
    .hero-content, .hero-image, 
    .problem-content, .problem-image,
    .mentor-content, .mentor-image,
    .consultation-content, .consultation-image {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Animaciones de desplazamiento (Scroll Slide) */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.slide-in-left.animate-in,
.slide-in-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Asegurar que no afecte el layout antes de cargar */
@media (prefers-reduced-motion: reduce) {
    .slide-in-left,
    .slide-in-right {
        transition: none;
        opacity: 1;
        transform: none;
    }
}
