:root {
    --coral: #f57463;
    --magenta: #d95a7c;
    --violeta: #7b56c5;
    --azul: #4a7bc2;
    --azul-oscuro: #1c1f4a;
    --fondo: #0c0f24;
    --texto: #0f172a;
    --muted: #6b7280;
    --card: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.08);
    --borde: rgba(255, 255, 255, 0.14);
    --radius: 20px;
    --shadow: 0 24px 60px rgba(11, 16, 31, 0.28);
}

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

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    color: var(--texto);
    background: radial-gradient(circle at 20% 20%, rgba(245, 116, 99, 0.12), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(75, 115, 194, 0.14), transparent 35%),
        #f9fbff;
    line-height: 1.6;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    letter-spacing: -0.01em;
    margin: 0;
    color: #0b1025;
}

p {
    margin: 0;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(0);
    background: #0b0f1d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.brand-mark img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--coral), var(--magenta), var(--azul));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.brand-text strong {
    display: block;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.brand-text small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.92);
}

.nav-links a {
    padding: 0.5rem 0.6rem;
    font-weight: 600;
    border-radius: 12px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 999px;
}

.hero {
    position: relative;
    padding: 4.5rem 0 4rem;
    background: linear-gradient(120deg, rgba(12, 12, 28, 0.94), rgba(20, 24, 51, 0.92)),
        linear-gradient(120deg, rgba(245, 116, 99, 0.2), rgba(123, 86, 197, 0.25));
    color: #fff;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(245, 116, 99, 0.4), transparent 65%);
    filter: blur(10px);
    top: -120px;
    left: -40px;
    opacity: 0.8;
    pointer-events: none;
}

.hero-glow.secondary {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(75, 115, 194, 0.35), transparent 65%);
    top: 20px;
    right: -60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #fff;
    margin-bottom: 0.4rem;
}

.lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0.5rem 0 1rem;
}

.hero-copy .cta-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.1rem 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.chips span {
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.hero-visual .frame {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    padding: 1rem;
    box-shadow: var(--shadow);
    position: relative;
}

.hero-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 280px;
    background: linear-gradient(135deg, var(--coral), var(--violeta), var(--azul));
}

.hero-audio-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(8, 10, 20, 0.7);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 2;
}

.hero-audio-toggle i {
    font-size: 0.95rem;
}

.hero-audio-toggle .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.18);
}

.hero-audio-toggle .dot.secondary {
    background: #4ade80;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.18);
}

.hero-media iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
}

.hero-image {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--coral), var(--magenta), var(--azul));
    opacity: 0.9;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 9, 16, 0) 30%, rgba(8, 9, 16, 0.4) 100%);
    pointer-events: none;
}

.label {
    display: inline-flex;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    color: #fff;
}

.stats strong {
    display: block;
    font-size: 1.4rem;
}

.social-proof {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.social-proof .dot {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--coral), var(--violeta));
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(245, 116, 99, 0.16);
}

.section {
    padding: 3.8rem 0;
    background: transparent;
}

.section.soft {
    background: #f5f6fb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--magenta);
    margin-bottom: 0.3rem;
}

.section-intro {
    color: var(--muted);
    max-width: 620px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.1rem;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn.primary {
    background: linear-gradient(135deg, var(--coral), var(--violeta));
    color: #fff;
    box-shadow: 0 18px 40px rgba(245, 116, 99, 0.32);
}

.btn.primary:hover {
    box-shadow: 0 22px 48px rgba(123, 86, 197, 0.32);
}

.btn.ghost {
    background: transparent;
    color: var(--azul-oscuro);
    border-color: rgba(15, 23, 42, 0.14);
}

.btn.ghost:hover {
    border-color: rgba(15, 23, 42, 0.32);
}

.btn.sm {
    padding: 0.55rem 0.9rem;
    font-size: 0.95rem;
}

/* Ghost invertidos en fondos oscuros */
.hero .btn.ghost,
.site-header .btn.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.hero .btn.ghost:hover,
.site-header .btn.ghost:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.14);
}

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

