/* assets/css/style.css - Basado en el diseño original de lafronteraweb.com
   Paleta: negro, gris oscuro, rojo/granate para acentos, dorado suave
*/

/* ------------------------------------------------------------
   VARIABLES GLOBALES
------------------------------------------------------------ */
:root {
    --primary-red: #b22222;
    --primary-red-light: #cd5c5c;
    --primary-gold: #c9a03d;
    --primary-gold-light: #d4af37;
    --dark-bg: #0a0a0a;
    --dark-card: #111111;
    --dark-surface: #1a1a1a;
    --text-light: #f5f5f5;
    --text-muted: #888888;
    --border-color: #2a2a2a;
}

/* ------------------------------------------------------------
   ESTILOS BASE
------------------------------------------------------------ */
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ------------------------------------------------------------
   SUB HEADER - BARRA SUPERIOR
------------------------------------------------------------ */
.top-bar {
    background: #000000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .social-icons a {
    color: #888;
    margin-right: 12px;
    transition: color 0.2s;
}

.top-bar .social-icons a:hover {
    color: var(--primary-red);
}

.top-bar .next-concert {
    color: #888;
}

.top-bar .next-concert strong {
    color: var(--primary-gold);
}

/* ------------------------------------------------------------
   NAVBAR
------------------------------------------------------------ */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
}

.navbar-nav .nav-link {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #ccc;
    padding: 8px 16px;
    transition: color 0.2s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-gold);
}

/* ------------------------------------------------------------
   HERO SECTION - VIDEO
------------------------------------------------------------ */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content .greeting {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #ddd;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-subtitle a {
    color: var(--primary-gold);
    font-weight: 600;
}

.hero-subtitle a:hover {
    color: var(--primary-red);
}


/* ------------------------------------------------------------
   CARRUSEL DE NOVEDADES
------------------------------------------------------------ */
.novedades-carousel .item {
    text-align: center;
    padding: 10px;
}

.novedades-carousel .item img {
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.novedades-carousel .item:hover img {
    transform: scale(1.02);
}

.novedades-carousel .item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.novedades-carousel .item p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
}

/* ------------------------------------------------------------
   SECCIÓN CONCIERTOS - CARDS
------------------------------------------------------------ */

.concierto-card {
    display: flex;
    flex-wrap: wrap;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.concierto-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-4px);
}

.concierto-card .date {
    background: var(--primary-red);
    padding: 20px 25px;
    text-align: center;
    min-width: 100px;
}

.concierto-card .date .day {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
    color: white;
}

.concierto-card .date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
}

.concierto-card .date .btn-entradas {
    margin-top: 10px;
}

.concierto-card .date .btn-entradas a {
    background: rgba(0,0,0,0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: white;
}

.concierto-card .card-cont {
    flex: 1;
    padding: 20px;
}

.concierto-card .card-cont .tipo {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.concierto-card .card-cont h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.concierto-card .even-date,
.concierto-card .even-info {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.concierto-card .even-date i,
.concierto-card .even-info i {
    width: 20px;
    color: var(--primary-gold);
}

/* Alineación izquierda/derecha */
.concierto-card.fl-left .date { order: 1; }
.concierto-card.fl-left .card-cont { order: 2; text-align: left; }
.concierto-card.fl-right .date { order: 2; }
.concierto-card.fl-right .card-cont { order: 1; text-align: right; }

@media (max-width: 768px) {
    .concierto-card .date { width: 100%; order: 1 !important; }
    .concierto-card .card-cont { order: 2 !important; text-align: center !important; }
    .concierto-card .card-cont .even-date,
    .concierto-card .card-cont .even-info { justify-content: center; }
}

/* ------------------------------------------------------------
   SECCIÓN LA BANDA
------------------------------------------------------------ */

.miembro-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-gold);
}

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

.miembro-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.miembro-card p {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
}

.miembro-card .social-icons a {
    color: #666;
    margin: 0 5px;
    font-size: 1rem;
    transition: color 0.2s;
}

.miembro-card .social-icons a:hover {
    color: var(--primary-gold);
}

/* ------------------------------------------------------------
   SECCIÓN RECUERDOS
------------------------------------------------------------ */
.recuerdos .item {
    text-align: center;
    padding: 10px;
}

.recuerdos .item img {
    border-radius: 8px;
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.recuerdos .item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
    color: white;
}

.recuerdos .item p {
    font-size: 0.75rem;
    color: #888;
}

.recuerdos .item .badge {
    background: #333;
    color: #aaa;
    font-weight: normal;
}

/* ------------------------------------------------------------
   SECCIÓN CONTRATACIÓN
------------------------------------------------------------ */
.contratacion-section {
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
}

.contratacion-section h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */
.footer {
    background: #000000;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

.footer-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer a {
    color: #888;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-gold);
}

.footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    margin-right: 8px;
    transition: all 0.2s;
}

.footer .social-links a:hover {
    background: var(--primary-red);
    color: white;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 8px 20px;
        font-size: 0.75rem;
    }
    
    .miembro-img {
        width: 100px;
        height: 100px;
    }
}

