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

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top left, #ffe57f 0, #fff 40%, #e3f2fd 100%);
    color: #111827;
    line-height: 1.6;
}

.app {
    min-height: 100vh;
}

/* NAVBAR & HERO */

.hero {
    padding: 1.25rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0.75rem;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #111827;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

.brand-sub {
    font-size: 0.75rem;
    color: #6b7280;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.nav-links a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.nav-links a:hover {
    background: #111827;
    color: #f9fafb;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

/* HERO CONTENT */

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 3vw, 2.7rem);
    margin-bottom: 0.75rem;
}

.hero-lead {
    font-size: 1rem;
    max-width: 30rem;
    color: #4b5563;
}

.hero-highlights {
    list-style: none;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #111827;
}

.hero-highlights li + li {
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn.primary {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #111827;
    box-shadow: 0 10px 30px rgba(248, 113, 22, 0.4);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(248, 113, 22, 0.5);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    border-color: rgba(148, 163, 184, 0.6);
}

.btn.ghost:hover {
    background: #111827;
    color: #f9fafb;
}

.btn.full {
    width: 100%;
}

.hero-card {
    background: rgba(15, 23, 42, 0.96);
    color: #f9fafb;
    border-radius: 24px;
    padding: 1.5rem 1.7rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.14), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.hero-card p {
    font-size: 0.9rem;
    color: #e5e7eb;
    position: relative;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    position: relative;
}

.badge {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: rgba(249, 250, 251, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

/* SECTIONS */

main {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), #f3f4f6);
    border-radius: 32px 32px 0 0;
    margin-top: 3rem;
    padding-bottom: 4rem;
}

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 0;
}

/*.section.alt {*/
/*    background: radial-gradient(circle at top right, #dbeafe 0, transparent 50%);*/
/*}*/

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-tag {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: #111827;
    color: #f9fafb;
}

.section-header h2 {
    font-size: 1.4rem;
}

.section-header p {
    font-size: 0.9rem;
    color: #4b5563;
}

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

.card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.1rem 1.1rem 0.9rem;
    box-shadow: 0 12px 30px rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transform-origin: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.35);
    border-color: rgba(55, 65, 81, 0.16);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-header h3 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.card-header p {
    font-size: 0.85rem;
    color: #6b7280;
}

.icon-toggle {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
}

.icon-toggle::before,
.icon-toggle::after {
    content: "";
    position: absolute;
    background: #111827;
    border-radius: 999px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.icon-toggle::before {
    width: 10px;
    height: 2px;
}

.icon-toggle::after {
    width: 2px;
    height: 10px;
}

.card.open .icon-toggle::after {
    transform: scaleY(0);
    opacity: 0;
}

.card-body {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #374151;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.card.open .card-body {
    max-height: 400px;
    opacity: 1;
}

.card-body ul {
    list-style: none;
    padding-left: 0.4rem;
}

.card-body li + li {
    margin-top: 0.25rem;
}

/* CONTACTO */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.contact-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.3rem 1.4rem 1.4rem;
    box-shadow: 0 16px 36px rgba(148, 163, 184, 0.3);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.contact-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.8rem;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
}

.social-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #f97316;
    color: #111827;
    font-size: 0.75rem;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

label {
    font-size: 0.8rem;
    color: #4b5563;
}

input,
select,
textarea {
    border-radius: 10px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    padding: 0.45rem 0.6rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    background: #f9fafb;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
    background: #ffffff;
}

textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.75rem;
    color: #6b7280;
}

/* BACK TO TOP */

.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: #111827;
    color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
    z-index: 30;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #f97316;
    color: #111827;
}

/* FOOTER */

.footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 2.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-small {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        padding: 1rem 1rem 2.5rem;
    }

    main {
        margin-top: 2.5rem;
    }

    .navbar {
        padding-inline: 1rem;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card {
        order: -1;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 110%;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        border-radius: 18px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.21);
        padding: 0.6rem 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        min-width: 11rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .navbar.open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .hero {
        padding-inline: 1rem;
    }

    .section {
        padding-inline: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .navbar {
        border-radius: 18px;
    }
}

/* Contenedor fijo abajo, centrado */
.intro-image {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;              /* ocupa todo el ancho */
    display: flex;            /* usamos flexbox */
    justify-content: center;  /* centrado horizontal */
    pointer-events: none;     /* opcional: no bloquea clics */
    z-index: 9999;

    opacity: 1;
    transition: opacity 1s ease;  /* solo opacidad, nada de "all" */
}

/* La imagen en sí, con tamaño 50% */
.intro-image img {
    width: 50vw;     /* 50% del ancho de la ventana */
    height: auto;
    display: block;
}


@media (max-width: 720px) {
    .intro-image img {
        width: 80vw;     /* 50% del ancho de la ventana */
        height: auto;
        display: block;
    }  
}


