.service-media {
    margin: -0.3rem 0 0.8rem;
}

.service-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--coral), var(--violeta));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.card {
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.card h3 {
    margin: 0.3rem 0 0.35rem;
}

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

.pill {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(75, 115, 194, 0.08);
    color: var(--azul-oscuro);
    font-weight: 700;
    font-size: 0.85rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
}

.portfolio-card {
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.thumb {
    background: linear-gradient(135deg, var(--coral), var(--violeta));
    padding-top: 62%;
    position: relative;
}

.thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    padding: 1rem 1.2rem 1.15rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags .pill {
    background: rgba(0, 0, 0, 0.06);
    color: var(--texto);
}

.benefits .icon {
    font-size: 1.6rem;
    color: var(--magenta);
    margin-bottom: 0.35rem;
}

.section.split {
    background: #0d1024;
    color: #fff;
}

.section.split h2,
.section.split .eyebrow {
    color: #fff;
}

.section.split .section-intro {
    color: rgba(255, 255, 255, 0.72);
}

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

.step {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.2rem;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--coral), var(--violeta));
    font-weight: 800;
    margin-bottom: 0.6rem;
}

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

.testimonial {
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 18px;
    padding: 1.2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 220px;
}

.quote {
    font-size: 1rem;
    color: #111827;
    margin-bottom: 0.8rem;
    flex: 1;
}

.author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--muted);
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--coral), var(--violeta));
    color: #fff;
    font-weight: 800;
}

.testi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.pill-light {
    background: rgba(0, 0, 0, 0.04);
    color: #0f172a;
}

.stars {
    color: #f7c948;
    display: inline-flex;
    gap: 2px;
    font-size: 0.95rem;
}

/* EQUIPO */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.team-card {
    background: #fff;
    border: 1px solid #e7e9f2;
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 42px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--coral), var(--violeta));
}

.team-role {
    font-weight: 700;
    color: var(--azul-oscuro);
}

.team-bio {
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-block {
    background: radial-gradient(circle at 20% 20%, rgba(245, 116, 99, 0.18), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(123, 86, 197, 0.2), transparent 40%),
        linear-gradient(120deg, #0d1024, #111635);
    color: #fff;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-card .btn {
    margin-top: 0.5rem;
}

.cta-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

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

.contacto-card {
    background: #fff;
    border-radius: 18px;
    border: 1px solid #e7e9f2;
    padding: 1.2rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.contact-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #0d1b36;
}

.contact-links a:hover {
    color: var(--coral);
}

.footer {
    padding: 1rem 0;
    background: #0b0f1d;
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.whatsapp-fab {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2bd26c, #25a45a);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 60;
}

.skeleton {
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: shimmer 1.8s infinite;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        inset: 0;
        background:
            radial-gradient(circle at 20% 20%, rgba(245, 116, 99, 0.12), transparent 38%),
            radial-gradient(circle at 80% 20%, rgba(91, 71, 156, 0.16), transparent 40%),
            rgba(6, 8, 20, 0.92);
        backdrop-filter: blur(14px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.4rem;
        transform: translateY(-100%);
        transition: transform 0.25s ease;
        text-align: center;
        z-index: 90;
        opacity: 0;
        pointer-events: none;
        padding: 12vh 1.5rem 12vh;
        overflow-y: auto;
        min-height: 100vh;
    }

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

    .nav-links a {
        font-size: 1.2rem;
        color: #fff;
        font-weight: 700;
        width: 100%;
        display: block;
        padding: 0.4rem 0;
    }

    .nav-links .btn {
        display: inline-flex;
        min-width: 200px;
        justify-content: center;
        border-color: rgba(255, 255, 255, 0.7);
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-toggle {
        display: flex;
    }

    .site-header {
        background: rgba(9, 9, 20, 0.92);
    }

    .hero {
        padding: 3.8rem 0 3.4rem;
    }

    .hero-copy .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
