:root {
    --primario: #4f46e5;
    --secundario: #10b981;
    --fondo-oscuro: #1e293b;
    --fondo-claro: #f1f5f9;
    --texto-principal: #334155;
    --texto-secundario: #64748b;
    --blanco: #FFFFFF;
    --fuente-principal: 'Barlow', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--fuente-principal);
    background-color: var(--blanco);
    color: var(--texto-principal);
    font-weight: 400;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}
h1 {
    font-size: 3.5rem;
    color: var(--texto-principal);
}
h2 {
    font-size: 2.5rem;
    color: var(--texto-principal);
    text-align: center;
    margin-bottom: 1rem;
}
.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--texto-secundario);
    max-width: 600px;
    margin: 0 auto 60px auto;
}
h3 {
    font-size: 1.5rem;
    color: var(--texto-principal);
    margin-bottom: 10px;
}
section {
    padding: 100px 0;
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primario {
    background-color: var(--primario);
    color: var(--blanco);
}
.btn-secundario {
    background-color: var(--secundario);
    color: var(--blanco);
}
.btn-header {
    background-color: var(--primario);
    color: var(--blanco);
    padding: 10px 28px;
    border: 2px solid var(--blanco);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.btn-header:hover {
    background-color: rgba(79, 70, 229, 0.9);
    color: var(--blanco);
    transform: translateY(-3px);
}
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primario);
    text-decoration: none;
    flex-shrink: 0;
}
.logo img {
    height: 20px;
    width: auto;
    display: block;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}
.nav-menu a {
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: 600;
    transition: color 0.3s ease;
}
.nav-menu a:hover {
    color: var(--primario);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}
.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primario);
    transition: 0.3s ease;
    display: block;
}
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 1rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 10px 0;
        color: var(--texto-principal);
    }
    .btn-header {
        display: inline-block;
        margin-top: 10px;
    }
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    .header .container {
        justify-content: center;
        position: relative;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-toggle {
        position: absolute;
        right: 20px;
    }
}
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    .nav-toggle span {
        width: 22px;
    }
    .nav-menu {
        top: 65px;
        padding: 15px;
    }
}
.hero {
    padding: 120px 0;
}
.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.hero-content {
    flex: 1;
    text-align: left;
}
.hero-content h1 {
    max-width: 550px;
}
.hero-content p {
    max-width: 500px;
    margin: 25px 0 40px;
    font-size: 1.2rem;
    color: var(--texto-secundario);
    line-height: 1.7;
}
.hero-image {
    flex: 1;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}
