:root {
    --bg: #070a12;
    --bg2: #0b1326;
    --card: #0e1a33;
    --text: #eaf1ff;
    --muted: #b7c6e6;
    --line: rgba(255, 255, 255, .10);
    --accent: #38bdf8;
    --accent2: #22c55e;
    --shadow: 0 18px 45px rgba(0, 0, 0, .35);
    --radius: 18px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background:
        radial-gradient(1200px 700px at 15% 10%, rgba(56, 189, 248, .18), transparent 60%),
        radial-gradient(900px 600px at 85% 20%, rgba(34, 197, 94, .13), transparent 55%),
        linear-gradient(180deg, var(--bg), var(--bg2));
    color: var(--text);
}

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

.muted {
    color: var(--muted)
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.section {
    padding: 70px 0
}

.section--alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    margin-bottom: 22px
}

.section-head h2 {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    margin: 0 0 6px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 60ch;
}

/* =========================
   Header
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 10, 18, .78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    width: 78px;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
}

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

.brand-name {
    font-weight: 900;
    letter-spacing: .4px;
    font-size: 1.12rem;
}

.brand-sub {
    font-size: .9rem;
    color: var(--muted);
}

.nav {
    display: none;
    gap: 16px
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: 10px 10px;
    border-radius: 12px;
    transition: background .15s ease, color .15s ease;
}

.nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, .95), rgba(34, 197, 94, .90));
    color: #041018;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .10);
    box-shadow: var(--shadow);
}

.btn--ghost {
    background: rgba(255, 255, 255, .07);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn--small {
    padding: 10px 12px;
    font-weight: 800;
    border-radius: 12px;
}

.btn--full {
    width: 100%
}

/* =========================
   Hero
========================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: 34px 0 46px;
    border-bottom: 1px solid var(--line);
}

.hero-bg{
  background:
    radial-gradient(900px 500px at 25% 25%, rgba(56,189,248,.18), transparent 55%),
    radial-gradient(800px 500px at 80% 30%, rgba(34,197,94,.12), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65));
}


.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.hero-card {
    background: rgba(14, 26, 51, .78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.kicker {
    margin: 0 0 10px;
    color: var(--muted);
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    font-size: .82rem;
}

.hero-card h1 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 4.8vw, 3rem);
    line-height: 1.08;
}

.lead {
    margin: 0 0 16px;
    color: var(--muted);
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    font-size: .92rem;
    color: var(--text);
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line);
}

/* Imagen dentro de hero-card */
.hero-media {
    margin-top: 16px
}

.media-card {
    margin: 0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Video card */
.hero-video {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    box-shadow: var(--shadow);
}

.hero-video__caption {
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(0, 0, 0, .14);
}

.cap-title {
    margin: 0 0 6px;
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 1rem;
}

.cap-sub {
    font-weight: 700;
    color: var(--muted);
    margin-left: 6px;
    font-size: .92rem;
}

.cap-line {
    margin: 0 0 6px;
    color: rgba(234, 241, 255, .88);
}

.cap-cta {
    margin: 8px 0 0;
    font-weight: 900;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-size: .92rem;
}

.hero-video__media {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================
   Grid / Cards
========================= */
.grid {
    display: grid;
    gap: 14px
}

.cards {
    grid-template-columns: 1fr
}

.card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: rgba(0, 0, 0, .22);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ✅ Evita que se “corten” imágenes: contain + padding */
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
}

.card-body {
    padding: 16px 16px 18px
}

.card-body h3 {
    margin: 0 0 6px;
    font-size: 1.18rem
}

.list {
    margin: 12px 0 14px;
    padding-left: 18px;
    color: var(--muted);
}

.list li {
    margin: 6px 0
}

/* Bodyboards: separar botones */
#bodyboards .card-body .btn+.btn {
    margin-top: 10px
}

/* =========================
   Medidas (FIX ancho)
========================= */

/* ✅ Solo para esta sección: contenedor más angosto para que NO se vea “100%” */
/* 2 columnas: tabla + banner */
/* Medidas: layout 2 columnas (tabla + banner) */
.measure-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: 18px;
    align-items: start;
}

/* tabla “card” */
.table-wrap {
    scrollbar-gutter: stable;

    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
}

/* Tabla */
.measure-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: auto;
}

.measure-table th,
.measure-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.measure-table thead th {
    background: rgba(255, 255, 255, .05);
    font-weight: 900;
}

.measure-table .subhead th {
    font-weight: 800;
    color: var(--muted);
    background: rgba(255, 255, 255, .03);
}

