/*
 * novedades.css — Listado y detalle de Novedades — Impala Victoria (R1)
 * Standalone: cubre novedades.php (listado) y novedad.php (detalle)
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --fuente-display: 'Cormorant Garamond', Georgia, serif;
    --fuente-ui:      'Barlow Condensed', sans-serif;
    --fuente-cuerpo:  'Barlow', sans-serif;

    --h-fondo:        #0d2535;
    --h-fondo-alt:    #0a1e2c;
    --h-fondo-claro:  #112840;
    --h-dorado:       #c9a84c;
    --h-dorado-claro: #e0bf6e;
    --h-texto:        #ffffff;
    --h-texto-suave:  rgba(255,255,255,0.75);
    --h-texto-tenue:  rgba(255,255,255,0.4);
    --h-borde:        rgba(201,168,76,0.22);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
    background: var(--h-fondo);
    color: var(--h-texto);
    font-family: var(--fuente-cuerpo);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--h-dorado); }
ul { list-style: none; }
button, input { font-family: inherit; font-size: inherit; }

/* ============================================================
   NAVEGACIÓN
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10000;
    padding: 20px 0;
    transition: background 0.3s, padding 0.3s;
}
.nav.scrolled {
    background: var(--h-nav-bg, rgba(13,37,53,0.97));
    backdrop-filter: blur(8px);
    padding: 12px 0;
    border-bottom: 1px solid var(--h-borde);
}
.nav__inner {
    max-width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.nav__logo img { height: 78px; width: auto; }
.nav__logo-texto { display: flex; flex-direction: column; line-height: 1.2; }
.nav__logo-nombre {
    font-family: var(--fuente-display);
    font-size: 2.08rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    letter-spacing: 0.02em;
}
.nav__logo-subtitulo {
    font-family: var(--fuente-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--h-dorado);
}
.nav__menu {
    display: flex;
    gap: 36px;
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    justify-content: center;
    align-items: center;
}
.nav__menu a {
    font-family: var(--fuente-cuerpo);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s;
}
.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--h-dorado);
    transition: width 0.3s;
}
.nav__menu a:hover,
.nav__menu a.activo { color: #fff; }
.nav__menu a:hover::after,
.nav__menu a.activo::after { width: 100%; }
.nav__hamburguesa {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: fixed;
    top: 24px;
    right: 20px;
    z-index: 10001;
}
.nav__hamburguesa span {
    display: block;
    width: 24px; height: 1.5px;
    background: #fff;
    transition: all 0.2s;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.contenedor {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================================
   BANNER — foto + breadcrumb (listado)
   ============================================================ */
.imagen-separadora {
    position: relative;
    height: 340px;
    overflow: hidden;
    margin-top: 118px;
}
.imagen-separadora img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}
.imagen-separadora__breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1280px;
    padding: 0 40px;
}
.imagen-separadora__breadcrumb span,
.imagen-separadora__breadcrumb a {
    font-family: var(--fuente-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--h-texto-suave);
}
.imagen-separadora__breadcrumb a:hover { color: var(--h-dorado); }
.imagen-separadora__breadcrumb .separador { margin: 0 0.5rem; color: var(--h-dorado); }

/* ============================================================
   HERO DE DETALLE — foto con breadcrumb sobre la imagen
   ============================================================ */
.nov-hero {
    position: relative;
    margin-top: 118px;
    overflow: hidden;
}
.nov-hero__media img,
.nov-hero__media video {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    filter: brightness(0.55);
}
.nov-hero__breadcrumb {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 820px;
    padding: 0 40px;
    font-family: var(--fuente-ui);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--h-texto-tenue);
}
.nov-hero__breadcrumb a:hover { color: var(--h-dorado); }
.nov-hero__breadcrumb .separador { margin: 0 0.5rem; color: var(--h-dorado); }

/* ============================================================
   HEADER DEL ARTÍCULO — fecha, título, volanta
   ============================================================ */
.nov-article__header {
    padding: 44px 0 36px;
    border-bottom: 1px solid var(--h-borde);
    margin-bottom: 48px;
}
.nov-hero__fecha {
    font-family: var(--fuente-ui);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--h-dorado);
    margin-bottom: 14px;
}
.nov-hero__titulo {
    font-family: var(--fuente-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.15;
    color: var(--h-texto);
    margin-bottom: 12px;
}
.nov-hero__volanta {
    font-family: var(--fuente-ui);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--h-dorado-claro);
    font-weight: 500;
    margin-top: 4px;
}