#proceso {
    background-color: var(--fondo-claro);
}
.proceso-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background-color: var(--blanco);
    border-radius: 1rem;
    padding: 40px 30px;
    text-align: left;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
}
.card-icon {
    background-color: #eef2ff;
    color: var(--primario);
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.card-icon svg {
    width: 32px;
    height: 32px;
}
.card p {
    color: var(--texto-secundario);
}
.beneficios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.beneficios-image img {
    width: 100%;
    border-radius: 1rem;
}
.beneficios-lista {
    list-style: none;
}
.beneficios-lista li {
    font-size: 1.1rem;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    font-weight: 600;
}
.beneficios-lista li svg {
    color: var(--secundario);
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}
#testimonios {
    background-color: var(--fondo-claro);
}
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonio-card {
    background-color: var(--blanco);
    border-radius: 1rem;
    padding: 30px;
    border: 1px solid #e2e8f0;
}
.testimonio-texto {
    font-style: italic;
    color: var(--texto-secundario);
    margin-bottom: 20px;
    border-left: 3px solid var(--primario);
    padding-left: 20px;
}
.testimonio-autor {
    display: flex;
    align-items: center;
}
.testimonio-autor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.testimonio-autor h4 {
    font-weight: 700;
    color: var(--texto-principal);
}
.testimonio-autor p {
    font-size: 0.9rem;
    color: var(--texto-secundario);
}
#alianzas {
    background-color: var(--blanco);
}
.alianzas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 60px;
}
.alianza-logo {
    flex-basis: 180px;
    text-align: center;
}
.alianza-logo img {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.alianza-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}
.colegios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}
.colegios-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.colegios-content p {
    margin-bottom: 30px;
}
.colegios-image img {
    width: 100%;
    border-radius: 1rem;
}
#faq {
    background-color: var(--fondo-claro);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--blanco);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--texto-secundario);
}
.cta {
    background-color: var(--primario);
    color: var(--blanco);
    text-align: center;
    border-radius: 20px;
    padding: 80px 40px;
    margin: 0 20px;
}
.cta h2 {
    color: var(--blanco);
    font-size: 2.5rem;
}
.cta p {
    max-width: 550px;
    margin: 20px auto 30px;
    opacity: 0.9;
    font-size: 1.1rem;
}
.cta .btn-secundario {
    padding: 16px 45px;
    font-size: 1.1rem;
    background-color: var(--blanco);
    color: var(--primario);
}
.cta .btn-secundario:hover {
    background-color: var(--fondo-claro);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.footer {
    background-color: var(--fondo-oscuro);
    color: var(--blanco);
    padding: 60px 0;
    font-size: 0.9rem;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-copy p {
    opacity: 0.7;
    margin-bottom: 5px;
}
.footer a {
    color: var(--blanco);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.footer a:hover {
    opacity: 1;
}
.social-icons a {
    margin-left: 20px;
}
.social-icons svg {
    width: 24px;
    height: 24px;
}
#chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primario);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1000;
}
#chat-fab:hover {
    transform: scale(1.1);
}
#chat-fab svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
#chat-fab svg.chat-icon {
    width: 24px;
    height: 24px;
}
#chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-width: 90vw;
    height: 500px;
    max-height: 70vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
    z-index: 999;
}
#chat-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}
.chat-header {
    background-color: var(--primario);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
}
#close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
.chat-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}
.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}
.chat-message.user {
    align-items: flex-end;
}
.chat-message.bot {
    align-items: flex-start;
}
.chat-message p {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.5;
}
.chat-message.user p {
    background-color: var(--primario);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-message.bot p {
    background-color: var(--fondo-claro);
    color: var(--texto-principal);
    border-bottom-left-radius: 4px;
}
.chat-input-form {
    display: flex;
    border-top: 1px solid #e2e8f0;
    padding: 10px;
}
#chat-input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}
#chat-submit-btn {
    background-color: var(--primario);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
#chat-submit-btn svg {
    width: 20px;
    height: 20px;
}
.chat-message .btn-in-chat {
    margin-top: 10px;
    align-self: flex-start;
    padding: 8px 20px;
    font-size: 0.9rem;
}
@media (max-width: 992px) {
    .proceso-cards {
        grid-template-columns: 1fr;
    }
    .beneficios-grid,
    .colegios-grid {
        grid-template-columns: 1fr;
    }
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content,
    .hero-image {
        text-align: center;
    }
    .hero-content h1,
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .beneficios-image {
        grid-row: 1;
    }
}
@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    h2 {
        font-size: 2rem;
    }
    section {
        padding: 80px 0;
    }
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--blanco);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease-in-out;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 40px;
    }
    .nav-menu a {
        font-size: 1.5rem;
    }
    .nav-toggle {
        display: block;
    }
    .footer .container {
        flex-direction: column;
        text-align: center;
    }
    .social-icons a {
        margin: 0 10px;
    }
}
@media (max-width: 480px) {
    .logo img {
        height: 40px;
    }
    .nav-toggle span {
        width: 22px;
    }
    .nav-menu {
        top: 65px;
        padding: 15px;
    }
}
.screen {
    animation: fadeIn 0.6s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.rating-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.rating-btn:hover {
    transform: scale(1.1);
}
.rating-btn:active {
    transform: scale(0.95);
}
#progress-bar {
    transition: width 0.4s ease-in-out, background-color 0.5s ease-in-out;
}
.card {
    background-color: var(--blanco);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease-in-out;
}
.card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}
.tab {
    transition: all 0.2s ease-in-out;
}
.tab-active {
    border-color: var(--primario);
    background-color: #eef2ff;
    color: var(--primario);
    font-weight: 600;
}
#ai-modal-content {
    white-space: pre-wrap;
}
.pulse-open {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.animated-bar {
    transition: width 1s ease-out;
}
.tooltip-container {
    position: relative;
    display: inline-block;
}
.tooltip-icon {
    cursor: pointer;
    color: #9ca3af;
}
.tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: #1f2f37;
    color: #fff;
    text-align: left;
    border-radius: 0.5rem;
    padding: 1rem;
    position: absolute;
    z-index: 50;
    top: 50%;
    right: 0;
    left: auto;
    margin-left: 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}
