/* ============================================================
   EL PAMPERO — Design System
   Dark editorial theme for a nautical media site
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
    /* Colors */
    --c-bg:          #060d1a;
    --c-bg-2:        #0a1628;
    --c-surface:     #0f1e32;
    --c-surface-2:   #162540;
    --c-border:      #1a2d45;
    --c-border-2:    #233a56;

    --c-accent:      #0ea5e9;
    --c-accent-dim:  #0284c7;
    --c-accent-glow: rgba(14, 165, 233, 0.25);
    --c-accent-2:    #38bdf8;

    --c-gold:        #f0a500;
    --c-gold-dim:    rgba(240, 165, 0, 0.15);

    --c-text:        #e2eaf2;
    --c-text-muted:  #6b8fa8;
    --c-text-faint:  #3a5570;

    /* Typography */
    --font-display:  'Bebas Neue', sans-serif;
    --font-serif:    'DM Serif Display', serif;
    --font-sans:     'Inter', sans-serif;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;

    /* Layout */
    --container: 1200px;
    --nav-h:     72px;

    /* Motion */
    --ease:      cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out:  cubic-bezier(0, 0, 0.2, 1);
    --dur-fast:  150ms;
    --dur-base:  300ms;
    --dur-slow:  500ms;

    /* Radius */
    --r-sm:  4px;
    --r-md:  8px;
    --r-lg:  16px;
    --r-xl:  24px;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 100vh;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Layout ----------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-xl);
}

@media (max-width: 768px) {
    .container { padding-inline: var(--space-md); }
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    color: var(--c-text);
}

.display {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
}

.serif { font-family: var(--font-serif); }

/* --- Navigation ------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background var(--dur-base) var(--ease),
                border-color var(--dur-base) var(--ease),
                backdrop-filter var(--dur-base) var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(6, 13, 26, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--c-border);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: var(--c-text);
    line-height: 1;
    transition: color var(--dur-base) var(--ease);
}

.nav__logo:hover .nav__logo-text { color: var(--c-accent); }

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text-muted);
    transition: color var(--dur-fast) var(--ease);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--c-accent);
    transition: width var(--dur-base) var(--ease-out);
}

.nav__link:hover { color: var(--c-text); }
.nav__link:hover::after { width: 100%; }

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--c-border-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
}

.lang-switcher__globe {
    width: 14px;
    height: 14px;
    margin: 0 1px 0 5px;
    color: var(--c-text-faint);
    flex-shrink: 0;
}

.lang-switcher__opt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--c-text-muted);
    transition: color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease);
}

.lang-switcher__opt.is-active {
    background: var(--c-accent);
    color: var(--c-bg);
}

a.lang-switcher__opt:hover {
    color: var(--c-text);
    background: var(--c-surface-2);
}

.lang-switcher__opt.is-disabled {
    color: var(--c-text-faint);
    cursor: default;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

.nav__hamburger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--c-text);
    transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav__hamburger { display: flex; }

    .nav__links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 13, 26, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-2xl);
        transform: translateX(100%);
        transition: transform var(--dur-slow) var(--ease);
    }

    .nav__links.open { transform: translateX(0); }

    .nav__link {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }
}

/* --- Hero ------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--nav-h);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(14, 165, 233, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(14, 165, 233, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 50%, var(--c-bg) 100%);
    animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0.7; transform: scale(1.05); }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp var(--dur-slow) var(--ease-out) 0.2s forwards;
}

.hero__eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--c-accent);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 9rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--c-text);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp var(--dur-slow) var(--ease-out) 0.4s forwards;
}

.hero__title em {
    font-style: normal;
    color: var(--c-accent);
    text-shadow: 0 0 60px var(--c-accent-glow);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--c-text-muted);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp var(--dur-slow) var(--ease-out) 0.6s forwards;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp var(--dur-slow) var(--ease-out) 0.8s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--c-text-faint);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s ease-in-out infinite;
}

.hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--c-text-faint), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- Buttons ---------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    border-radius: var(--r-sm);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--dur-base) var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background: var(--c-accent);
    color: var(--c-bg);
    border: 1px solid var(--c-accent);
}

.btn--primary:hover {
    background: var(--c-accent-2);
    border-color: var(--c-accent-2);
    box-shadow: 0 0 30px var(--c-accent-glow);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border-2);
}

.btn--ghost:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-1px);
}

/* --- Section ---------------------------------------------- */
.section {
    padding-block: var(--space-3xl);
}