/* ------------------------------------------------------------
   CONTROL DE SONIDO DEL VÍDEO
------------------------------------------------------------ */
.sound-control {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.sound-control:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.sound-control i {
    font-size: 1.2rem;
    color: white;
}

/* Mejora del overlay para mejor contraste */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

/* Para móviles, overlay más oscuro aún */
@media (max-width: 768px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .sound-control {
        bottom: 80px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   EMERGENCIA: FORZAR TEXTO LEGIBLE
   ============================================ */

/* Todos los textos de párrafos, descripciones y biografías */
p, .p, .description, .biografia, .card-text, 
.miembro-info p, .timeline-content p, .historia-text p,
.text-muted, .small, small, .card-body p {
    color: #d4d4d4 !important;
}

/* Texto dentro de cards y contenedores oscuros */
.card p, .bg-dark-card p, .bg-dark p, .miembro-card p {
    color: #cccccc !important;
}

/* Títulos siempre blancos */
h1, h2, h3, h4, h5, h6, 
.card-title, .section-title, 
.modal-title, .miembro-card h4 {
    color: #ffffff !important;
}

/* Enlaces dentro de textos */
a:not(.btn):not(.nav-link) {
    color: #fbbf24 !important;
}

a:not(.btn):not(.nav-link):hover {
    color: #dc2626 !important;
}

/* Texto en la sección de miembros históricos */
.historico-card h6,
.historico-card .text-muted,
.historico-card .small {
    color: #cccccc !important;
}

.historico-card .text-gold {
    color: #fbbf24 !important;
}

/* ============================================================
   LA FRONTERA — mejoras visuales
   Paleta: #0a0a0a base · #dc2626 rojo · #e5c55a dorado cuero
   ============================================================ */

/* --- Tipografía: Barlow Condensed para cuerpo --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;500;600&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --primary-red:    #dc2626;
  --primary-gold:   #e5c55a;
  --bg-base:        #0a0a0a;
  --bg-surface:     #141414;
  --bg-card:        #1a1a1a;
  --border-subtle:  #2a2a2a;
  --text-muted:     #888;
}

body {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: 17px; /* Barlow Condensed se lee mejor algo más grande */
  background-color: var(--bg-base);
  color: #e5e5e5;
}

/* --- Títulos: Oswald con tracking amplio --- */
h1, h2, h3, .section-title {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.06em;
}

/* --- Navbar --- */
#mainNav {
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#mainNav .navbar-brand img {
  filter: brightness(1.1);
  transition: filter 0.2s;
}
#mainNav .navbar-brand:hover img { filter: brightness(1.3); }

#mainNav .nav-link {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #aaa;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

#mainNav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--primary-red);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff;
}

#mainNav .nav-link:hover::after,
#mainNav .nav-link.active::after {
  transform: scaleX(1);
}

/* --- Hero section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-base);
  overflow: hidden;
}

/* Línea diagonal de textura roca */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 60px,
    rgba(220, 38, 38, 0.03) 60px,
    rgba(220, 38, 38, 0.03) 61px
  );
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.3) 40%,
    rgba(10,10,10,0.85) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Subtítulo dorado en el hero */
.hero-content .lead,
.hero-content .hero-sub {
  color: var(--primary-gold);
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Línea roja decorativa bajo el título del hero */
.hero-content h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-red);
  margin: 16px auto 0;
}

/* --- Section titles --- */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-red);
}

/* Centrado: la línea se centra también */
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Cards generales --- */
.bg-dark-card {
  background: var(--bg-card);
  border-color: var(--border-subtle) !important;
}

/* --- Cards de conciertos (estética cartel de bolos) --- */
.concierto-card,
.concert-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--primary-red);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  transition: border-left-color 0.2s, transform 0.2s;
}

.concierto-card:hover,
.concert-item:hover {
  border-left-color: var(--primary-gold);
  transform: translateX(4px);
}

.concierto-card .fecha,
.concert-date {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  color: var(--primary-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.concierto-card .ciudad,
.concert-city {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  line-height: 1.1;
}

.concierto-card .sala,
.concert-venue {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Álbumes (discografía) --- */
.album-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s;
}

.album-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-red);
}

.album-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.album-info {
  padding: 12px;
}

.album-year {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  color: var(--primary-gold);
  letter-spacing: 0.12em;
}

/* --- Miembros de la banda --- */
.miembro-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.25s;
}

