/* ================================================================
   Jenny Peña Campos — Identidad corporativa
   Paleta: marfil, vino oscuro, rojo concierto, cobre, ocre, rosa madera
   Tipografía: Playfair Display (serif) + Inter (sans)
   ================================================================ */

:root {
    /* ─── Paleta principal ─── */
    --color-marfil:      #FBF7F2;
    --color-arena:       #F4E7DC;
    --color-rosa-madera: #E7C5B1;
    --color-beige-humo:  #E8D8CE;

    --color-ocre-violin:   #C98025;
    --color-cobre-intenso: #C6480D;
    --color-rojo-concierto:#A62522;
    --color-vino-oscuro:   #5A0609;

    /* ─── Texto ─── */
    --color-tinta:         #2A1112;
    --color-texto-suave:   #6F5550;
    --color-texto-inverso: #FBF7F2;

    /* ─── Superficies ─── */
    --bg-body:       var(--color-marfil);
    --bg-surface:    #FFFFFF;
    --bg-dark:       var(--color-vino-oscuro);
    --border-color:  var(--color-beige-humo);

    /* ─── Acciones ─── */
    --btn-primary-bg:     var(--color-rojo-concierto);
    --btn-primary-hover:  var(--color-vino-oscuro);
    --btn-outline-border: var(--color-rojo-concierto);
    --btn-outline-text:   var(--color-vino-oscuro);
    --btn-outline-hover:  var(--color-rosa-madera);

    --link-color:      var(--color-rojo-concierto);
    --link-hover:      var(--color-cobre-intenso);

    /* ─── Tipografía ─── */
    --font-serif:  'Playfair Display', 'Cormorant Garamond', 'Libre Baskerville', Georgia, serif;
    --font-sans:   'Inter', 'Source Sans 3', 'Manrope', system-ui, -apple-system, sans-serif;

    /* ─── Radios ─── */
    --radius-sm: 4px;
    --radius-md: 8px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET Y BASE
   ═══════════════════════════════════════════════════════════════════ */

body {
    background-color: var(--bg-body);
    color: var(--color-tinta);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-tinta);
}

h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.01em; }

/* H3: sans serif en mayúsculas pequeñas (manual §4). Los h3 que actúan como
   titulares editoriales (posts, tarjetas con .font-serif/.card-title) se
   excluyen más abajo para no perder legibilidad. */
h3 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-vino-oscuro);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--link-hover); }

/* ═══════════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════════ */

.navbar {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(90, 6, 9, 0.15);
}

/* Fondo propio de marca (reemplaza el .bg-dark de Bootstrap, que exige
   !important para ganarle a su propia utilidad). */
.navbar-jenny {
    background: var(--color-vino-oscuro);
}

.navbar-brand {
    padding: 0.25rem 0;
}
.navbar-brand img {
    max-height: 40px;
    height: auto;
    width: auto;
    transition: opacity 0.2s;
}
.navbar-brand:hover img {
    opacity: 0.85;
}

.navbar-nav .nav-link {
    color: rgba(251, 247, 242, 0.85) !important;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-ocre-violin) !important;
}

.navbar .dropdown-menu {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px rgba(42, 17, 18, 0.08);
}

.navbar .dropdown-item {
    color: var(--color-tinta);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
}

.navbar .dropdown-item:hover {
    background: var(--color-arena);
    color: var(--color-vino-oscuro);
}

.navbar .dropdown-item.active {
    background: var(--color-rosa-madera);
    color: var(--color-vino-oscuro);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO / HOME
   ═══════════════════════════════════════════════════════════════════ */

.hero-section {
    background: linear-gradient(160deg, var(--color-vino-oscuro) 0%, #3A0406 60%, var(--color-cobre-intenso) 100%);
    color: var(--color-texto-inverso);
    padding: 7rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-ocre-violin), var(--color-rojo-concierto), var(--color-ocre-violin));
}

.hero-section h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-texto-inverso);
    margin-bottom: 0.5rem;
}

.hero-section .lead {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-section .hero-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

.hero-section .hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-ocre-violin);
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
}