.section__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.section__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--space-sm);
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.95;
}

/* --- Cards ------------------------------------------------ */
.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color var(--dur-base) var(--ease),
                transform var(--dur-base) var(--ease),
                box-shadow var(--dur-base) var(--ease);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--c-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(14, 165, 233, 0.1);
}

.card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--c-surface-2);
    position: relative;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}

.card:hover .card__image img { transform: scale(1.04); }

.card__image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--c-surface-2) 0%, var(--c-bg-2) 100%);
}

.card__image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--c-border-2);
}

.card__body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.card__category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--c-text);
    transition: color var(--dur-fast) var(--ease);
    flex: 1;
}

.card:hover .card__title { color: var(--c-accent-2); }

.card__intro {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px solid var(--c-border);
}

.card__date {
    font-size: 0.75rem;
    color: var(--c-text-faint);
}

/* --- Featured card (large) -------------------------------- */
.card--featured {
    grid-column: span 2;
    flex-direction: row;
}

.card--featured .card__image {
    aspect-ratio: unset;
    flex: 0 0 45%;
}

.card--featured .card__body {
    padding: var(--space-xl);
}

.card--featured .card__title {
    font-size: 1.5rem;
}

@media (max-width: 900px) {
    .card--featured {
        grid-column: span 1;
        flex-direction: column;
    }
    .card--featured .card__image { aspect-ratio: 16 / 9; flex: unset; }
}

/* --- Grid ------------------------------------------------- */
.grid {
    display: grid;
    gap: var(--space-lg);
}

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

@media (max-width: 1024px) {
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .grid--2,
    .grid--3 { grid-template-columns: 1fr; }
}

/* --- Divider ---------------------------------------------- */
.divider {
    border: none;
    border-top: 1px solid var(--c-border);
    margin-block: var(--space-3xl);
}

/* --- Badge ------------------------------------------------ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-sm);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge--accent {
    background: var(--c-accent);
    color: #fff;
    border: 1px solid var(--c-accent);
}

.badge--gold {
    background: var(--c-gold-dim);
    color: var(--c-gold);
    border: 1px solid rgba(240, 165, 0, 0.2);
}

/* --- Efemérides list -------------------------------------- */
.efemerides-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.efemerides-list__item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-block: var(--space-md);
    border-bottom: 1px solid var(--c-border);
}

.efemerides-list__item:first-child {
    border-top: 1px solid var(--c-border);
}

.efemerides-list__thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--c-surface);
}

.efemerides-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--dur-base) var(--ease);
}

.efemerides-list__item:hover .efemerides-list__thumb img {
    transform: scale(1.05);
}

.efemerides-list__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--c-surface-2);
}

.efemerides-list__date {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
    white-space: nowrap;
    min-width: 4.5rem;
}

.efemerides-list__title {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    transition: color var(--dur-fast) var(--ease);
    line-height: 1.4;
}

.efemerides-list__title:hover {
    color: var(--c-text);
}

/* --- Highlight bar ---------------------------------------- */
.highlight-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-block: var(--space-3xl);
}

.highlight-bar__item {
    flex: 1;
    padding: var(--space-xl);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: background var(--dur-base) var(--ease);
}

.highlight-bar__item:last-child { border-right: none; }
.highlight-bar__item:hover { background: var(--c-surface-2); }

.highlight-bar__num {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1;
    color: var(--c-accent);
    letter-spacing: 0.02em;
}

.highlight-bar__label {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .highlight-bar { flex-direction: column; }
    .highlight-bar__item { border-right: none; border-bottom: 1px solid var(--c-border); }
    .highlight-bar__item:last-child { border-bottom: none; }
}