/* Sin foto: el artículo arranca con margen por el nav fijo */
.nov-article--sin-hero { padding-top: calc(118px + 20px); }

/* ============================================================
   ARTÍCULO DE DETALLE
   ============================================================ */
.nov-article { padding: 60px 0 80px; }
.nov-article .contenedor { max-width: 820px; }

.nov-article__body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--h-texto-suave);
}
.nov-article__body p { margin-bottom: 1.5em; }
.nov-article__body h2 {
    font-family: var(--fuente-display);
    font-size: 1.8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--h-texto);
    margin: 2em 0 0.8em;
    line-height: 1.2;
}
.nov-article__body h3 {
    font-family: var(--fuente-ui);
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--h-dorado);
    margin: 1.8em 0 0.6em;
}
.nov-article__body img {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}
.nov-article__body video {
    max-width: 100%;
    height: auto;
    margin: 2em 0;
}
.nov-article__body a {
    color: var(--h-dorado);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.nov-article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    font-family: var(--fuente-ui);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--h-texto-tenue);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}
.nov-article__back:hover { color: var(--h-dorado); border-color: var(--h-dorado); }
.nov-article__back svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   TIPOGRAFÍA AUXILIAR
   ============================================================ */
.volanta {
    display: block;
    font-family: var(--fuente-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--h-dorado);
    margin-bottom: 10px;
}
.separador-acento {
    display: block;
    width: 40px;
    height: 2px;
    background: var(--h-dorado);
    margin: 16px auto 0;
}

/* ============================================================
   ENCABEZADO DE SECCIÓN
   ============================================================ */
