/* ==========================================================================
   PORTAL GENERAL DEL CLUB VOLEIBOL DAGANZO — "EL FORTÍN"
   Paleta Oficial:
     - Primario: #1b365d / #1e519d (Azul Institucional Escudo)
     - Acento:   #50a0b0 / #38b2ac / #3aa6d8 (Cyan / Turquesa Equipación)
     - Blanco:   #ffffff (Equipo Blanco, pureza)
     - Negro:    #1a1a1a / #0a0a0a (Equipo Negro, texto y contraste)
   ========================================================================== */

:root {
  --cv-blue: #1b365d;
  --cv-blue-dark: #12243e;
  --cv-blue-light: #2b4c7e;
  --cv-cyan: #38b2ac;
  --cv-cyan-bright: #3aa6d8;
  --cv-cyan-light: #e6f6f8;
  --cv-black: #1a1a1a;
  --cv-white: #ffffff;
  --cv-gray-100: #f8fafc;
  --cv-gray-200: #f1f5f9;
  --cv-gray-300: #e2e8f0;
  --cv-gray-400: #94a3b8;
  --cv-gray-700: #334155;
  --cv-accent-gold: #d97706;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --font-reading: 'Merriweather', 'Lora', Georgia, serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--cv-gray-100);
  color: var(--cv-black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   HEADER INSTITUCIONAL Y NAVEGACIÓN
   ========================================================================== */
.site-header {
  background: linear-gradient(135deg, var(--cv-blue-dark) 0%, var(--cv-blue) 100%);
  color: var(--cv-white);
  border-bottom: 4px solid var(--cv-cyan);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 100%;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.faro-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.25s ease;
}

.header-brand:hover .faro-logo {
  transform: rotate(-6deg) scale(1.08);
}

.header-section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(56, 178, 172, 0.45);
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.header-section-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--cv-cyan-bright);
}

.header-section-pill .club-shield {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.25s ease;
}

.header-section-pill:hover .club-shield {
  transform: scale(1.1);
}

.header-section-pill .section-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.header-section-pill .section-badge {
  font-size: 0.68rem;
  color: var(--cv-cyan-bright);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.header-section-pill .section-name {
  font-size: 0.82rem;
  color: var(--cv-white);
  font-weight: 700;
}

.club-shield {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  transition: transform 0.25s ease;
}

.header-brand:hover .club-shield {
  transform: rotate(-6deg) scale(1.05);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cv-white);
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--cv-cyan-bright);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--cv-white);
  background-color: rgba(56, 178, 172, 0.25);
}

.nav-badge-faro {
  background-color: var(--cv-cyan);
  color: var(--cv-blue-dark) !important;
  font-weight: 800 !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-badge-faro:hover {
  background-color: var(--cv-cyan-bright) !important;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
   ========================================================================== */
.main-content {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ==========================================================================
   HOME / PORTADA DEL ROTATIVO
   ========================================================================== */
.home-hero-banner {
  background: linear-gradient(135deg, #1b365d 0%, #172c4c 100%);
  border-radius: 12px;
  padding: 2.25rem;
  color: var(--cv-white);
  margin-bottom: 2.5rem;
  border-left: 6px solid var(--cv-cyan);
  box-shadow: 0 6px 18px rgba(27, 54, 93, 0.15);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .home-hero-banner {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

.hero-tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background-color: var(--cv-cyan);
  color: var(--cv-blue-dark);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--cv-white);
}

.hero-description {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 650px;
  line-height: 1.6;
}

.hero-badge-rotativo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  text-align: center;
}

.hero-badge-rotativo img {
  width: 54px;
  height: 54px;
  margin-bottom: 0.5rem;
  filter: invert(1) brightness(0.9);
}

.hero-badge-rotativo strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #f8fafc;
}

.hero-badge-rotativo span {
  font-size: 0.75rem;
  color: var(--cv-cyan-bright);
}

/* ==========================================================================
   DESTACADA DE PORTADA (ÚLTIMA CRÓNICA DE AITOR TAZO)
   ========================================================================== */
.section-heading-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--cv-gray-300);
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cv-blue-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.featured-chronicle-card {
  background: var(--cv-white);
  border: 1px solid var(--cv-gray-300);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
}

@media (max-width: 900px) {
  .featured-chronicle-card {
    grid-template-columns: 1fr;
  }
}

.featured-chronicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.featured-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.badge-lead {
  background: var(--cv-blue);
  color: var(--cv-white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.badge-team {
  background: var(--cv-cyan-light);
  color: var(--cv-blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--cv-black);
  margin-bottom: 0.75rem;
}

.featured-title a:hover {
  color: var(--cv-blue);
}

.featured-dateline {
  font-size: 0.88rem;
  color: var(--cv-gray-700);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.featured-excerpt {
  font-family: var(--font-reading);
  font-size: 1.02rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  flex: 1;
}

.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--cv-gray-200);
}

.btn-read-rotativo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--cv-blue);
  color: var(--cv-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-read-rotativo:hover {
  background-color: var(--cv-cyan);
  color: var(--cv-blue-dark);
  transform: translateX(4px);
}

/* Ficha del partido en portada */
.featured-sidebar {
  background: #fdfbf7;
  border-left: 1px solid var(--cv-gray-300);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .featured-sidebar {
    border-left: none;
    border-top: 1px solid var(--cv-gray-300);
  }
}

.match-box {
  background: var(--cv-white);
  border: 1px solid var(--cv-gray-300);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.match-box-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cv-blue);
  margin-bottom: 0.5rem;
}

.match-score-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cv-blue-dark);
  margin: 0.5rem 0;
}