/* --- Footer ----------------------------------------------- */
.footer {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-xl);
    border-top: 1px solid var(--c-border);
    background: var(--c-bg-2);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--c-border);
    margin-bottom: var(--space-xl);
}

.footer__logo {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.04em;
    color: var(--c-text);
}

.footer__tagline {
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    color: var(--c-text-muted);
    letter-spacing: 0.08em;
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.footer__link {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    letter-spacing: 0.04em;
    transition: color var(--dur-fast) var(--ease);
}

.footer__link:hover { color: var(--c-accent); }

.footer__social { display: flex; align-items: center; gap: var(--space-md); }

.footer__social-link {
    color: var(--c-text-muted);
    transition: color var(--dur-fast) var(--ease);
    display: flex;
    align-items: center;
}

.footer__social-link:hover { color: var(--c-accent); }

.footer__bottom {
    font-size: 0.75rem;
    color: var(--c-text-faint);
}

@media (max-width: 768px) {
    .footer__inner { flex-direction: column; }
    .footer__nav { flex-direction: column; gap: var(--space-md); }
}

/* --- Scroll Reveal ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity var(--dur-slow) var(--ease-out),
                transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Users who ask for less motion shouldn't have content hidden behind a
   scroll-reveal animation that may never fire — show it outright. */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Utility ---------------------------------------------- */
.text-accent  { color: var(--c-accent); }
.text-muted   { color: var(--c-text-muted); }
.text-center  { text-align: center; }
.mt-auto      { margin-top: auto; }

/* --- Keyframes -------------------------------------------- */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* --- Featured Article ------------------------------------- */
.featured {
    position: relative;
    height: 80vh;
    min-height: 520px;
    max-height: 800px;
    overflow: hidden;
}

.featured__link {
    display: block;
    height: 100%;
    position: relative;
}

.featured__image {
    position: absolute;
    inset: 0;
    background: var(--c-bg-2);
}

.featured__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.featured:hover .featured__image img {
    transform: scale(1.02);
}

.featured__image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--c-bg-2) 0%, var(--c-surface) 100%);
}

.featured__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 13, 26, 0.97) 0%,
        rgba(6, 13, 26, 0.65) 40%,
        rgba(6, 13, 26, 0.15) 100%
    );
}

.featured__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.featured__content {
    max-width: 760px;
    padding-bottom: var(--space-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.featured__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--c-text);
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    transition: color var(--dur-base) var(--ease);
}

.featured:hover .featured__title {
    color: var(--c-accent-2);
}

.featured__intro {
    font-size: 1.125rem;
    color: rgba(226, 234, 242, 0.85);
    line-height: 1.6;
    max-width: 560px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.featured__meta {
    font-size: 0.8rem;
    color: var(--c-text-muted);
    letter-spacing: 0.06em;
}

@media (max-width: 768px) {
    .featured {
        height: 70vh;
        min-height: 420px;
    }
    .featured__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .featured__intro { display: none; }
    .featured__content { padding-bottom: var(--space-2xl); }
}

/* --- Page Hero (index pages) ------------------------------ */
.page-hero {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--c-border);
    margin-bottom: var(--space-3xl);
}

.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.9;
    margin-top: var(--space-sm);
}

.page-hero__intro {
    margin-top: var(--space-lg);
    font-size: 1.125rem;
    color: var(--c-text-muted);
    max-width: 600px;
}

/* --- Article Page ----------------------------------------- */
.article-header {
    position: relative;
    margin-bottom: var(--space-3xl);
}

.article-header__image {
    position: relative;
    height: 60vh;
    min-height: 380px;
    max-height: 600px;
    overflow: hidden;
}

.article-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-header__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 13, 26, 1) 0%,
        rgba(6, 13, 26, 0.5) 50%,
        rgba(6, 13, 26, 0.1) 100%
    );
}

.article-header__content {
    position: relative;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: calc(-1 * var(--space-3xl));
}

.article-header__content--no-image {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
}

.article-header__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 0.95;
    max-width: 900px;
}