.miembro-card:hover { border-color: var(--primary-red); }

.miembro-img-container { position: relative; }

.miembro-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.miembro-card:hover .miembro-img { filter: grayscale(0%); }

.miembro-role {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 20px 10px 8px;
}

.instrument-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  color: var(--primary-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.miembro-info { padding: 14px; }

.miembro-alias {
  font-style: italic;
  color: var(--primary-gold);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* --- Timeline (historia/banda) --- */
.timeline-banda {
  position: relative;
  padding: 20px 0;
}

.timeline-banda::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--primary-red);
  transform: translateX(-50%);
}

.timeline-banda-item {
  position: relative;
  width: 45%;
  margin-bottom: 30px;
}

.timeline-banda-item.left  { margin-right: auto; padding-right: 40px; text-align: right; }
.timeline-banda-item.right { margin-left: auto;  padding-left: 40px;  text-align: left; }

/* Punto en la línea */
.timeline-banda-item::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 12px; height: 12px;
  background: var(--primary-red);
  border: 2px solid var(--bg-base);
  border-radius: 50%;
}

.timeline-banda-item.left::after  { right: -6px; }
.timeline-banda-item.right::after { left: -6px; }

.timeline-banda-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px;
}

.timeline-banda-year {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-gold);
  line-height: 1;
  margin-bottom: 4px;
}

/* --- Botones --- */
.btn-primary-custom {
  background: var(--primary-red);
  border: none;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary-custom:hover {
  background: #b91c1c;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-custom {
  border: 1px solid var(--border-subtle);
  color: #ccc;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline-custom:hover,
.btn-outline-custom.active-filter {
  border-color: var(--primary-red);
  color: #fff;
  background: rgba(220, 38, 38, 0.1);
}

/* --- Footer --- */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

/* --- Colores utilitarios --- */
.text-gold { color: var(--primary-gold) !important; }
.bg-dark-surface { background: var(--bg-surface) !important; }

/* --- Responsive: timeline en móvil --- */
@media (max-width: 768px) {
  .timeline-banda::before { left: 20px; }
  .timeline-banda-item,
  .timeline-banda-item.left,
  .timeline-banda-item.right {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
    margin-left: 0;
  }
  .timeline-banda-item::after,
  .timeline-banda-item.left::after,
  .timeline-banda-item.right::after {
    left: 14px;
    right: auto;
  }
}

/* Estilos para la visualización de letras */
.letra-container {
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
}

.letra-cancion {
    font-family: 'Georgia', serif;
}

.letra-texto {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #d4d4d4;
    white-space: pre-wrap;
    word-break: break-word;
}

.btn-outline-gold {
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
}

.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: #000;
}

.nav-tabs .nav-link {
    background: #1a1a1a;
    border-color: #2a2a2a;
    color: #aaa;
}

.nav-tabs .nav-link.active {
    background: #2a2a2a;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.nav-tabs .nav-link:hover {
    border-color: var(--primary-gold);
    color: white;
}


/* Estilos para el editor TinyMCE en modo oscuro */
.tox-tinymce {
    border-radius: 8px !important;
    border-color: #374151 !important;
}

.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
    background: #1a1a1a !important;
}

.tox .tox-tbtn {
    color: #d4d4d4 !important;
}

.tox .tox-tbtn:hover {
    background: #2a2a2a !important;
}

/* Estilos para la visualización de letras con formato */
.letra-texto {
    font-family: 'Georgia', serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #d4d4d4;
}

.letra-texto strong,
.letra-texto b {
    color: #fbbf24;
}

.letra-texto em,
.letra-texto i {
    color: #dc2626;
}

