:root {
            --color-primary:#123333; /* #123333*/
            --color-secondary: #4e889e; /*#38b291 */
            --color-footer: #457689; 
            --color-accent: #f6b040;/*#FF8C42;*/
            --color-white: #FFFFFF;
            --color-gray: #F4F4F4;
            --color-gray-light: #dcd8d8;
            --color-text: #333333;
            --color-light-text: #666666;
            --color-background-btn:#e2476e;
            --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 620;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.2rem;
}
h4 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    
}

h5 {
    font-size: 1.2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
}

h6 {
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    margin-bottom: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

.text-italic{
    
    font-family: 'fantasy';
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 620;
    font-size: 2.5rem;
    line-height: 1.2;
    text-align: center;
    font-style: italic;
}

a {
    text-decoration: none;
    color: inherit;
}

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

section {
    padding: 4rem 0;
}

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

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
}

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

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #2f9a7d;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.grid-btn{
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content:space-around;
    align-items:center;
    padding: 0.5rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 650;
    color: var(--color-primary);
    padding: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    font-weight: 450;
    transition: var(--transition);
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
}



/* Hero Section */
.hero {
    margin-top: 80px;
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--blanco);
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    background-color: var(--color-gray);
    color: var(--blanco);
    padding: 15px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-cta:hover {
    background-color: var(--azul-ullmann);


}    

.img-fija {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}


/* About Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}
.about-background-img {
    width: 100%; 
    height: 480px; 
    background-color: var(--color-gray); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 1.2rem;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.credential-icon {
    background-color: var(--color-secondary);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Problems Section */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.problem-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.problems-cta {
    text-align: center;
    margin-top: 4rem;
}

/* Solutions Section */
.solution-section-wrapper {
    padding: 2rem 0; /* Espacio superior e inferior para cada sección */
    margin: 0 -50%; /* Esto es opcional, pero ayuda a que el fondo se extienda en secciones con un 'container' centralizado */
    padding: 3rem 50%;
}

/* Clases para el fondo alternado */
.solution-section-wrapper.white-bg {
    background-color: var(--color-white, #ffffff); /* Usa tu variable o un blanco por defecto */
}

.solution-section-wrapper.gray-bg {
    background-color: var(--color-light-gray, #f7f7f7); /* Usa tu variable o un gris claro por defecto */
}

/* Estilo para el título de cada subsección */
.solution-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--color-primary); /* Ajusta el color si lo deseas */
}


/* Asegura que el contenido esté visible */
.tab-content {
    /* display: none; */ /* ELIMINAR ESTA REGLA O AJUSTARLA */
    display: block; /* Asegura que se muestre */
}

/* Restaura el padding dentro del container (si se usó el hack del margin/padding) */
.solutions .container {
    overflow: hidden; /* Esto es importante para contener los wrappers con el margin negativo */
}

/* Asegurar que el contenido de las tarjetas se mantenga centrado en el container */
.solution-section-wrapper > .tab-content {
    max-width: 1100px; /* O el ancho de tu container */
    margin: 0 auto;
    padding: 0 15px; /* Padding interno para que no pegue a los bordes */
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.card-img {
    height: 180px;
    background-color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
}

.card-img-solution1 {
    height: 140px;
    background-color: #70b1cbe9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
}
.card-img-solution2 {
    height: 140px;
    background-color: #c7918d;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
}
.card-img-solution3 {
    height: 140px;
    background-color: #a9b54e;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 3rem;
}

.card-content {
    padding: 1.5rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card-meta {
    color: var(--color-light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-benefits {
    margin: 1rem 0;
}

.card-benefits ul {
    list-style: none;
    padding-left: 0;
}

.card-benefits li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.card-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

.card-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.card-modality {
    font-size: 0.9rem;
    color: var(--color-light-text);
}

/* Methodology Section */
.methodology-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.methodology-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 2rem;
}

.methodology-step {
    flex: 1;
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* About me Section */
.aboutme-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.aboutme-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.aboutme-image img {
    width: 100%;
    height: auto;
    display: block;
}

.aboutme-content {
    flex: 1;
}

/* Author Section */
.author-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.author-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.author-image img {
    width: 100%;
    height: auto;
    display: block;
}

.author-content {
    flex: 1;
}

/* Testimonials Section */
.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 1rem;
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--color-secondary);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -1rem;
    left: -1rem;
}

.testimonial-text::after {
    bottom: -2rem;
    right: -1rem;
}

.testimonial-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: bold;
    font-size: 1.2rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--color-secondary);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
    background-color: var(--color-white);
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    background-color: var(--color-white);
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.disclaimer {
    margin-top: 3rem;
    padding: 1.5rem;
    background-color: #fff9e6;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    margin-bottom: 2rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(56, 178, 145, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.final-cta {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem;
}

/* Footer */
footer {
    background-color: var(--color-footer);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}


/* Estilos para el efecto Fade-In */
.fade-in-image {
    /* Establece el estado inicial: transparente */
    opacity: 0;
    /* Define la duración y tipo de la transición */
    transition: opacity 2s ease-out; /* 1.5 segundos de duración */
    /* Asegura que la imagen no ocupe un espacio incorrecto mientras está invisible */
    display: block; 
}

/* Estado Activo: La clase 'is-visible' se agrega con JavaScript */
.fade-in-image.is-visible {
    /* Estado final: totalmente visible */
    opacity: 1;
}

/*
=====================================================
  Efecto de Zoom In para la Sección Metodología
=====================================================
*/

.zoom-in-element {
    /* 1. Estado inicial: Ligeramente más pequeño (zoom-out) y transparente */
    opacity: 0;
    transform: scale(0.9); 

    /* 2. Definir la transición: aplica la transición a ambas propiedades (opacity y transform) */
    transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Estado Activo: La clase 'is-zoomed' se agrega con JavaScript */
.zoom-in-element.is-zoomed {
    /* Estado final: Tamaño normal (zoom-in) y totalmente visible */
    opacity: 1;
    transform: scale(1);
}