.article-header__intro {
    font-size: 1.25rem;
    color: var(--c-text-muted);
    line-height: 1.6;
    max-width: 680px;
    font-style: italic;
}

.article-header__meta {
    font-size: 0.8rem;
    color: var(--c-text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 0.9rem;
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border-2);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease);
}

.share-btn:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    transform: translateY(-1px);
}

.share-btn__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.share-btn.is-copied {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

/* --- Share modal ----------------------------------------- */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.share-modal.is-open { display: flex; }

.share-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 13, 26, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    animation: shareFade var(--dur-base) var(--ease);
}

.share-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: var(--c-surface);
    border: 1px solid var(--c-border-2);
    border-radius: var(--r-lg);
    padding: var(--space-xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: shareRise var(--dur-base) var(--ease);
}

@keyframes shareFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shareRise {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.share-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--c-border);
}

.share-modal__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-text);
}

.share-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.share-modal__close svg { width: 18px; height: 18px; }

.share-modal__close:hover {
    color: var(--c-accent);
    border-color: var(--c-border-2);
}

.share-modal__options {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-xs);
}

.share-modal__options::-webkit-scrollbar { display: none; }

.share-option {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 84px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--c-text-muted);
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease);
}

.share-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    transition: border-color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease),
                color var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease);
}

.share-option__icon svg { width: 24px; height: 24px; }

.share-option:hover { color: var(--c-text); }

.share-option:hover .share-option__icon {
    border-color: var(--c-accent);
    background: var(--c-surface-2);
    color: var(--c-accent);
    transform: translateY(-2px);
}

.share-option__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

.share-modal__url {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md);
    background: var(--c-bg-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: border-color var(--dur-fast) var(--ease);
}

.share-modal__url:focus-within { border-color: var(--c-accent); }

.share-modal__url-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-faint);
    flex-shrink: 0;
}

.share-modal__url-icon svg { width: 16px; height: 16px; }

.share-modal__url-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--c-text-muted);
    font-family: inherit;
    font-size: 0.8125rem;
    padding: var(--space-sm) 0;
    outline: none;
    text-overflow: ellipsis;
}

.share-modal__copy {
    flex-shrink: 0;
    padding: 0.5rem 1.1rem;
    background: transparent;
    color: var(--c-accent);
    border: 1px solid var(--c-accent);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.share-modal__copy:hover {
    background: var(--c-accent);
    color: var(--c-bg);
}

.share-modal__copy.is-copied {
    background: var(--c-accent);
    color: var(--c-bg);
    border-color: var(--c-accent);
}

@media (max-width: 480px) {
    .share-modal__dialog {
        padding: var(--space-lg);
    }

    .share-option {
        width: 68px;
    }

    .share-option__icon {
        width: 48px;
        height: 48px;
    }

    .share-option__icon svg { width: 22px; height: 22px; }

    .share-option__label { font-size: 0.625rem; }

    .share-modal__options { gap: var(--space-sm); }
}

/* --- Inline share (end of article) ----------------------- */
.share-inline {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--c-border);
    flex-wrap: wrap;
}

.share-inline__label {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-text-muted);
}

.share-inline__icons {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.share-inline__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--c-border-2);
    border-radius: var(--r-sm);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease),
                border-color var(--dur-fast) var(--ease),
                background var(--dur-fast) var(--ease),
                transform var(--dur-fast) var(--ease);
}

.share-inline__btn svg { width: 18px; height: 18px; }

.share-inline__btn:hover {
    color: var(--c-accent);
    border-color: var(--c-accent);
    background: var(--c-surface-2);
    transform: translateY(-1px);
}

.share-inline__btn.is-copied {
    color: var(--c-accent);
    border-color: var(--c-accent);
}

/* --- Instagram CTA (end of article) ----------------------- */
.ig-cta {
    --ig-grad: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    padding: clamp(var(--space-lg), 4vw, var(--space-2xl));
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: border-color var(--dur-base) var(--ease),
                box-shadow var(--dur-base) var(--ease),
                transform var(--dur-base) var(--ease);
}