/* ─── Botones hero ─── */
.hero-section .btn-light {
    background: var(--color-texto-inverso);
    color: var(--color-vino-oscuro);
    border: none;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.hero-section .btn-light:hover {
    background: var(--color-rosa-madera);
    color: var(--color-vino-oscuro);
}

.hero-section .btn-outline-light {
    color: var(--color-texto-inverso);
    border-color: rgba(251, 247, 242, 0.4);
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.hero-section .btn-outline-light:hover {
    background: rgba(251, 247, 242, 0.1);
    border-color: var(--color-ocre-violin);
    color: var(--color-ocre-violin);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE BANNER (cabecera con imagen — biografía, prensa, conciertos)
   ═══════════════════════════════════════════════════════════════════ */

.page-banner {
    position: relative;
    height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

/* Capa de contraste: el manual (§3) exige no colocar texto sobre foto con
   ruido sin una capa de contraste. */
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 17, 18, 0.15) 0%, rgba(42, 17, 18, 0.75) 100%);
}

.page-banner-title {
    position: relative;
    z-index: 1;
    color: var(--color-texto-inverso);
    padding: 2rem 0;
    width: 100%;
}

.page-banner-title h1 {
    color: var(--color-texto-inverso);
    font-size: 2.4rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .page-banner { height: 200px; }
    .page-banner-title h1 { font-size: 1.8rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   BOTONES GLOBALES
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}
.btn-primary:hover {
    background: var(--btn-primary-hover);
    border-color: var(--btn-primary-hover);
}

.btn-outline-primary {
    color: var(--btn-outline-text);
    border-color: var(--btn-outline-border);
}
.btn-outline-primary:hover {
    background: var(--btn-outline-hover);
    border-color: var(--btn-outline-border);
    color: var(--color-vino-oscuro);
}

.btn-outline-secondary {
    color: var(--color-texto-suave);
    border-color: var(--border-color);
}
.btn-outline-secondary:hover {
    background: var(--color-arena);
    color: var(--color-tinta);
}

.btn-success {
    background: var(--color-vino-oscuro);
    border-color: var(--color-vino-oscuro);
}
.btn-success:hover {
    background: #3A0406;
    border-color: #3A0406;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════════
   TARJETAS / CARDS
   ═══════════════════════════════════════════════════════════════════ */

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(42, 17, 18, 0.04);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(42, 17, 18, 0.08);
}

.card-header {
    background: var(--color-arena);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-vino-oscuro);
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCTOS
   ═══════════════════════════════════════════════════════════════════ */

.producto-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.producto-card .card-img-top {
    height: 200px;
    object-fit: cover;
    background: var(--color-arena);
}

.price-tag {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-rojo-concierto);
}

/* ═══════════════════════════════════════════════════════════════════
   SECCIONES
   ═══════════════════════════════════════════════════════════════════ */

.section-title {
    font-family: var(--font-serif);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    color: var(--color-vino-oscuro);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-ocre-violin);
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════ */

.testimonio-card {
    background: var(--color-arena);
    border-left: 3px solid var(--color-rojo-concierto);
    padding: 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1rem;
}

.testimonio-card .cliente {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-vino-oscuro);
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════════════════════════════ */

.blog-post {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-post:last-child { border-bottom: none; }

.blog-post h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.blog-post h3 a {
    color: var(--color-vino-oscuro);
    font-family: var(--font-serif);
}
.blog-post h3 a:hover { color: var(--color-rojo-concierto); }

.blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.blog-content p { margin-bottom: 1.25rem; }

/* ═══════════════════════════════════════════════════════════════════
   ETIQUETAS / BADGES
   ═══════════════════════════════════════════════════════════════════ */

.badge {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 0.3em 0.7em;
    border-radius: var(--radius-sm);
}

.bg-primary   { background: var(--color-rojo-concierto) !important; }
.bg-secondary { background: var(--color-texto-suave) !important; }
.bg-success   { background: #5A7D5A !important; }
.bg-danger    { background: #8B2E2E !important; }
.bg-info      { background: var(--color-ocre-violin) !important; }
.bg-warning   { background: var(--color-cobre-intenso) !important; }
.bg-dark      { background: var(--color-vino-oscuro) !important; }

.text-primary  { color: var(--color-rojo-concierto) !important; }
.text-secondary{ color: var(--color-texto-suave) !important; }
.text-success  { color: #5A7D5A !important; }

.file-type-badge {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════════
   TABLAS
   ═══════════════════════════════════════════════════════════════════ */

.table { color: var(--color-tinta); }
.table-dark {
    background: var(--color-vino-oscuro);
    color: var(--color-texto-inverso);
}
.table-dark th {
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.table-hover tbody tr:hover {
    background: var(--color-arena);
}

/* ═══════════════════════════════════════════════════════════════════
   FORMULARIOS
   ═══════════════════════════════════════════════════════════════════ */

.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    color: var(--color-tinta);
    transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-rojo-concierto);
    box-shadow: 0 0 0 3px rgba(166, 37, 34, 0.1);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-vino-oscuro);
}

.form-label {
    font-family: var(--font-sans);
    font-weight: 500;
    color: var(--color-tinta);
    font-size: 0.9rem;
}

.input-group-text {
    background: var(--color-arena);
    border: 1px solid var(--border-color);
    color: var(--color-texto-suave);
}

/* ═══════════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════════ */

.alert {
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.alert-success { background: #E8EDE5; color: #2E4A2E; }
.alert-danger  { background: #F5E8E8; color: #6B2A2A; }
.alert-warning { background: #FDF3E0; color: #7A5A20; }
.alert-info    { background: #E8EDF2; color: #3A4A5A; }

/* ═══════════════════════════════════════════════════════════════════
   CONTRATO / LEGAL
   ═══════════════════════════════════════════════════════════════════ */

.contract-box {
    background: var(--color-arena);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--color-ocre-violin);
    border-radius: var(--radius-sm);
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    color: var(--color-tinta);
}

/* ═══════════════════════════════════════════════════════════════════
   VIDEO
   ═══════════════════════════════════════════════════════════════════ */

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   GALERÍA DE FOTOS
   ═══════════════════════════════════════════════════════════════════ */

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(42, 17, 18, 0.12);
}

/* Lightbox: negro Bootstrap → vino oscuro de marca (manual §6, multimedia). */
.modal-content.bg-dark {
    background: var(--color-vino-oscuro) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */

footer.footer-jenny {
    background: var(--color-vino-oscuro);
    color: rgba(251, 247, 242, 0.75);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

footer p {
    margin-bottom: 0.25rem;
}

footer .text-muted {
    color: rgba(251, 247, 242, 0.45) !important;
}

footer img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   ADMIN — LAYOUT (sidebar + topbar + content)
   ═══════════════════════════════════════════════════════════════════ */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 56px);
    margin-top: 0;
}

/* ─── Sidebar ─── */
.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--color-vino-oscuro);
    color: rgba(251, 247, 242, 0.85);
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    overflow-y: auto;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
}

.sidebar-header {
    padding: 1.25rem 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(251, 247, 242, 0.08);
}

.sidebar-brand {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-texto-inverso);
    letter-spacing: 0.04em;
}

.sidebar-section {
    padding: 0.75rem 1rem 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(251, 247, 242, 0.35);
}

.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    color: rgba(251, 247, 242, 0.7);
    text-decoration: none;
    transition: all 0.15s;
    border-left: 2px solid transparent;
    font-size: 0.84rem;
}

.sidebar-link:hover {
    color: var(--color-texto-inverso);
    background: rgba(251, 247, 242, 0.05);
    border-left-color: var(--color-ocre-violin);
}

.sidebar-link.active {
    color: var(--color-texto-inverso);
    background: rgba(166, 37, 34, 0.2);
    border-left-color: var(--color-rojo-concierto);
    font-weight: 500;
}

.sidebar-link i { font-size: 1rem; width: 18px; text-align: center; }

.sidebar-footer {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(251, 247, 242, 0.08);
}

/* ─── Main content ─── */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--color-marfil);
}

.admin-topbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 56px;
    z-index: 10;
    height: 56px;
}

