/* rcresonance.com — estética del manual de marca RC (v7):
   fondo negro, onda azul → blanco, eje dorado con tres puntos. */
:root {
    --bg: #05070b;
    --bg-2: #0a0e15;
    --panel: rgba(255, 255, 255, 0.035);
    --panel-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --text: #eef2f7;
    --muted: #9aa6b8;
    --blue: #2f80ff;
    --blue-2: #5aa0ff;
    --gold: #f2b233;
    --gold-2: #f7c04a;
    --ok: #34d399;
    --radius: 20px;
    --logo-text: #ffffff;
    --logo-wave-end: #ffffff;
    --logo-glow: 0.9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Manrope, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: Sora, system-ui, sans-serif;
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.01em;
}

a {
    color: var(--blue-2);
}

img {
    max-width: 100%;
    display: block;
}

.blue {
    color: var(--blue-2);
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.wrap.narrow {
    max-width: 820px;
    text-align: center;
}

.lead {
    color: var(--muted);
    font-size: 1.12rem;
}

/* --- botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #2f80ff, #5aa0ff);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(47, 128, 255, 0.8);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--panel);
}

.btn-ghost:hover {
    border-color: rgba(242, 178, 51, 0.6);
}

.btn-small {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
}

/* --- barra superior --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
    background: rgba(5, 7, 11, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.nav.scrolled {
    border-bottom-color: var(--line);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.nav-logo svg {
    display: block;
}

.nav-word {
    font-family: Sora, sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.32em;
}

.nav-links {
    display: flex;
    gap: 26px;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang {
    display: flex;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.lang button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
}

.lang button.active {
    background: var(--panel-2);
    color: var(--text);
}

/* --- portada --- */
.hero {
    position: relative;
    padding: 64px 24px 90px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 720px;
    background:
        radial-gradient(40% 50% at 30% 40%, rgba(47, 128, 255, 0.22), transparent 70%),
        radial-gradient(30% 40% at 75% 30%, rgba(242, 178, 51, 0.1), transparent 70%);
    pointer-events: none;
}

.hero-mark {
    position: absolute;
    left: 50%;
    top: 18px;
    transform: translateX(-50%);
    width: min(1100px, 130vw);
    opacity: 0.09;
    pointer-events: none;
}

.hero-mark svg {
    width: 100%;
    height: auto;
}

.hero-grid {
    position: relative;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(242, 178, 51, 0.35);
    background: rgba(242, 178, 51, 0.07);
    color: var(--gold-2);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-2);
    box-shadow: 0 0 12px var(--gold);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 800;
}

.hero h1 span {
    display: block;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-ctas.center {
    justify-content: center;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 0;
    margin: 26px 0 0;
    list-style: none;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-points li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--gold-2);
    vertical-align: middle;
}

/* --- celular de ejemplo --- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0 30px;
}

.phone {
    position: relative;
    width: 290px;
    border-radius: 42px;
    padding: 12px;
    background: linear-gradient(160deg, #2a2f38, #0c0f14 40%, #1c2129);
    box-shadow: 0 40px 80px -30px rgba(47, 128, 255, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 22px;
    border-radius: 12px;
    background: #05070b;
    z-index: 2;
}

.phone-screen {
    border-radius: 32px;
    padding: 46px 14px 18px;
    background:
        radial-gradient(120% 60% at 90% 0%, rgba(20, 184, 166, 0.35), transparent 60%),
        linear-gradient(180deg, #eef8f6, #e3f2ef);
    color: #0b2b29;
    --logo-text: #0b2b29;
    --logo-wave-end: #0f766e;
    --logo-glow: 0.25;
}

.ph-head {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ph-flow {
    font-family: Sora, sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.24em;
}

.ph-hello {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.ph-hello strong {
    display: block;
    font-family: Sora, sans-serif;
    font-size: 1rem;
    line-height: 1.1;
}

.ph-hello small {
    color: #52706c;
    font-size: 0.7rem;
}

.ph-avatar {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: #b96f06;
    color: #fff;
    font-family: Sora, sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ph-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 6px 16px -10px rgba(11, 43, 41, 0.4);
}

.ph-kpi small {
    display: block;
    color: #52706c;
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.2;
}

.ph-kpi strong {
    font-family: Sora, sans-serif;
    font-size: 1.15rem;
}

.ph-kpi-hero strong {
    font-size: 1.9rem;
    margin-right: 8px;
}

.ph-kpi-hero .up {
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
}

.ph-kpi-hero svg {
    display: block;
    width: 100%;
    height: 30px;
    margin-top: 4px;
}

.ph-kpi-hero path {
    fill: none;
    stroke: #3b6fe0;
    stroke-width: 2.2;
    stroke-linejoin: round;
}

.ph-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.bubble {
    position: absolute;
    max-width: 250px;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.86rem;
    line-height: 1.4;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
    animation: float 6s ease-in-out infinite;
}

.bubble small {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.75;
    margin-bottom: 2px;
}

.bubble-q {
    top: -4px;
    left: -24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
}

.bubble-a {
    bottom: 6px;
    right: -14px;
    background: linear-gradient(135deg, rgba(47, 128, 255, 0.9), rgba(90, 160, 255, 0.9));
    color: #fff;
    animation-delay: -3s;
}

.visual-note {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    color: var(--muted);
    white-space: nowrap;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- secciones --- */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
}