/* The whole card is the link: hovering anywhere lifts it and emphasises the button */
.ig-cta:hover {
    border-color: var(--c-border-2);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

/* Soft Instagram-gradient glow in the corner */
.ig-cta::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -8%;
    width: 320px;
    height: 320px;
    background: var(--ig-grad);
    opacity: 0.12;
    filter: blur(60px);
    pointer-events: none;
}

.ig-cta__icon {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: clamp(56px, 12vw, 76px);
    height: clamp(56px, 12vw, 76px);
    border-radius: var(--r-lg);
    background: var(--ig-grad);
    color: #fff;
    box-shadow: 0 8px 30px rgba(214, 41, 118, 0.35);
}

.ig-cta__icon svg { width: 52%; height: 52%; }

.ig-cta__content {
    position: relative;
    flex: 1;
    min-width: 0;
}

.ig-cta__title {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.15;
    color: var(--c-text);
    margin-bottom: var(--space-xs);
}

.ig-cta__text {
    margin: 0;
    max-width: 48ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text-muted);
}

.ig-cta__btn {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.5rem;
    border-radius: var(--r-md);
    background: var(--ig-grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: box-shadow var(--dur-base) var(--ease),
                filter var(--dur-base) var(--ease);
}

.ig-cta__btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.ig-cta:hover .ig-cta__btn {
    filter: saturate(1.15);
    box-shadow: 0 10px 34px rgba(214, 41, 118, 0.4);
}

@media (max-width: 768px) {
    .ig-cta {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    .ig-cta__text { max-width: none; }
    .ig-cta__btn { width: 100%; justify-content: center; }
}

.interview-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.interview-meta__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-gold);
}

.interview-meta__role {
    font-size: 0.875rem;
    color: var(--c-text-muted);
}

.back-link {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-text-faint);
    transition: color var(--dur-fast) var(--ease);
}

.back-link:hover { color: var(--c-accent); }

/* --- Prose (article body) --------------------------------- */
.prose {
    max-width: 720px;
    margin-inline: auto;
    padding-block: var(--space-2xl);
    font-size: 1.125rem;
    line-height: 1.85;
    color: rgba(226, 234, 242, 0.88);
}

.prose p { margin-bottom: var(--space-lg); }

.prose h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--c-text);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--c-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
}

.prose blockquote {
    border-left: 3px solid var(--c-accent);
    padding-left: var(--space-xl);
    margin-block: var(--space-xl);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--c-text-muted);
    font-family: var(--font-serif);
}

.prose img {
    width: 100%;
    border-radius: var(--r-md);
    margin-block: var(--space-xl);
}

.prose a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover { color: var(--c-accent-2); }

.prose strong { color: var(--c-text); font-weight: 700; }

/* --- Card extras ------------------------------------------ */
.card--interview .card__image { aspect-ratio: 16 / 9; }

.card__interviewee {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-gold);
}

.card__role {
    font-weight: 400;
    color: var(--c-text-muted);
}

/* --- Search ----------------------------------------------- */
.search-form {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    max-width: 640px;
}

.search-form__input {
    flex: 1;
    min-width: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    color: var(--c-text);
    font-family: var(--font-sans);
    transition: border-color var(--dur-base) var(--ease);
    outline: none;
}

.search-form__input::placeholder { color: var(--c-text-faint); }
.search-form__input:focus { border-color: var(--c-accent); }

.search-results__count {
    margin-bottom: var(--space-xl);
    font-size: 0.875rem;
}

.search-results__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--c-border);
}

.search-result {
    border-bottom: 1px solid var(--c-border);
}

.search-result__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    transition: color var(--dur-fast) var(--ease);
    color: var(--c-text-muted);
}

.search-result__link:hover { color: var(--c-accent); }

.search-result__title {
    font-size: 1.125rem;
    font-weight: 600;
}

.search-result__arrow {
    font-size: 1.25rem;
    transition: transform var(--dur-base) var(--ease);
}

.search-result__link:hover .search-result__arrow {
    transform: translateX(6px);
}

