:root{
    --max: 1400px;
    --pad: clamp(16px, 3.2vw, 34px);
    --headerH: 72px;

    --red: #d0131f;

    /* Header: black */
    --header-bg: #070707;
    --header-text: rgba(255,255,255,0.92);
    --header-muted: rgba(255,255,255,0.65);
    --header-line: rgba(255,255,255,0.14);

    /* Page: white */
    --page-bg: #ffffff;
    --page-text: #111111;
    --page-muted: #666666;
    --page-line: #e5e5e5;

    /* Panels: white-gray */
    --panel: #f5f5f5;
    --panel-line: #e0e0e0;

    --radius: 6px;
}

*{
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--page-bg);
    color: var(--page-text);
    line-height: 1.65;
}

.container{
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* Header */
.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-line);
}

.header-inner{
    min-height: var(--headerH);
    display: grid;
    grid-template-columns: auto 1fr auto; /* brand | centered nav | spacer */
    align-items: center;
    gap: 10px;
}

.spacer{
    width: 1px;
    height: 1px;
}

/* Brand */
.brand{
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--header-text);
    white-space: nowrap;
}

.brand-mark{
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--red);
}

.brand-text{
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.brand-name{
    font-weight: 950;
    letter-spacing: 0.14em;
    font-size: 18px;
}
.brand-tag{
    margin-top: 5px;
    font-weight: 800;
    letter-spacing: 0.10em;
    font-size: 11px;
    color: var(--header-muted);
}

/* Nav: centered, rectangular hover, full height */
.nav{
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav::-webkit-scrollbar{
    display: none;
}

.nav a{
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    padding: 0 14px;
    height: var(--headerH);
    display: flex;
    align-items: center;
    border-radius: 0;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    white-space: nowrap;
    font-weight: 650;
}


.nav a[aria-current="page"]{
    color: rgba(255,255,255,0.98);
    background: rgba(255,255,255,0.06);
    border-left-color: rgba(255,255,255,0.18);
    border-right-color: rgba(255,255,255,0.18);
}
.nav a:hover{
    background: rgba(255,255,255,0.08);
    border-left-color: var(--header-line);
    border-right-color: var(--header-line);
    color: #fff;
}

/* Hero */
.hero{
    padding: clamp(26px, 5vw, 64px) 0 22px;
    border-bottom: 1px solid var(--page-line);
    background: var(--page-bg);
}

.kicker{
    margin: 0 0 14px;
    color: var(--page-muted);
    font-weight: 650;
}

.hero-title{
    margin: 0 0 14px;
    line-height: 0.92;
}

.hero-title-main{
    display: block;
    font-weight: 980;
    letter-spacing: 0.16em;
    font-size: clamp(44px, 5.4vw, 86px);
    color: var(--page-text);
}

.hero-title-sub{
    display: inline-block;
    margin-top: 10px;
    padding-left: 12px;
    border-left: 5px solid var(--red);
    font-weight: 850;
    letter-spacing: 0.12em;
    font-size: clamp(14px, 1.9vw, 20px);
    color: #222;
}

.lead{
    margin: 0 0 18px;
    max-width: 70ch;
    color: #222;
}

.hero-actions{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

/* Buttons (used only in hero) */
.btn{
    display: inline-block;
    text-decoration: none;
    color: #111;
    background: transparent;
    border: 1px solid var(--page-line);
    padding: 11px 16px;
    border-radius: 999px;
    font-weight: 850;
    letter-spacing: 0.02em;
}
.btn:hover{
    border-color: #cfcfcf;
}

.btn-ghost{
    background: #f7f7f7;
}

.btn-red{
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.btn-red:hover{
    filter: brightness(1.03);
}

.hero-facts{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
}
.hero-facts > div{
    border-top: 1px solid var(--page-line);
    padding-top: 12px;
}
.hero-facts dt{
    color: var(--page-muted);
    font-weight: 750;
    letter-spacing: 0.03em;
    font-size: 12px;
    text-transform: uppercase;
}
.hero-facts dd{
    margin: 6px 0 0;
    font-weight: 700;
    color: var(--page-text);
}

/* Sections */
.section{
    padding: clamp(22px, 4vw, 48px) 0;
    background: var(--page-bg);
}

/* Prevent sticky header covering anchors */
.section, h2, h3{
    scroll-margin-top: calc(var(--headerH) + 18px);
}

/* Panel per section */
.panel{
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    padding: clamp(16px, 2.2vw, 22px);
}

.section-head{
    margin-bottom: 12px;
}

.section-head-row{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* Typography */
h2{
    margin: 0;
    font-size: 22px;
    letter-spacing: 0.02em;
    border-left: 5px solid var(--red);
    padding-left: 12px;
    color: var(--page-text);
}

h3{
    margin: 18px 0 8px;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #111;
}

p{
    margin: 0 0 10px;
}
.mt{
    margin-top: 18px;
}

.subtle{
    color: var(--page-muted);
}
.note{
    margin: 0;
    color: var(--page-muted);
    font-size: 13px;
}
.fineprint{
    margin: 10px 0 0;
    color: var(--page-muted);
    font-size: 13px;
}

/* Columns inside panel */
.cols-2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 10px;
}

.cols-3{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    margin-top: 10px;
}

/* Lists */
.bullets{
    margin: 10px 0 0;
    padding-left: 18px;
}

.checklist{
    list-style: none;
    padding-left: 0;
    margin: 10px 0 0;
}
.checklist li{
    position: relative;
    padding-left: 26px;
    margin: 8px 0;
}
.checklist li::before{
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--red);
    font-weight: 900;
}

/* Links */
a{
    color: #111;
}
a:hover{
    color: #000;
}

/* Prices */
.prices{
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    border-top: 1px solid var(--page-line);
}
.prices li{
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--page-line);
}
.prices li:last-child{
    border-bottom: 0;
}

/* Table */
.table-wrap{
    margin-top: 10px;
    border: 1px solid var(--page-line);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.schedule-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.schedule-table th,
.schedule-table td{
    padding: 12px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--page-line);
}

.schedule-table thead th{
    background: #f0f0f0;
    font-weight: 900;
}

.schedule-table .day{
    font-weight: 900;
    white-space: nowrap;
}
.th-icon{
    margin-right: 6px;
}

.schedule-table th:nth-child(1), .schedule-table td:nth-child(1){
    width: 140px;
}
.schedule-table th:nth-child(2), .schedule-table td:nth-child(2){
    width: 220px;
}

/* Responsive table: stacked rows */
@media (max-width: 720px){
    .table-wrap{
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .schedule-table,
    .schedule-table thead,
    .schedule-table tbody,
    .schedule-table th,
    .schedule-table td,
    .schedule-table tr{
        display: block;
        width: 100%;
    }

    .schedule-table thead{
        position: absolute;
        left: -9999px;
        top: -9999px;
    }

    .schedule-table tr{
        border: 1px solid var(--page-line);
        border-radius: 6px;
        margin-bottom: 10px;
        overflow: hidden;
        background: #ffffff;
    }

    .schedule-table td{
        border: 0;
        border-top: 1px solid var(--page-line);
        padding: 10px 12px;
    }

    .schedule-table td:first-child{
        border-top: 0;
        background: #f6f6f6;
    }

    .schedule-table td::before{
        content: attr(data-label);
        display: block;
        color: var(--page-muted);
        font-weight: 850;
        margin-bottom: 4px;
    }
}

/* Back to top (inline, legacy) */
.backtop{
    margin: 18px 0 0;
}
.backtop a{
    display: inline-block;
    border: 1px solid var(--page-line);
    border-radius: 999px;
    padding: 9px 12px;
    text-decoration: none;
    color: #111;
}
.backtop a:hover{
    border-color: #cfcfcf;
}

/* Floating back to top (appears after scrolling) */
.backtop-float{
    position: fixed;
    left: 1.5rem;
    bottom: 1.5rem;
    z-index: 90; /* below WhatsApp (100), above content */

    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1;

    background: rgba(0, 0, 0, 0.75);
    color: #fff;

    border: none;
    border-radius: 999px;
    cursor: pointer;

    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background 0.15s ease;
}

/* SVG icon: circle + filled triangle chevron */
.backtop-icon{
    width: 1.15em;
    height: 1.15em;
    display: block;
    flex: 0 0 auto;
}

.backtop-icon .backtop-circle{
    fill: rgba(255,255,255,0.22);
}

.backtop-icon .backtop-chevron{
    fill: currentColor;
}

.backtop-float.is-visible{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.backtop-float:hover{
    background: rgba(0, 0, 0, 0.9);
}

.backtop-float:focus-visible{
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Footer */
.site-footer{
    padding: 18px 0;
    border-top: 1px solid var(--page-line);
    background: var(--page-bg);
}
.footer-inner{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--page-muted);
}

/* WhatsApp floating (normal circular, no distortion) */
.whatsapp-float{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #25D366;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(0,0,0,0.25);
    z-index: 100;
}
.whatsapp-float img{
    display: block;
}
.whatsapp-float:hover{
    filter: brightness(1.05);
}

/* Responsive */
@media (max-width: 980px){
    .cols-3{
        grid-template-columns: 1fr;
    }
    .cols-2{
        grid-template-columns: 1fr;
    }
    .hero-facts{
        grid-template-columns: 1fr;
    }
    .brand-tag{
        display: none;
    }
}

/* News ticker */
.news-ticker{
    position: sticky;
    top: var(--headerH);
    z-index: 45;
    background: var(--panel);
    color: var(--page-text);
    border-bottom: 1px solid var(--panel-line);
    overflow: hidden;
}

/* Default (no scroll): show all items nicely if they fit */
.news-track{
    display: flex;
    gap: 48px;
    padding: 10px 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* Only scroll when needed (JS adds .is-scrolling on .news-ticker) */
.news-ticker.is-scrolling .news-track{
    width: max-content;
    justify-content: flex-start;
    flex-wrap: nowrap;
    animation: news-scroll 45s linear infinite;
}

.news-item{
    white-space: nowrap;
    font-weight: 650;
    letter-spacing: normal;
    color: var(--page-text);
}

/* Don’t show separator after the last visible item */
.news-track .news-item:last-child::after{
    content: "";
    margin: 0;
}

/* Pause on hover (desktop) */
.news-ticker:hover .news-track{
    animation-play-state: paused;
}

@keyframes news-scroll{
    from{
        transform: translateX(0);
    }
    to{
        transform: translateX(-50%);
    }
}

/* Forms */
.rc-form{
    margin-top: 12px;
}

.form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-top: 12px;
}

.field{
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field.full{
    grid-column: 1 / -1;
}

.field label,
.field legend{
    font-weight: 850;
    letter-spacing: 0.02em;
    color: #111;
    font-size: 13px;
    text-transform: none;
}

.fieldset{
    border: 1px solid var(--page-line);
    border-radius: 6px;
    padding: 12px 12px 10px;
    background: #ffffff;
}

.fieldset legend{
    padding: 0 6px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field input[type="tel"]{
    width: 100%;
    padding: 11px 12px;
    border-radius: 6px;
    border: 1px solid var(--page-line);
    background: #ffffff;
    color: #111;
    font: inherit;
}

.field input::placeholder{
    color: rgba(17,17,17,0.45);
}

.field input:focus{
    outline: none;
    border-color: rgba(208,19,31,0.65);
    box-shadow: 0 0 0 3px rgba(208,19,31,0.12);
}

.choice-row{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 4px;
}

.choice{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--page-line);
    border-radius: 999px;
    background: #f7f7f7;
    cursor: pointer;
    user-select: none;
}

.choice input{
    accent-color: var(--red);
}

.tick{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px;
    border: 1px solid var(--page-line);
    border-radius: 6px;
    background: #ffffff;
}

.tick input{
    margin-top: 2px;
    accent-color: var(--red);
}

.form-actions{
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.form-actions .fineprint{
    margin: 0;
}

/* Responsive form */
@media (max-width: 980px){
    .form-grid{
        grid-template-columns: 1fr;
    }
    .field.full{
        grid-column: auto;
    }
}

/* Required field marker */
.req{
    color: var(--red);
    margin-left: 6px;
    font-weight: 800;
}

/* Medio preferente: no pill background/border around the text */
.choice-row.no-fill .choice{
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}
.choice-row.no-fill .choice:hover{
    background: transparent;
}

/* Align radio input and text vertically */
label > input[type="radio"]{
    vertical-align: middle;
}

/* If label contains text nodes, force flex alignment (modern browsers) */
label:has(> input[type="radio"]){
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================
   Page transitions (CSS-only)
   ========================= */

main{
    transition: opacity 180ms ease, transform 180ms ease;
    opacity: 1;
    transform: none;
}

main.is-loading{
    opacity: 0;
    transform: translateY(6px);
}

@media (prefers-reduced-motion: reduce){
    main{
        transition: none;
    }
}
.address-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: inherit;
    text-decoration: none;
}

.address-link:hover {
    text-decoration: none;
}

.maps-icon {
    flex-shrink: 0;
}