.section-head {
    max-width: 760px;
    margin-bottom: 40px;
}

.kicker {
    color: var(--gold-2);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.problem {
    background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
}

.problem .lead {
    margin: 20px auto 0;
    max-width: 640px;
}

/* pasos */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 0;
    margin: 0 0 40px;
    list-style: none;
}

.step {
    position: relative;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(242, 178, 51, 0.5);
    color: var(--gold-2);
    font-family: Sora, sans-serif;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 0 20px -6px var(--gold);
}

.step h3,
.feature h3,
.aud h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step p,
.feature p,
.aud p {
    color: var(--muted);
    margin: 0;
    font-size: 0.97rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(47, 128, 255, 0.07), transparent 70%), var(--panel);
    border: 1px solid var(--line);
}

.f-ico,
.a-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    margin-bottom: 14px;
    color: var(--blue-2);
    background: rgba(47, 128, 255, 0.12);
    border: 1px solid rgba(47, 128, 255, 0.3);
}

.f-ico svg,
.a-ico svg,
.time-ico svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* tiempo */
.time-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 26px 30px;
    border-radius: var(--radius);
    border: 1px solid rgba(242, 178, 51, 0.45);
    background: linear-gradient(90deg, rgba(242, 178, 51, 0.1), rgba(242, 178, 51, 0.02));
}

.time-banner p {
    margin: 0;
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    letter-spacing: 0.02em;
}

.time-banner strong {
    color: var(--gold-2);
    font-family: Sora, sans-serif;
    font-size: 1.3em;
}

.time-ico {
    display: inline-flex;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(242, 178, 51, 0.5);
    color: var(--gold-2);
}

.time-ico svg {
    width: 26px;
    height: 26px;
}

/* para quien */
.audiences {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.aud {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}

/* confianza */
.trust {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.trust-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.trust-list li {
    position: relative;
    padding: 18px 20px 18px 50px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
}

.trust-list li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ok) 35%, transparent 40%);
    border: 1px solid rgba(52, 211, 153, 0.6);
}

.trust-list strong {
    color: var(--text);
}

/* galeria */
.gallery {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 18px;
    align-items: start;
}

.gallery figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(47, 128, 255, 0.4);
}

.gallery img {
    width: 100%;
    height: auto;
}

/* familia */
.family {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.fam-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}

.fam-live {
    border-color: rgba(47, 128, 255, 0.45);
    background: linear-gradient(160deg, rgba(47, 128, 255, 0.12), transparent 60%), var(--panel);
}

.fam-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.fam-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.fam-card p {
    color: var(--muted);
    margin: 0 0 18px;
}

.tag {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.tag-live {
    color: var(--ok);
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.tag-soon {
    color: var(--gold-2);
    background: rgba(242, 178, 51, 0.08);
    border: 1px solid rgba(242, 178, 51, 0.4);
}

/* contacto */
.contact {
    background:
        radial-gradient(50% 80% at 50% 100%, rgba(47, 128, 255, 0.18), transparent 70%);
}

.contact .lead {
    margin-top: 14px;
}

.contact-mail {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

/* pie */
.footer {
    padding: 40px 0 50px;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
    font-family: Sora, sans-serif;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    width: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

/* logo: onda que fluye y puntos que laten */
.rc-wave-flow {
    stroke-dasharray: 26 60;
    animation: wave-flow 5s linear infinite;
}

.rc-dot {
    animation: dot-pulse 3s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.rc-dot:nth-of-type(2) { animation-delay: 0.4s; }
.rc-dot:nth-of-type(3) { animation-delay: 0.8s; }

@keyframes wave-flow {
    to { stroke-dashoffset: -172; }
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    .bubble, .rc-wave-flow, .rc-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* --- celular --- */
@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .trust {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 40px;
    }

    .steps,
    .features {
        grid-template-columns: 1fr 1fr;
    }

    .audiences {
        grid-template-columns: 1fr 1fr;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .gallery figure:last-child {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .wrap,
    .hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .nav {
        padding: 10px 16px;
    }

    .nav-word {
        display: none;
    }

    .nav .btn {
        min-height: 40px;
        padding: 0 14px;
    }

    .section {
        padding: 60px 0;
    }

    .steps,
    .features,
    .family,
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery figure:last-child {
        display: block;
    }

    .bubble-q {
        left: 0;
        top: 30px;
    }

    .bubble-a {
        right: 0;
        bottom: 40px;
    }

    .bubble {
        max-width: 200px;
        font-size: 0.8rem;
    }

    .time-banner {
        flex-direction: column;
        text-align: center;
    }

    .hero-ctas .btn {
        flex: 1 1 100%;
    }
}