.nov-encabezado {
    text-align: center;
    margin-bottom: 48px;
}
.nov-encabezado h2 {
    font-family: var(--fuente-display);
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    color: var(--h-texto);
    max-width: 720px;
    margin: 0 auto;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
.animar-entrada {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.animar-entrada.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   GRID LISTADO
   ============================================================ */
.nov-catalogo { padding: 60px 0 80px; }

.nov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ============================================================
   CARD DE NOVEDAD
   ============================================================ */
.nov-card {
    background: var(--h-fondo-claro);
    border: 1px solid var(--h-borde);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s;
}
.nov-card:hover { border-color: var(--h-acento-o50, rgba(201,168,76,0.5)); }

.nov-card__media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.nov-card__media img,
.nov-card__media video {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}
.nov-card:hover .nov-card__media img { transform: scale(1.05); }
.nov-card__placeholder {
    width: 100%; height: 100%;
    background: var(--h-fondo-alt);
    min-height: 180px;
}

.nov-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.nov-card__fecha {
    font-family: var(--fuente-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--h-dorado);
}

.nov-card__titulo {
    font-family: var(--fuente-display);
    font-size: 1.45rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.25;
    color: var(--h-texto);
}
.nov-card__titulo a { color: inherit; }
.nov-card__titulo a:hover { color: var(--h-dorado); }

.nov-card__volanta {
    font-family: var(--fuente-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--h-dorado-claro);
}

.nov-card__desc {
    font-size: 0.88rem;
    color: var(--h-texto-suave);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nov-card__btn {
    margin-top: auto;
    padding-top: 12px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--fuente-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--h-dorado);
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.2s, gap 0.2s, color 0.2s;
}
.nov-card__btn:hover {
    border-bottom-color: var(--h-dorado);
    gap: 10px;
    color: var(--h-dorado-claro);
}
.nov-card__btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.nov-vacio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: var(--h-texto-tenue);
    font-family: var(--fuente-ui);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* ============================================================
   PIE
   ============================================================ */
.pie {
    background: var(--h-pie-fondo, #070f16);
    border-top: 1px solid var(--h-borde);
    padding: 70px 0 30px;
}
.pie .contenedor { max-width: 1280px; }
.pie__logo-top { text-align: center; margin-bottom: 36px; }
.pie__logo-top img { height: 78px; margin: 0 auto 12px; }
.pie__logo-nombre {
    font-family: var(--fuente-display);
    font-size: 2.08rem;
    font-weight: 400;
    font-style: italic;
    color: #fff;
    letter-spacing: 0.02em;
}
.pie__logo-sub {
    font-family: var(--fuente-ui);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--h-dorado);
    margin-top: 4px;
}
.pie__separador {
    width: 50px; height: 1px;
    background: var(--h-borde);
    margin: 0 auto 50px;
}
.pie__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.pie__col-titulo {
    font-family: var(--fuente-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--h-dorado);
    margin-bottom: 20px;
}
.pie__col-texto,
.pie__col p,
.pie__col a {
    font-family: var(--fuente-cuerpo);
    font-size: 15px;
    color: var(--h-texto-tenue);
    line-height: 2;
}
.pie__col a:hover { color: var(--h-dorado); }
.pie__col--nav nav { display: flex; flex-direction: column; gap: 6px; }
.pie__col--nav nav a { font-size: 15px; color: var(--h-texto-tenue); transition: color 0.2s; }
.pie__col--nav nav a:hover { color: var(--h-dorado); }
.pie__redes { display: flex; gap: 10px; margin-top: 16px; }
.pie__redes a {
    width: 34px; height: 34px;
    border: 1px solid var(--h-borde-sutil, rgba(255,255,255,0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--h-texto-tenue);
    transition: all 0.2s;
}
.pie__redes a:hover { border-color: var(--h-dorado); color: var(--h-dorado); }
.pie__copyright {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
    font-family: var(--fuente-ui);
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.08em;
}

/* ============================================================
   BTN TOP
   ============================================================ */
.btn-top {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 900;
    width: 44px; height: 44px;
    background: var(--h-dorado);
    color: var(--h-fondo);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}
.btn-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.btn-top:hover { background: var(--h-dorado-claro); }
.btn-top svg { width: 18px; height: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .nav__logo img { height: 56px; }
    .nav__logo-nombre { font-size: 1.5rem; }
    .nav__logo-subtitulo { font-size: 11px; }
    .nav__hamburguesa { display: flex; }
    .nav__menu {
        position: fixed !important;
        top: 0 !important; right: -225px !important;
        left: auto !important; bottom: 0 !important;
        width: 185px !important; height: 100vh !important;
        margin: 0 !important; padding: 110px 24px 40px !important;
        background: var(--h-nav-mobile-bg, rgba(13,37,53,0.98)) !important;
        display: flex !important; flex-direction: column !important;
        align-items: stretch !important; justify-content: flex-start !important;
        text-align: right !important; gap: 22px !important;
        z-index: 10000 !important; transition: none !important;
        border-left: 1px solid rgba(255,255,255,0.08) !important;
        backdrop-filter: blur(10px) !important;
        overflow-y: auto !important; transform: none !important;
        box-shadow: -10px 0 30px rgba(0,0,0,.35);
    }
    .nav__menu.abierto {
        right: 0 !important;
        transition: right .35s ease !important;
    }
    .nav__menu a {
        display: block; width: 100%;
        text-align: right; font-size: 15px;
        margin: 0; padding: 6px 0; color: #fff;
    }
    .nav__menu a:hover { color: var(--h-dorado); }
    .imagen-separadora { margin-top: 96px; }
    .nov-hero { margin-top: 96px; }
    .nov-article--sin-hero { padding-top: calc(96px + 20px); }
}

@media (max-width: 960px) {
    .nov-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .imagen-separadora { height: 260px; margin-top: 90px; }
    .nov-hero { margin-top: 90px; }
    .nov-hero__media img, .nov-hero__media video { height: 360px; }
    .nov-article--sin-hero { padding-top: calc(90px + 20px); }
    .nov-catalogo { padding: 40px 0 60px; }
    .nov-article { padding: 40px 0 60px; }
    .nov-article__header { padding: 32px 0 28px; margin-bottom: 36px; }
}

@media (max-width: 700px) {
    .contenedor { padding: 0 20px; }
    .imagen-separadora { height: 200px; }
    .imagen-separadora__breadcrumb { padding: 0 20px; }
    .nov-hero__media img, .nov-hero__media video { height: 260px; }
    .nov-grid { grid-template-columns: 1fr; gap: 16px; }
    .nov-card__body { padding: 18px; }
    .pie__grid { grid-template-columns: 1fr; gap: 30px; }
}
