* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0d47a1;
    --secondary-blue: #1e88e5;
    --light-blue: #e3f2fd;
    --dark-text: #1a1a1a;
    --gray-text: #666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

body {
    /* CAMBIO: Se agrega la nueva fuente "Inter" */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 120px;
    width: auto;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-text);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--secondary-blue);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 24px;
    transition: background 0.3s;
}

.nav-cta:hover {
    background: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-text);
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    background: var(--light-blue);
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Challenge Section */
.challenge-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: var(--primary-blue);
}

.challenge-content {
    max-width: 800px;
    margin: 0 auto;
}

.challenge-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray-text);
}

/* Solution Section */
.solution-section {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.service-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-blue);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    /* CAMBIO: Color para los nuevos íconos de Font Awesome */
    color: var(--secondary-blue);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-blue);
}

.service-description {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: var(--light-blue);
}

.benefits-list {
    max-width: 900px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.benefit-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--secondary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.benefit-text {
    color: var(--gray-text);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary-blue);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Agregado para botones */
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    padding: 32px 0;
    background: var(--dark-text);
    color: var(--white);
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* NUEVO: Estilos del Modal de Contacto */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 1.75rem;
    color: var(--gray-text);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--dark-text);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--gray-text);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.form-group .cta-btn {
    width: 100%;
    background: var(--secondary-blue);
    color: var(--white);
}

.form-group .cta-btn:hover {
    background: var(--primary-blue);
}

.form-status {
    margin-top: 16px;
    font-size: 0.875rem;
    text-align: center;
}

.form-status.success {
    color: green;
}

.form-status.error {
    color: red;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-number {
        margin: 0 auto;
    }

    .cta-title {
        font-size: 1.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

.challenge-content-wrapper {
    display: flex;
    align-items: center; /* Centra verticalmente */
    gap: 3rem; /* Espacio entre texto e imagen */
    margin-top: 2rem;
}

.challenge-text-col {
    flex: 1; /* El texto ocupa el espacio disponible */
}

.challenge-img-col {
    flex: 0 0 300px; /* La imagen ocupará 300px de ancho fijo */
}

/* Estilo de la imagen pequeña (thumbnail) */
.img-thumbnail-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: 4px solid #fff;
}

.challenge-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s;
}

/* Efecto al pasar el mouse */
.img-thumbnail-wrapper:hover {
    transform: scale(1.05); /* Se agranda un poquito */
}
.img-thumbnail-wrapper:hover .challenge-thumb {
    filter: brightness(0.7); /* Se oscurece para mostrar el icono */
}

/* El texto/icono que aparece encima al pasar el mouse */
.overlay-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.overlay-hint i { font-size: 2rem; margin-bottom: 5px; display: block; }
.overlay-hint span { font-size: 0.9rem; font-weight: 600; }

.img-thumbnail-wrapper:hover .overlay-hint {
    opacity: 1;
}

/* --- ESTILOS DEL MODAL DE IMAGEN (LIGHTBOX) --- */
.img-modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Fondo negro casi opaco */
}

.img-modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    border-radius: 5px;
    animation: zoomIn 0.3s;
}

#imgCaption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: 'Inter', sans-serif;
}

.img-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.img-modal-close:hover { color: #bbb; }

/* Animación de entrada */
@keyframes zoomIn {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* --- RESPONSIVE (CELULARES) --- */
@media (max-width: 768px) {
    .challenge-content-wrapper {
        flex-direction: column; /* Uno abajo del otro */
        gap: 1.5rem;
    }
    .challenge-img-col {
        flex: auto;
        width: 100%;
        max-width: 350px; /* Que no sea gigante en el cel */
    }
    .img-modal-content {
        width: 95%; /* En cel la imagen ocupa toda la pantalla */
        margin-top: 50%;
        transform: translateY(-50%);
    }
}

.target-section {
    padding: 5rem 0;
    background-color: #f8fcfd; /* Un fondo muy clarito para diferenciarla */
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.target-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.target-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top: 4px solid var(--secondary-color); /* Usa tu color secundario al hover */
}

.target-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.target-title {
    font-size: 1.25rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.target-text {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- ESTILOS SECCIÓN FAQ (ACORDEÓN) --- */
.faq-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px; /* Más estrecho para facilitar la lectura */
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eef2f6;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background-color: #ffffff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-text);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8fcfd;
}

/* Estilo cuando la pregunta está activa/abierta */
.faq-question.active {
    color: var(--primary-color);
    background-color: #f0f7ff;
}

.faq-icon {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

/* Rotar el icono cuando está activo */
.faq-question.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-color);
}

/* El contenedor de la respuesta (oculto por defecto) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #ffffff;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--light-text);
    line-height: 1.6;
}