/* ==========================================================================
   Roxbury Car Service — estilos
   Paleta tomada de la tarjeta de presentación: negro, dorado y gris.
   ========================================================================== */

:root {
    --black: #0c0c0d;
    --ink: #141416;
    --ink-2: #1d1d20;
    --line-dark: #2c2c30;
    --cream: #f6f3ec;
    --paper: #ffffff;
    --line-light: #e4ded0;
    --text: #f2efe8;
    --text-muted: #b3ada1;
    --text-dark: #1a1a1c;
    --text-dark-muted: #5d5a54;
    --gold: #c9a14a;
    --gold-light: #e3c57f;
    --gold-dark: #8a6a24;
    --whatsapp: #25d366;

    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 18px 40px -20px rgb(0 0 0 / .35);
    --container: 1180px;
    --header-h: 88px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    background: var(--black);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 100;
    background: var(--gold); color: var(--black); padding: .5rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.eyebrow {
    font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .9rem;
}

/* Botones ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    padding: .75rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent;
    font: 700 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); }
.btn--ghost { border-color: rgb(255 255 255 / .45); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn--whatsapp { background: transparent; border-color: var(--whatsapp); color: var(--whatsapp); }
.btn--whatsapp:hover { background: var(--whatsapp); color: var(--black); }

/* Barra superior ---------------------------------------------------------- */
.topbar { background: var(--black); border-bottom: 1px solid var(--line-dark); font-size: .82rem; color: var(--text-muted); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__info { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.topbar__info li { display: flex; align-items: center; gap: .45rem; }
.topbar__info svg { color: var(--gold); }
.topbar__info a { text-decoration: none; }
.topbar__info a:hover { color: var(--gold-light); }

.lang { display: flex; border: 1px solid var(--line-dark); border-radius: 999px; overflow: hidden; }
.lang button {
    background: none; border: 0; color: var(--text-muted); font: 700 .75rem var(--font-body);
    letter-spacing: .08em; padding: .3rem .7rem; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--black); }

/* Encabezado -------------------------------------------------------------- */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(12 12 13 / .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-dark);
}
.header__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); }

.logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; line-height: 1; }
.logo__mark { width: 60px; height: 60px; }
.logo__text { display: flex; flex-direction: column; }
.logo__name { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 2.4rem; color: var(--text); }
.logo__tag { font-size: .74rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: .4rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; margin-left: auto; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text-muted); transition: color .2s; }
.nav a:not(.btn):hover { color: var(--gold-light); }

.header__phone { display: none; }

.nav-toggle { display: none; }

/* Portada ----------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 760px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(90deg, rgb(12 12 13 / .95) 0%, rgb(12 12 13 / .78) 45%, rgb(12 12 13 / .35) 100%),
        linear-gradient(0deg, var(--black) 0%, transparent 30%);
}
.hero__content { padding-block: 5rem 4rem; }
.hero__title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; margin-bottom: 1.4rem;
}
.hero__title em { font-style: italic; font-weight: 600; color: var(--gold-light); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-muted); max-width: 52ch; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.4rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 2.6rem; list-style: none; padding: 0; margin: 0; }
.hero__facts li { display: flex; flex-direction: column; border-left: 2px solid var(--gold); padding-left: 1rem; }
.hero__facts strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--text); }
.hero__facts span { font-size: .85rem; color: var(--text-muted); }

/* Secciones --------------------------------------------------------------- */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--light { background: var(--cream); color: var(--text-dark); }
.section--light .eyebrow { color: var(--gold-dark); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head p:last-child { color: var(--text-dark-muted); font-size: 1.05rem; }

/* Servicios */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
    background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius);
    padding: 1.8rem 1.5rem; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--black); color: var(--gold-light); margin-bottom: 1.3rem;
}
.card__icon svg { width: 24px; height: 24px; }
.card p { color: var(--text-dark-muted); font-size: .95rem; margin: 0; }

/* Nosotros */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid var(--line-dark); }
.about__text > p:not(.eyebrow) { color: var(--text-muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0c0d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 65% no-repeat;
}

/* Cruceros */
.cruises__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.cruises__text > p:not(.eyebrow) { color: var(--text-muted); font-size: 1.05rem; }
.cruises__media img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 50%; width: 100%; border: 1px solid var(--line-dark); }
.ports { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .6rem; }
.ports li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
    padding: .85rem 1.1rem; background: var(--ink-2); border: 1px solid var(--line-dark); border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
}
.ports strong { font-weight: 700; }
.ports span { font-size: .88rem; color: var(--text-muted); }

/* Flota */
.fleet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; }
.vehicle { background: var(--paper); border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; }
.vehicle img { width: 100%; object-fit: cover; }
.vehicle__photo { aspect-ratio: 16 / 9; }
.vehicle__photo--sedan { object-position: 50% 80%; }
.vehicle h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: .5rem; }
.interior { margin-top: 2.5rem; }
.interior__title { font-family: var(--font-display); font-size: 1.6rem; }
.interior__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.interior__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-light); }
.vehicle__body { padding: 1.6rem 1.6rem 1.8rem; }
.vehicle__body > p { color: var(--text-dark-muted); }
.specs { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--line-light); font-weight: 600; font-size: .92rem; }
.specs li { display: flex; align-items: center; gap: .5rem; }
.specs svg { color: var(--gold-dark); }