.tooltip-container:hover .tooltip-text,
.tooltip-container:focus .tooltip-text,
.tooltip-container:focus-within .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}
.checklist-item input:checked + label {
    text-decoration: line-through;
    color: #6b7280;
}
.checklist-item label {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    flex-grow: 1;
    margin-left: 0.5rem;
}
.checklist-item input[type="checkbox"] {
    transform: scale(1.1);
}
.checklist-item input[type="checkbox"]:checked {
    border-color: var(--secundario);
    background-color: var(--secundario);
}
.mission-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.mission-phase {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    background-color: #f9fafb;
}
.chat-bubble-orientador {
    background-color: #eef2ff;
    align-self: flex-start;
}
.chat-bubble-student {
    background-color: #dcfce7;
    align-self: flex-end;
}
#comparison-modal-content {
    animation: fadeIn 0.3s ease-out;
}
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}
.comparison-table th {
    background-color: #eef2ff;
    color: #4338ca;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid #c7d2fe;
}
.comparison-table tr:last-child td {
    border-bottom: 0;
}
.comparison-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}
.comparison-table td:first-child {
    font-weight: 600;
    color: var(--texto-principal);
    background-color: #f9fafb;
    width: 25%;
}
.best-in-class {
    background-color: #dcfce7 !important;
    font-weight: 700;
    color: #15803d;
}
details > summary {
    list-style: none;
    cursor: pointer;
}
details > summary::-webkit-details-marker {
    display: none;
}
details[open] summary svg {
    transform: rotate(45deg);
}
.progress-bar-bg {
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.75rem;
    overflow: hidden;
}
.progress-bar-fill {
    background-color: var(--primario);
    height: 100%;
    transition: width 0.5s ease-in-out;
    border-radius: 9999px;
}
.plan-step {
    font-size: 0.875rem;
    color: #4b5563;
    padding-left: 0.5rem;
}
.plan-step-done {
    color: var(--secundario);
    text-decoration: line-through;
}
.modal {
    animation: fadeIn 0.3s ease-out;
}
.lead-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.lead-table th,
.lead-table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}
.lead-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--texto-principal);
}
.lead-table ul {
    list-style-position: inside;
    padding-left: 0;
    margin: 0;
}
.lead-table pre {
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
    font-size: 0.75rem;
    background-color: #f8fafc;
    padding: 4px;
    border-radius: 4px;
}
.section-title {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primario);
    font-weight: bold;
    font-size: 1.1rem;
}
.icon-option {
    cursor: pointer;
    transition: all 0.2s;
    background-color: var(--blanco);
}
.icon-option:hover {
    background-color: #e0e7ff;
}
.icon-option.selected {
    background-color: var(--primario);
    color: var(--blanco);
    border-color: var(--primario);
    box-shadow: 0 0 0 3px #c7d2fe;
}
.icon-option.selected svg {
    color: var(--blanco);
}
.hidden {
    display: none;
}