.th-sub {
    display: block;
    font-weight: 700;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 4px;
}

.measure-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, .03);
}

.note {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: .95rem;
}

/* Banner vertical */
/* Banner */
.measure-banner {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.measure-banner img {
    width: 100%;
    height: auto;
    max-height: 720px;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    background: rgba(0, 0, 0, .20);
}

/* =========================
   Social / CTA / Footer
========================= */
.socials {
    grid-template-columns: 1fr
}

.social-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
    transition: transform .12s ease, background .12s ease;
}

.social-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .06);
}

.icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(56, 189, 248, .16);
    border: 1px solid var(--line);
}

.social-title {
    font-weight: 900
}

.cta {
    margin-top: 18px
}

.cta-box {
    background: linear-gradient(135deg, rgba(56, 189, 248, .10), rgba(34, 197, 94, .08));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.cta-box h3 {
    margin: 0 0 6px
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding: 22px 0;
    background: rgba(0, 0, 0, .18);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer p {
    margin: 0
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

.footer-title {
    margin: 0;
    font-weight: 900
}

.footer-sub {
    margin: 4px 0 0
}

.footer-copy p {
    margin: 0
}

/* =========================
   Picker (Elige tu bodyboard)
========================= */
.picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.picker-form,
.picker-result {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.field {
    margin-bottom: 12px
}

.field label {
    display: block;
    font-weight: 900;
    margin-bottom: 6px
}

.field input,
.field select {
    width: 100%;
    padding: 12px 44px 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.field input::placeholder {
    color: rgba(234, 241, 255, .55)
}

.field input:focus,
.field select:focus {
    border-color: rgba(56, 189, 248, .55);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, .14),
        inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Select custom arrow */
.field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(234, 241, 255, .85) 50%),
        linear-gradient(135deg, rgba(234, 241, 255, .85) 50%, transparent 50%),
        linear-gradient(to right, transparent, transparent);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px),
        0 0;
    background-size: 6px 6px, 6px 6px, 100% 100%;
    background-repeat: no-repeat;
}

.field select option {
    background: #0b1326;
    color: #eaf1ff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.status {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    min-height: 44px;
}

.result-head h3 {
    margin: 0 0 6px
}

.result-head p {
    margin: 0 0 12px
}

.cards--2 {
    grid-template-columns: 1fr
}

.product-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--text);
    font-weight: 800;
    font-size: .86rem;
}

.badge--ok {
    background: rgba(34, 197, 94, .12)
}

.badge--warn {
    background: rgba(56, 189, 248, .10)
}

.badge--bad {
    background: rgba(239, 68, 68, .10)
}

/* Centrar encabezado de "Elige tu bodyboard" */
#elige .section-head {
    text-align: center
}

#elige .section-head p {
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
}

/* =========================
   Responsive
========================= */
@media (max-width:520px) {
    .brand-logo {
        width: 56px
    }

    .brand-name {
        font-size: 1.02rem
    }

    .brand-sub {
        font-size: .84rem
    }
}

/* Desktop */
@media (min-width:860px) {
    .nav {
        display: flex
    }

    .hero-inner {
        grid-template-columns: 1.05fr .95fr
    }

    .cards {
        grid-template-columns: repeat(3, 1fr)
    }

    .socials {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width:900px) {
    .picker {
        grid-template-columns: .95fr 1.05fr
    }

    .cards--2 {
        grid-template-columns: repeat(2, 1fr)
    }
}

/* Medidas responsive (baja banner) */
@media (max-width: 980px) {
    .measure-layout {
        grid-template-columns: 1fr;
    }

    .table-wrap {
        overflow-x: auto;
        overflow-y: visible;
    }

    .measure-banner {
        border-radius: 18px;
        overflow: hidden;
        background: rgba(255, 255, 255, .04);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .measure-banner img {
        width: 100%;
        height: auto;
        max-height: 720px;
        display: block;
        object-fit: contain;
        object-position: center;
        border-radius: 14px;
        background: rgba(0, 0, 0, .20);
    }
}

/* Motion safety */
@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .social-card {
        transition: none
    }

    .social-card:hover {
        transform: none
    }
}

/* CTA con logo a la derecha */
.cta-box--with-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cta-content {
    min-width: 0;
    max-width: 70ch;
}

.cta-logo {
    width: 480px;
    /* ajusta si lo quieres más grande/chico */
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
    opacity: 0.95;
}

/* Responsive: en móvil el logo baja y se alinea a la derecha */
@media (max-width: 720px) {
    .cta-box--with-logo {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-logo {
        align-self: flex-end;
        width: 140px;
    }
}