.match-sets-pill {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--cv-gray-200);
  color: var(--cv-gray-700);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.author-chip {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.author-chip img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cv-blue);
}

.author-chip-text h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cv-blue-dark);
}

.author-chip-text p {
  font-size: 0.75rem;
  color: var(--cv-gray-700);
}

/* ==========================================================================
   GRID DE ARTÍCULOS / HISTÓRICO
   ========================================================================== */
.chronicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.chronicle-card {
  background: var(--cv-white);
  border: 1px solid var(--cv-gray-300);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.chronicle-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  border-color: var(--cv-cyan);
}

.chronicle-card-date {
  font-size: 0.78rem;
  color: var(--cv-cyan);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.chronicle-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--cv-black);
}

.chronicle-card-excerpt {
  font-family: var(--font-reading);
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.chronicle-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--cv-gray-200);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cv-blue);
}

/* ==========================================================================
   PIE DE PÁGINA INSTITUCIONAL
   ========================================================================== */
.site-footer {
  background-color: var(--cv-blue-dark);
  color: #cbd5e1;
  padding: 3rem 1.5rem 1.5rem;
  border-top: 4px solid var(--cv-cyan);
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-brand h3 {
  color: var(--cv-white);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-column h4 {
  color: var(--cv-cyan-bright);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.45rem;
}

.footer-column a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--cv-white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* ==========================================================================
   CÓDIGO DEL FORTÍN (LISTA DE VALORES EDITORIALES)
   ========================================================================== */
.codigo-fortin-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.codigo-fortin-list li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
}

.codigo-fortin-list li::before {
  content: "🛡️";
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   MODAL DE AVISO LEGAL Y DE FICCIÓN (DISCLAIMER)
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 25, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.25s ease-out;
}

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

.modal-dialog {
  background-color: #fdfbf7;
  color: #1a1a1a;
  max-width: 660px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 3px solid var(--cv-blue-dark);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px) scale(0.97); }
  to { transform: translateY(0) scale(1); }
}

.modal-header {
  background: #f4ede2;
  border-bottom: 2px solid #e2d9cc;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0 0.25rem;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}

.modal-close-btn:hover {
  color: #111827;
  background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
  padding: 1.35rem;
  overflow-y: auto;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.65;
  color: #374151;
}

.modal-intro {
  margin-bottom: 1rem;
  font-size: 0.98rem;
  color: #1f2937;
}

.modal-points-list {
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}

.modal-points-list li {
  color: #374151;
}

.modal-points-list strong {
  color: #111827;
}

.modal-points-list a {
  color: var(--cv-blue);
  font-weight: 700;
  text-decoration: underline;
}

.modal-points-list a:hover {
  color: var(--cv-cyan-bright);
}

.modal-footer {
  background: #f7f3ec;
  border-top: 1px solid #e2d9cc;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: center;
}

.btn-disclaimer-accept {
  background: var(--cv-blue-dark);
  color: #ffffff;
  border: 1px solid #0a1728;
  padding: 0.75rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(18, 36, 62, 0.25);
  transition: background 0.2s, transform 0.1s;
}

.btn-disclaimer-accept:hover {
  background: var(--cv-blue);
  box-shadow: 0 6px 14px rgba(18, 36, 62, 0.35);
  transform: translateY(-1px);
}

.btn-disclaimer-accept:active {
  transform: translateY(1px);
}

.footer-legal-link, .nav-legal-link {
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
}

.footer-legal-link:hover, .nav-legal-link:hover {
  color: var(--cv-cyan-bright);
}

@media (max-width: 600px) {
  .modal-dialog {
    max-height: 92vh;
    border-width: 2px;
  }
  .modal-title {
    font-size: 1rem;
  }
  .modal-body {
    padding: 1rem;
    font-size: 0.88rem;
  }
  .btn-disclaimer-accept {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
}