.topbar-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-vino-oscuro);
}

.admin-content {
    flex: 1;
    padding: 1.5rem;
    max-width: 1400px;
}

/* ─── Stats cards ─── */
.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--color-rojo-concierto);
    border-radius: var(--radius-sm);
    transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(42, 17, 18, 0.08); }

/* ─── Responsive sidebar ─── */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
        min-width: 60px;
    }
    .sidebar-brand, .sidebar-section, .sidebar-link span  { display: none; }
    .sidebar-link { justify-content: center; padding: 0.6rem; }
    .sidebar-link i { font-size: 1.2rem; }
    .sidebar-header { padding: 0.75rem 0.5rem; }
    .admin-content { padding: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   MULTILANG TABS (admin forms)
   ═══════════════════════════════════════════════════════════════════ */

.nav-tabs .nav-link {
    font-size: 0.85rem;
    color: var(--color-texto-suave);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
}
.nav-tabs .nav-link.active {
    color: var(--color-vino-oscuro);
    border-bottom-color: var(--color-rojo-concierto);
    font-weight: 600;
    background: transparent;
}

/* ═══════════════════════════════════════════════════════════════════
   TOKEN INFO
   ═══════════════════════════════════════════════════════════════════ */

.token-expired { opacity: 0.45; }

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════ */

.breadcrumb {
    font-family: var(--font-sans);
    font-size: 0.85rem;
}
.breadcrumb-item a { color: var(--color-texto-suave); }
.breadcrumb-item a:hover { color: var(--color-rojo-concierto); }
.breadcrumb-item.active { color: var(--color-tinta); }

.bg-arena { background: var(--color-arena); }
.bg-rosa-madera { background: var(--color-rosa-madera); }

.font-serif {
    font-family: var(--font-serif);
    text-transform: none;
    letter-spacing: normal;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero-section { padding: 4rem 0 3rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .lead { font-size: 1rem; }
}