/* Reservas */
.reserve { background: var(--ink); }
.reserve__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.reserve__intro > p:not(.eyebrow) { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.reserve__phone {
    display: flex; align-items: center; gap: 1rem; text-decoration: none; padding: 1.1rem 0;
    border-top: 1px solid var(--line-dark); font-weight: 700; font-size: 1.05rem; word-break: break-word;
}
.reserve__phone svg { width: 22px; height: 22px; color: var(--gold); }
.reserve__phone small { display: block; font-size: .75rem; font-weight: 600; color: var(--text-muted); letter-spacing: .06em; text-transform: uppercase; }
.reserve__phone:hover { color: var(--gold-light); }

.form { background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__row--3 { grid-template-columns: 1fr 1fr .7fr; }
.field { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--text-muted); min-width: 0; }
.field input, .field select, .field textarea {
    width: 100%; background: var(--black); color: var(--text); border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
    padding: .8rem .9rem; font: 500 1rem var(--font-body); color-scheme: dark;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgb(201 161 74 / .2); }
.field input.is-invalid, .field select.is-invalid { border-color: #e06c5a; }
.hp { position: absolute; left: -9999px; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.form__status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form__status.is-ok { color: #7fd99a; }
.form__status.is-error { color: #f09a8b; }
.consent { display: flex; align-items: flex-start; gap: .75rem; font-size: .85rem; color: var(--text-muted); cursor: pointer; margin-top: .3rem; }
.consent input { width: 20px; height: 20px; margin: .1rem 0 0; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }
.consent input.is-invalid { outline: 2px solid #e06c5a; outline-offset: 2px; }
.consent a { color: var(--text); }
.consent a:hover { color: var(--gold-light); }

/* Área */
.area { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--paper); border: 1px solid var(--line-light); border-radius: 999px; padding: .45rem 1rem; font-weight: 600; font-size: .92rem; }
.airports { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.airports li { display: flex; align-items: center; gap: 1rem; background: var(--black); color: var(--text); border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 500; }
.airports strong { display: flex; font-family: var(--font-display); color: var(--gold-light); font-size: 1.2rem; min-width: 3.2rem; }
.area__sub { margin-top: 1.8rem; }

/* Franja CTA */
.cta-band { background: var(--gold); color: var(--black); padding-block: 2.6rem; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.cta-band h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-band .btn--gold { background: var(--black); color: var(--gold-light); }
.cta-band .btn--gold:hover { background: var(--ink-2); }

/* Contacto */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__lead { color: var(--text-muted); font-size: 1.05rem; max-width: 40ch; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; font-size: 1.05rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; word-break: break-word; }
.contact__list svg { color: var(--gold); width: 20px; height: 20px; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold-light); }

/* Pie */
.footer { border-top: 1px solid var(--line-dark); padding-block: 2.6rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: .9rem; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { margin: 0; font-size: .85rem; color: var(--text-muted); }
.footer__copy a { color: inherit; }
.footer__copy a:hover { color: var(--gold-light); }
.social { display: flex; gap: .6rem; }
.social a {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line-dark); color: var(--text-muted); transition: color .2s, border-color .2s;
}
.social a:hover { color: var(--gold-light); border-color: var(--gold); }
.social svg { width: 18px; height: 18px; }

/* Política de privacidad */
.legal-header__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.legal__body { max-width: 780px; }
.legal__body h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal__body h2 { font-family: var(--font-display); font-size: 1.45rem; margin-top: 2.4rem; }
.legal__body p, .legal__body li { color: var(--text-muted); }
.legal__body ul { padding-left: 1.2rem; display: grid; gap: .5rem; margin: 0 0 1rem; }
.legal__body a { color: var(--gold-light); }
.legal__body strong { color: var(--text); }
.legal__date { font-size: .9rem; }
.legal__contact { list-style: none; padding-left: 0 !important; }
.footer.footer--legal { padding-bottom: 2.6rem; }
.footer--legal a { text-decoration: none; }

/* Botones flotantes */
.floating { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: .7rem; }
.floating__btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 8px 24px rgb(0 0 0 / .4); }
.floating__btn svg { width: 26px; height: 26px; }
.floating__btn--wa { background: var(--whatsapp); color: #fff; }
.floating__btn--call { display: none; background: var(--gold); color: var(--black); }
.footer { padding-bottom: 6rem; }

/* WhatsApp se ve siempre; llamar solo en celulares y pantallas táctiles (tablets, también en horizontal) */
@media (max-width: 1000px), (pointer: coarse) {
    .floating__btn--call { display: grid; }
    .footer { padding-bottom: 10rem; }
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1080px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1000px) {
    :root { --header-h: 76px; }
    .hide-sm { display: none !important; }

    .nav-toggle {
        display: grid; gap: 5px; margin-left: auto; padding: 10px; background: none; border: 0; cursor: pointer;
    }
    .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav {
        position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
        background: var(--black); border-bottom: 1px solid var(--line-dark); padding: .5rem 16px 1.2rem;
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
    .nav__cta { margin-top: 1rem; }

    .about__grid, .reserve__grid, .contact__grid, .area { grid-template-columns: 1fr; }
    .cruises__grid, .fleet, .interior__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .legal-header__actions .btn { display: none; }
    .cards { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .form__row--3 { grid-template-columns: 1fr; }
    .footer { padding-bottom: 7rem; }
    .hero__facts { gap: 1.4rem; }
    .hero__ctas .btn { width: 100%; }
    .form__actions .btn { width: 100%; }
    .logo__name { font-size: 2rem; }
    .logo__mark { width: 50px; height: 50px; }
    .logo__tag { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
