:root {
    --bg: #f7f8fc;
    --primary: #4a6cf7;
    --secondary: #f4a261;
    --accent: #2a9d8f;
    --text: #1a1a2e;
    --muted: #6c6f80;
    --surface: #ffffff;
    --shadow: 0 18px 45px rgba(18, 41, 77, 0.08);
}

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

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

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

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

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 20px;
}

.section__header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}

.section__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(74, 108, 247, 0.12);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.section__header h2 {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 2.35rem;
    margin-bottom: 16px;
}

.section__header p {
    color: var(--muted);
    font-size: 1.05rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 14px 28px rgba(74, 108, 247, 0.25);
}

.btn--primary:hover {
    background: #3d5adc;
}

.btn--secondary {
    background: rgba(42, 157, 143, 0.12);
    color: var(--accent);
}

.btn--secondary:hover {
    background: rgba(42, 157, 143, 0.2);
}

.btn--ghost {
    border: 1px solid rgba(74, 108, 247, 0.4);
    background: transparent;
    color: var(--primary);
}

.btn--ghost:hover {
    background: rgba(74, 108, 247, 0.08);
}

.hero {
    background: radial-gradient(circle at top left, rgba(74, 108, 247, 0.15), transparent 50%), radial-gradient(circle at top right, rgba(244, 162, 97, 0.18), transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 252, 0.98));
    padding: 120px 20px 100px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto 48px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(30, 46, 100, 0.12);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1180px;
    z-index: 100;
    backdrop-filter: blur(18px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.logo img {
    height: 48px;
    width: auto;
}

.logo span {
    line-height: 1;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav__links a {
    font-weight: 600;
    color: var(--muted);
}

.nav__links a:hover {
    color: var(--primary);
}

.nav__whatsapp {
    background: #25D366;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.nav__whatsapp:hover {
    background: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.nav__cta {
    background: rgba(74, 108, 247, 0.1);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    color: var(--primary);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero__banner {
    max-width: 800px;
    margin: 0 auto 32px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero__banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.hero__content {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 32px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.hero__text h1 {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 3.1rem;
    margin: 18px 0;
}

.hero__text p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.hero__badge {
    background: rgba(42, 157, 143, 0.14);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.hero__stats {
    display: flex;
    list-style: none;
    gap: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero__stats strong {
    display: block;
    font-size: 1.8rem;
    color: var(--primary);
}

.hero__card {
    background: var(--surface);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero__card h2 {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 1.8rem;
}

.hero__card p {
    color: var(--muted);
}

.hero__card ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.hero__card li {
    padding-left: 20px;
    position: relative;
    color: var(--muted);
}

.hero__card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary);
}

.trust {
    background: var(--surface);
}

.trust__wrapper {
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 24px;
}

.trust__wrapper h2 {
    font-family: 'Rubik', Arial, sans-serif;
}

.trust__wrapper p {
    color: var(--muted);
}

.trust__logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
    font-weight: 600;
    color: var(--muted);
}

.programs {
    max-width: 1180px;
    margin: 0 auto;
}

.programs__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.program {
    background: var(--surface);
    padding: 32px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
}

.program h3 {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 1.35rem;
}

.program p {
    color: var(--muted);
}

.program ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.program li {
    padding-left: 18px;
    position: relative;
    color: var(--muted);
}

.program li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.approach {
    background: var(--surface);
}

.approach__grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.approach__grid article {
    background: #f3f6ff;
    padding: 24px;
    border-radius: 18px;
    display: grid;
    gap: 12px;
}

.approach__grid h3 {
    font-family: 'Rubik', Arial, sans-serif;
}

.approach__grid p {
    color: var(--muted);
}

.team {
    max-width: 1180px;
    margin: 0 auto;
}

.team__members {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.team__member {
    background: var(--surface);
    padding: 28px;
    border-radius: 22px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 12px;
}

.team__member h3 {
    font-family: 'Rubik', Arial, sans-serif;
}

.team__member p:nth-of-type(1) {
    font-weight: 600;
    color: var(--primary);
}

.team__member p:nth-of-type(2) {
    color: var(--muted);
}

.metrics {
    padding: 60px 20px;
}

.metrics__wrapper {
    max-width: 960px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.92), rgba(42, 157, 143, 0.92));
    border-radius: 26px;
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    color: #fff;
    text-align: center;
}

.metrics__wrapper strong {
    font-size: 2rem;
    display: block;
    font-family: 'Rubik', Arial, sans-serif;
}

.testimonials {
    max-width: 1180px;
    margin: 0 auto;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.testimonials__grid article {
    background: #ffffff;
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
    color: var(--muted);
}

.testimonials__grid span {
    font-weight: 600;
    color: var(--primary);
}

.cta {
    background: radial-gradient(circle at top right, rgba(74, 108, 247, 0.25), transparent 60%), var(--surface);
}

.cta__content {
    max-width: 960px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    padding: 48px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.cta__content h2 {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.cta__content p {
    color: var(--muted);
    margin-bottom: 28px;
}

.cta__form {
    display: grid;
    gap: 18px;
}

.form__row {
    display: grid;
    gap: 8px;
}

.form__row label {
    font-weight: 600;
    color: var(--text);
}

.form__row input,
.form__row textarea {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 46, 0.1);
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form__row input:focus,
.form__row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.form__note {
    font-size: 0.9rem;
    color: var(--muted);
}

.contact {
    max-width: 1180px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    align-items: stretch;
}

.contact__info {
    background: var(--surface);
    padding: 36px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}

.contact__info h2 {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 2rem;
}

.contact__info p {
    color: var(--muted);
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.86);
    padding: 60px 20px 36px;
}

.footer__wrapper {
    max-width: 1180px;
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
}

.footer__links ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer__links h4 {
    font-family: 'Rubik', Arial, sans-serif;
    margin-bottom: 12px;
}

.footer__contact {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
}

.footer__legal {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.86);
}

.footer__legal a:hover {
    color: #fff;
}

.floating-actions {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: grid;
    gap: 12px;
    z-index: 200;
}

.floating-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-btn span {
    font-size: 1rem;
}

.floating-btn:hover,
.floating-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(18, 41, 77, 0.18);
}

.floating-btn:focus {
    outline: 3px solid rgba(74, 108, 247, 0.35);
    outline-offset: 2px;
}

.floating-btn--up,
.floating-btn--down {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.25rem;
}

.floating-btn--down {
    background: var(--accent);
}

.floating-btn--whatsapp {
    background: #25d366;
    padding: 12px 20px;
    text-decoration: none;
}

.floating-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.floating-btn__label {
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
    }

    .programs__grid,
    .approach__grid,
    .team__members,
    .testimonials__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .metrics__wrapper {
        grid-template-columns: 1fr;
    }

    .footer__wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablets */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__text h1 {
        font-size: 2.6rem;
    }

    .nav {
        max-width: 95%;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    section {
        padding: 60px 16px;
    }

    .nav {
        position: fixed;
        top: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
        transform: none;
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }

    .logo img {
        height: 36px;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .nav__toggle {
        display: block;
    }

    .nav__links {
        flex-direction: column;
        width: 100%;
        display: none;
        background: rgba(255, 255, 255, 0.98);
        padding: 12px;
        border-radius: 12px;
        margin-top: 8px;
    }

    .nav__links.is-open {
        display: grid;
        gap: 12px;
    }

    .nav__links a {
        padding: 8px;
        border-radius: 8px;
        transition: background 0.3s ease;
    }

    .nav__links a:hover {
        background: rgba(74, 108, 247, 0.08);
    }

    .nav__whatsapp {
        width: 48%;
        order: 1;
        padding: 8px 12px;
        font-size: 0.9rem;
        text-align: center;
    }

    .nav__cta {
        width: 48%;
        order: 2;
        padding: 8px 12px;
        font-size: 0.9rem;
        text-align: center;
    }

    .hero {
        padding: 90px 16px 60px;
    }

    .hero__banner {
        max-width: 100%;
        margin: 0 auto 24px;
        border-radius: 16px;
    }

    .hero__banner img {
        max-height: 250px;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero__text h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero__text p {
        font-size: 1rem;
    }

    .hero__badge {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero__card {
        padding: 24px;
    }

    .hero__card h2 {
        font-size: 1.4rem;
    }

    section {
        padding: 50px 16px;
    }

    .section__header h2 {
        font-size: 1.8rem;
    }

    .section__header p {
        font-size: 1rem;
    }

    .programs__grid,
    .approach__grid,
    .team__members,
    .testimonials__grid,
    .contact {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta__content {
        padding: 32px 20px;
    }

    .cta__content h2 {
        font-size: 1.6rem;
    }

    .form__row {
        margin-bottom: 16px;
    }

    .form__row input,
    .form__row textarea {
        font-size: 16px;
    }

    .contact__map iframe {
        min-height: 260px;
    }

    .footer__wrapper {
        grid-template-columns: 1fr;
    }

    .footer__legal {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .floating-actions {
        bottom: 20px;
        right: 16px;
    }

    .floating-btn__label {
        display: none;
    }

    .popup-content {
        padding: 28px 20px;
        width: 92%;
        max-width: 340px;
    }

    .popup-icon {
        font-size: 3rem;
    }

    .popup-content h3 {
        font-size: 1.4rem;
    }

    .popup-content p {
        font-size: 0.95rem;
    }

    .popup-close {
        font-size: 1.6rem;
        top: 12px;
        right: 12px;
    }
}

/* AI Bot Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    position: relative;
    text-align: center;
    animation: popupSlide 0.4s ease;
}

@keyframes popupSlide {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}

.popup-close:hover {
    color: var(--text);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.popup-content h3 {
    font-family: 'Rubik', Arial, sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.popup-content--success h3 {
    color: #22c55e;
}

.popup-content--success .popup-icon {
    color: #22c55e;
}

.popup-content p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.popup-btn {
    margin-top: 20px;
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero__text h1 {
        font-size: 1.5rem;
    }

    .section__header h2 {
        font-size: 1.5rem;
    }

    .hero__actions {
        gap: 10px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .nav {
        top: 8px;
        left: 8px;
        width: calc(100% - 16px);
        padding: 10px 12px;
    }

    .logo img {
        height: 32px;
    }

    .logo span {
        font-size: 1rem;
    }

    .nav__whatsapp,
    .nav__cta {
        font-size: 0.85rem;
        padding: 7px 10px;
    }

    .floating-actions {
        bottom: 16px;
        right: 12px;
        gap: 10px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
    }

    .popup-content {
        padding: 24px 16px;
    }

    .popup-content h3 {
        font-size: 1.3rem;
    }

    .metrics__wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