/* --- Clima (página dedicada) ----------------------------- */
.clima-page {
    padding-block: var(--space-3xl);
}

.clima-page__lead {
    color: var(--c-text-muted);
    margin-top: var(--space-md);
    max-width: 60ch;
}

.clima-page__lead a {
    color: var(--c-accent);
    transition: color var(--dur-fast) var(--ease);
}

.clima-page__lead a:hover { color: var(--c-accent-2); }

.clima-page__map {
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-surface);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.clima-page__map iframe {
    display: block;
    width: 100%;
    border: 0;
    height: 70vh;
    min-height: 480px;
    max-height: 800px;
}

/* --- Clima (bloque compacto reutilizable) ---------------- */
.clima-block {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.clima-block__header {
    padding: var(--space-lg) var(--space-xl) var(--space-md);
    border-bottom: 1px solid var(--c-border);
}

.clima-block__label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: var(--space-xs);
}

.clima-block__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.clima-block__media {
    overflow: hidden;
    min-width: 0;
}

.clima-block__media iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    height: 320px;
}

.clima-block__fallback {
    padding: var(--space-lg) var(--space-xl);
    color: var(--c-text-muted);
}

.clima-block__fallback a { color: var(--c-accent); }

.clima-block__cta {
    margin: var(--space-lg) var(--space-xl);
    align-self: flex-start;
}

@media (max-width: 768px) {
    .clima-block__header { padding: var(--space-md) var(--space-lg) var(--space-sm); }
    .clima-block__cta { margin: var(--space-md) var(--space-lg); }
    .clima-block__media iframe { height: 180px; }
    .clima-page__map iframe { height: 60vh; min-height: 380px; }
}

/* --- Image carousel --------------------------------------- */
.carousel {
    position: relative;
    margin-block: var(--space-2xl);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
}

.carousel__viewport {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel__viewport::-webkit-scrollbar { display: none; }

.carousel__slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
}

.carousel__img {
    width: 100%;
    height: clamp(280px, 56vh, 620px);
    object-fit: contain;
    background: var(--c-bg);
}

.carousel__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    /* El padding-bottom reserva el espacio de los puntos para que no tapen el texto. */
    padding: var(--space-2xl) var(--space-lg) calc(var(--space-lg) + 1.5rem);
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--c-text);
    text-align: center;
    background: linear-gradient(to top, rgba(6, 13, 26, 0.92), rgba(6, 13, 26, 0.55) 60%, transparent);
    pointer-events: none;
}

/* Navegación */
.carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-border-2);
    border-radius: 50%;
    background: rgba(6, 13, 26, 0.7);
    color: var(--c-text);
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.carousel__nav:hover { background: var(--c-accent); border-color: var(--c-accent); }
.carousel__nav:disabled { opacity: 0.35; cursor: default; }
.carousel__nav svg { width: 22px; height: 22px; }
.carousel__nav--prev { left: var(--space-md); }
.carousel__nav--next { right: var(--space-md); }

/* Puntos */
.carousel__dots {
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(6, 13, 26, 0.6);
    backdrop-filter: blur(6px);
}

.carousel__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--c-text-faint);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.carousel__dot.is-active { background: var(--c-accent); transform: scale(1.3); }

@media (max-width: 768px) {
    .carousel__nav { width: 36px; height: 36px; }
    .carousel__nav svg { width: 18px; height: 18px; }
    .carousel__img { height: clamp(220px, 50vh, 420px); }
}

/* --- Veleros en venta ------------------------------------- */
/* Lives inside .prose, so several rules below exist only to undo the
   prose defaults (link colour, paragraph margins, image margins). */
.boats-sale {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-block: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--c-border-2);
    font-size: 1rem;
    line-height: 1.5;
}

.boats-sale p { margin-bottom: 0; }

.boats-sale__head { display: flex; flex-direction: column; gap: var(--space-xs); }

.boats-sale__label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text-muted);
}

.boats-sale__kicker {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--c-text);
}