.letra-texto h1, .letra-texto h2, .letra-texto h3 {
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.letra-texto ul, .letra-texto ol {
    margin: 0.75rem 0;
    padding-left: 2rem;
}

.letra-texto li {
    margin: 0.25rem 0;
}

.letra-texto blockquote {
    border-left: 4px solid #fbbf24;
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #aaa;
    font-style: italic;
}

.letra-texto pre {
    background: #0a0a0a;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: monospace;
}

/* ============================================
   ESTILOS PARA CITAS
   ============================================ */

/* Contenedor principal de citas */
.citas-section {
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.cita-container {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 2.5rem;
    color: #dc2626;
    opacity: 0.5;
    margin-bottom: 15px;
    display: inline-block;
}

.cita-texto {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e5e5e5;
    font-style: italic;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.cita-autor {
    font-size: 0.9rem;
    color: #dc2626;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Cita destacada en página de inicio */
.cita-destacada {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.cita-destacada .cita-texto {
    font-size: 1.4rem;
}

.cita-destacada .quote-icon {
    font-size: 3rem;
}

/* Widget de cita en sidebar */
.cita-widget {
    border-left: 3px solid #dc2626;
}

.cita-widget-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d4d4d4;
    font-style: italic;
    margin-bottom: 10px;
}

.cita-widget-autor {
    font-size: 0.75rem;
}

/* Animación para cambio de cita (si usas JavaScript para rotar) */
@keyframes fadeInQuote {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cita-container {
    animation: fadeInQuote 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .cita-texto {
        font-size: 1rem;
    }
    
    .cita-destacada .cita-texto {
        font-size: 1.1rem;
    }
    
    .quote-icon {
        font-size: 2rem;
    }
}



/* --- Contratación --- */
.contratacion { background: #0d0d0d; border-top: 1px solid #1a1a1a; }

.contratacion-logo {
    max-height: 160px;
    max-width: 220px;
}

.contrat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contrat-icon {
    font-size: 1.4rem;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.contrat-label {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contrat-value {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.contrat-value:hover { color: var(--primary-gold); }


/* ============================================================
   BOTTOM NAVIGATION BAR (MÓVIL)
   Oculta en escritorio/tablet, fija y compacta en móvil.
   ============================================================ */

/* Safe-area para móviles con notch / barra de gestos */
:root {
    --bottom-nav-height: 60px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

.bottom-nav {
    display: none; /* solo visible en móvil, ver media query */
}

@media (max-width: 991.98px) {
    .bottom-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        height: calc(var(--bottom-nav-height) + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.4);
    }

    /* El bottom nav sustituye al menú hamburguesa en móvil */
    .navbar-toggler {
        display: none !important;
    }
    .navbar-collapse {
        display: none !important;
    }

    /* En el panel de admin, el bottom nav sustituye también al sidebar
       lateral + su botón hamburguesa (se quedan solo para escritorio/tablet) */
    .menu-toggle,
    .admin-sidebar {
        display: none !important;
    }
    .admin-main {
        margin-left: 0 !important;
    }

    .bottom-nav-list {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        list-style: none;
        margin: 0;
        padding: 0;
        height: var(--bottom-nav-height);
    }

    .bottom-nav-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
    }

    .bottom-nav-link {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        flex: 1;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        padding: 6px 2px;
        transition: color 0.2s;
    }

    .bottom-nav-link i {
        font-size: 1.2rem;
        line-height: 1;
    }

    .bottom-nav-link span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .bottom-nav-link.active {
        color: var(--primary-gold);
    }

    .bottom-nav-link.active i {
        transform: translateY(-1px);
    }

    .bottom-nav-badge {
        position: absolute;
        top: 2px;
        right: calc(50% - 18px);
        background: var(--primary-red);
        color: #fff;
        font-size: 0.6rem;
        line-height: 1;
        min-width: 16px;
        height: 16px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        font-weight: 700;
    }

    /* Compensar la barra fija para que no tape el contenido */
    body {
        padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom));
    }
}

/* En pantallas muy pequeñas, reducir un poco más */
@media (max-width: 360px) {
    .bottom-nav-link { font-size: 0.58rem; }
    .bottom-nav-link i { font-size: 1.1rem; }
}

/* El item "Más" es un <button>, igualarlo visualmente a los <a> del bottom nav */
button.bottom-nav-link {
    border: none;
    background: transparent;
    width: 100%;
    font-family: inherit;
}

/* ============================================================
   MENÚ FLOTANTE "MÁS" (bottom nav)
   ============================================================ */
.bottom-nav-mas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1045;
    opacity: 0;
    transition: opacity 0.2s;
}
.bottom-nav-mas-overlay.show { opacity: 1; }

.bottom-nav-mas-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1046;
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    padding: 10px 0 calc(16px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 0.22s ease-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.bottom-nav-mas-menu.show { transform: translateY(0); }

.bottom-nav-mas-handle {
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    margin: 0 auto 10px;
}

.bottom-nav-mas-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 24px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.92rem;
}
.bottom-nav-mas-link i { font-size: 1.1rem; color: var(--primary-gold); width: 20px; }
.bottom-nav-mas-link.active { color: var(--primary-gold); }
.bottom-nav-mas-link.text-danger i { color: var(--primary-red) !important; }

.bottom-nav-mas-divider {
    border-color: var(--border-color);
    margin: 4px 16px;
    opacity: 0.5;
}

/* El menú "Más" no tiene sentido en escritorio (ahí ya está el navbar normal) */
@media (min-width: 992px) {
    .bottom-nav-mas-menu, .bottom-nav-mas-overlay { display: none !important; }
}


/* ============================================================
   BOTÓN VOLVER ARRIBA
   ============================================================ */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--dark-card);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-red);
    color: #fff;
    border-color: var(--primary-red);
}

@media (min-width: 992px) {
    .back-to-top {
        bottom: 24px;
    }
}