.boats-sale__note { color: var(--c-text-muted); max-width: 60ch; }

.boats-sale__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.boats-sale__items--2 { grid-template-columns: repeat(2, 1fr); }
.boats-sale__items--1 { grid-template-columns: 1fr; }

/* The element is in the selector so it beats `.prose a` */
a.boats-sale__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    color: inherit;
    text-decoration: none;
}

.boats-sale__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: var(--c-bg-2);
}

.boats-sale__items--2 .boats-sale__media { aspect-ratio: 16 / 10; }
.boats-sale__items--1 .boats-sale__media { aspect-ratio: 2 / 1; }

.boats-sale__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform var(--dur-slow) var(--ease);
}

.boats-sale__item:hover .boats-sale__media img { transform: scale(1.04); }

.boats-sale__name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--c-text);
}

.boats-sale__detail { font-size: 0.9rem; color: var(--c-text-muted); }

.boats-sale__line {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
}

.boats-sale__price {
    font-weight: 600;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
}

.boats-sale__link {
    font-size: 0.92rem;
    color: var(--c-accent-2);
    text-decoration: underline;
    text-decoration-color: rgba(56, 189, 248, 0.4);
    text-underline-offset: 3px;
}

.boats-sale__item:hover .boats-sale__link,
.boats-sale__item:focus-visible .boats-sale__link { text-decoration-color: currentColor; }

.boats-sale__item:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 4px;
    border-radius: var(--r-sm);
}

.boats-sale__foot { font-size: 0.82rem; color: var(--c-text-faint); }

.boats-sale__items--1 .boats-sale__name { font-size: 1.6rem; }
.boats-sale__items--1 .boats-sale__detail { font-size: 0.98rem; }
.boats-sale__items--1 .boats-sale__price { font-size: 1.15rem; }

@media (max-width: 700px) {
    .boats-sale__items,
    .boats-sale__items--2 { grid-template-columns: 1fr; }
    .boats-sale__media,
    .boats-sale__items--2 .boats-sale__media { aspect-ratio: 16 / 10; }
    .boats-sale__items--1 .boats-sale__media { aspect-ratio: 16 / 9; }
    .boats-sale__items--1 .boats-sale__name { font-size: 1.35rem; }
}

/* --- PDF adjunto ------------------------------------------ */
/* A box, unlike .boats-sale: an attachment is an object hanging off the
   article, not article content. Also inside .prose, so a few rules undo the
   prose defaults (link colour, image margins, paragraph spacing). */
a.pdf-doc {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-block: var(--space-2xl);
    padding: var(--space-lg);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color var(--dur-base) var(--ease),
                box-shadow var(--dur-base) var(--ease);
}

a.pdf-doc:hover,
a.pdf-doc:focus-visible {
    border-color: var(--c-accent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    outline: none;
}

.pdf-doc--no-cover { grid-template-columns: 56px 1fr; }

.pdf-doc__cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--r-sm);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.pdf-doc__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    margin: 0;
    border-radius: 0;
}

.pdf-doc__icon { display: block; color: #e2564a; }
.pdf-doc__icon svg { width: 100%; height: auto; }

.pdf-doc__body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-xs); }

.pdf-doc__label {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--c-text-faint);
}

.pdf-doc__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.18;
    color: var(--c-text);
}

.pdf-doc__desc { font-size: 0.92rem; color: var(--c-text-muted); }

.pdf-doc__meta {
    font-size: 0.85rem;
    color: var(--c-text-faint);
    font-variant-numeric: tabular-nums;
}

.pdf-doc__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-accent-2);
}

.pdf-doc__cta svg { width: 17px; height: 17px; transition: transform var(--dur-base) var(--ease); }
a.pdf-doc:hover .pdf-doc__cta svg { transform: translateY(2px); }

@media (max-width: 620px) {
    a.pdf-doc { grid-template-columns: 92px 1fr; gap: var(--space-md); padding: var(--space-md); }
    .pdf-doc--no-cover { grid-template-columns: 48px 1fr; }
    .pdf-doc__title { font-size: 1.15rem; }
}
