/*
Theme Name: Legal Pro
Theme URI: 
Author: GitHub Copilot
Description: A professional legal website theme with blog support.
Version: 1.6.0
License: GPLv2 or later
Text Domain: legal-pro
*/

:root {
  --primary: #1B263B;    /* Azul Corporativo */
  --secondary: #2C3E50;  /* Azul Marino */
  --accent: #D4AF37;     /* Dorado */
  --text: #1B263B;       /* Texto Azul Corporativo (antes negro #1a1a1a) */
  --muted: rgba(27, 38, 59, 0.7); /* Azul Muteado */
  --bg: #f7f7f9;         /* Fondo Claro */
  --white: #ffffff;
  
  /* Escala Tipográfica (Corporate Scale - Optimized for Legal Clarity) */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --size-base: 16px;
  --h1: clamp(1.75rem, 5vw, 2.25rem);
  --h2: clamp(1.5rem, 4vw, 1.85rem);
  --h3: clamp(1.3rem, 3vw, 1.55rem);
  --h4: clamp(1.1rem, 2vw, 1.25rem);
  --h5: 1.1rem;
  --h6: 1rem;
  
  --radius: 8px;
  --gap: 30px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: var(--size-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary) !important;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: var(--h1); letter-spacing: -0.02em; }
h2 { font-size: var(--h2); letter-spacing: -0.01em; }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

p {
  margin-bottom: 1.5em;
}

/* Regla para secciones con fondo azul para que el texto sea blanco */
[style*="background: var(--primary)"] h1,
[style*="background: var(--primary)"] h2,
[style*="background: var(--primary)"] h3,
[style*="background: var(--primary)"] h4,
[style*="background: var(--primary)"] h5,
[style*="background: var(--primary)"] h6,
[style*="background: var(--primary)"] p,
[style*="background: var(--primary)"] div {
  color: #ffffff !important;
}

[style*="background: linear-gradient"] h1,
[style*="background: linear-gradient"] h2,
[style*="background: linear-gradient"] h3,
[style*="background: linear-gradient"] p {
  color: #ffffff !important;
}

/* Top Bar */
.top-bar {
  background: var(--primary);
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1001;
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 11px; /* Más pequeño y elegante */
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 400;
}

.top-bar-left {
  display: flex;
  gap: 25px;
}

.top-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-highlight {
  color: var(--accent);
  font-weight: 700;
  border-left: 1px solid rgba(212, 175, 55, 0.4);
  padding-left: 20px;
  margin-left: 5px;
}

.top-bar i {
  color: var(--accent);
  margin-right: 8px;
  font-size: 12px;
}

.home .top-bar {
  background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: none;
}

/* Responsivo para el Top Bar */
@media (max-width: 768px) {
  .top-bar-flex {
    flex-direction: column;
    gap: 8px;
    padding: 12px 0;
    text-align: center;
  }
  
  .top-bar-left, .top-bar-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .top-bar-highlight {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    display: block;
    width: 100%;
    font-size: 10px;
  }
}

/* Solo en HOME es transparente y absoluto */
.home .header-wrap {
  position: absolute;
  top: 41px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: none;
}

.home .header-wrap .brand {
  color: var(--white);
}

.home .header-wrap .main-nav a {
  color: var(--white);
}

.home .header-wrap .main-nav a:hover {
  color: var(--accent) !important;
}

/* Header Styles - Default (Fixed/Internal Pages) */
.header-wrap {
  width: 100%;
  background: var(--white);
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-wrap .brand {
  color: var(--primary);
}

.header-wrap .main-nav a {
  color: var(--primary);
}

.header-wrap .main-nav a:hover {
  color: var(--accent) !important;
}

/* Sticky Header (Floating on scroll) */
.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transform: translateY(-100%);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1001;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.sticky-header .brand {
  color: var(--primary);
}

.sticky-header .main-nav a {
  color: var(--primary);
}

.sticky-header.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto; /* Habilitar cuando es visible */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.sticky-header .nav-container {
  height: 70px;
}

/* Brand / Logo */
.brand {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

/* Main Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav li {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.main-nav a:hover {
  color: var(--accent) !important;
}

.has-dropdown > a {
  cursor: default;
}

/* Dropdown Menu */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(10px);
  background: white;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 15px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1002;
  border-top: 3px solid var(--accent);
}

.dropdown-menu a {
  display: block;
  padding: 12px 25px;
  text-transform: none;
  font-size: 14px;
  color: #333 !important;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #f9f9f9;
  padding-left: 30px;
}

/* CTA Button */
.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 12px 25px !important;
  border-radius: 4px;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: #0D1321; /* Versión más oscura del primario */
  color: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile Nav & Utilities */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  z-index: 1003;
}

/* Global Responsive Utilities */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

/* New Responsive Helpers */
.flex-responsive {
  display: flex;
  gap: 20px;
}

.grid-responsive {
  display: grid;
  gap: 30px;
}

@media (max-width: 980px) {
  .flex-responsive {
    flex-direction: column;
  }
  
  .grid-responsive {
    grid-template-columns: 1fr !important;
  }
  
  /* Global force stack for common inline styles */
  div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  
  div[style*="display: flex"][style*="justify-content: space-around"],
  div[style*="display: flex"][style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quote-box {
    flex-direction: column;
    text-align: center;
    gap: 15px !important;
    padding: 30px 20px !important;
  }

  .quote-icon {
    font-size: 2.5rem !important;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .nav-container { height: 75px; }
  
  .mobile-nav-toggle {
    display: block;
  }
  /* ... existing main-nav mobile styles ... */

  /* Main Nav for mobile */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    padding: 80px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    z-index: 1002;
    overflow-y: auto;
    pointer-events: none; /* Inactivo por defecto si no está abierto */
    visibility: hidden;
  }

  .main-nav.is-open {
    right: 0;
    pointer-events: auto; /* Activo al abrir */
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }

  .main-nav li {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav a {
    padding: 18px 0;
    width: 100%;
    color: var(--primary) !important;
    border-bottom: 1px solid #f5f5f5;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 20px;
    display: none; /* Hide by default in mobile, show on click/toggle */
    min-width: 0;
    border-top: none;
    border-left: 2px solid var(--accent);
    margin-top: 5px;
    margin-bottom: 15px;
  }

  .has-dropdown.is-active .dropdown-menu {
    display: block;
  }

  .has-dropdown > a::after {
    content: '\f107'; /* FontAwesome angle down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  .has-dropdown.is-active > a::after {
    transform: rotate(180deg);
  }

  .nav-cta {
    margin-top: 25px;
    text-align: center;
    background: var(--accent) !important;
    color: var(--primary) !important;
  }
}

@media (max-width: 600px) {
  .top-bar { display: none; } /* Ocultar barra de contacto en móviles muy pequeños */
  .home .header-wrap { top: 0; }
  
  .slide-title { font-size: 1.8rem; }
  .slide-text { font-size: 1rem; }
  .main-btn { padding: 12px 25px !important; font-size: 0.9rem !important; }
}

main {
  padding-top: 0;
}

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  background: #090e18;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-disclaimer {
  max-width: 800px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.4;
  padding-bottom: 20px;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

main {
  padding-top: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { 
  max-width: 100%; 
  height: auto; 
  display: block; /* Helps with alignment and spacing */
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.hero-carousel {
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: white;
  background: var(--primary);
}

.carousel-inner {
  height: 100%;
  width: 100%;
}

.hero-carousel .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-carousel .slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-carousel .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 38, 59, 0.4); /* Capa base azul oscura */
  z-index: 1;
}

.hero-carousel .overlay::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 2;
}

.hero-carousel .slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(27, 38, 59, 0.6); /* Color azul oscuro base */
  background-blend-mode: multiply; /* Oscurece la imagen sin afectar el texto */
}

.hero-carousel .content {
  position: relative;
  z-index: 3;
  padding: 0 5%;
  max-width: 1000px;
}

/* Slide Content Improvements */
.slide-badge {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
}

.slide-title {
  font-size: clamp(2.15rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 25px;
  color: #ffffff !important;
  font-weight: 700;
}

.slide-text {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 750px;
  margin-bottom: 35px;
  opacity: 0.95;
  color: #ffffff !important;
  line-height: 1.6;
}

.slide-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Eventos Custom Post Type */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.event-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative; /* Importante para que el link crezca */
}

.event-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

.event-thumb {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* Una proporción más alta para fotos de eventos o flyers */
  overflow: hidden;
  background: #f0f2f5; /* Fondo neutro para cuando la foto no llena todo el espacio */
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mostrar la imagen COMPLETA sin recortar nada */
  object-position: center;
  transition: transform 0.6s ease;
  padding: 10px; /* Un pequeño margen interno para que no pegue a los bordes */
}

.event-card:hover .event-thumb img { transform: scale(1.1); }

.thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.event-thumb .overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(27, 38, 59, 0.8), transparent);
}

.event-date {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 4px;
  z-index: 2;
}

.event-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-size: 1.35rem !important;
  margin-bottom: 12px !important;
  line-height: 1.3;
}

.event-title a {
  color: var(--primary);
  text-decoration: none;
}

/* El truco del link completo */
.event-title a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.event-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.event-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
  margin-top: auto;
  position: relative;
  z-index: 2; /* Para que el botón de like y comentarios sea clickeable por encima del link general */
}

.comment-count {
  background: var(--primary);
  color: #ffffff !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.comment-count i {
  color: var(--accent);
}

.comment-count:hover {
  background: var(--secondary);
}

.like-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #e74c3c;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.like-btn.loading { opacity: 0.5; pointer-events: none; }
.like-btn i { transition: transform 0.2s ease; }
.like-btn:hover i { transform: scale(1.2); }

.main-btn {
  padding: 18px 40px !important;
  font-size: 1.1rem !important;
  font-weight: 600;
}

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

.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 10;
}

.carousel-dots .dot {
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.carousel-dots .dot.active {
  background: var(--accent);
  width: 60px;
  box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
}

.hero-carousel h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-carousel p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--primary) !important;
  font-weight: 700;
  border-radius: 4px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent) !important;
  transform: translateY(-2px);
}

.btn-white-outline {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 4px;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.btn-white-outline:hover {
  background: #ffffff;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--primary) !important;
  border: 2px solid var(--primary);
  border-radius: 4px;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white !important;
  transform: translateY(-2px);
}

.bg-pattern {
  background-image: radial-gradient(var(--accent) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
  background-color: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h1,
.section-title h2,
.archive-header h1,
.archive-header h2,
.event-hero h1 {
  font-size: 2.5rem;
  color: var(--primary) !important;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--muted);
  font-size: 1.1rem;
}

.section {
  padding: 60px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

.blog-card .content { padding: 18px; }

.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0 0 0;
  margin-top: 60px;
  border-top: 4px solid var(--accent);
}

.notice {
  background: #fff7e0;
  border-left: 4px solid var(--accent);
  padding: 16px;
  border-radius: 6px;
  color: var(--text);
}

.button {
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--secondary);
}

/* --- SECCIÓN DE COMENTARIOS PREMIUM --- */
.comments-area {
    padding-top: 0;
    margin-top: 20px;
}

#respond { 
    margin-top: 10px; 
    padding: 30px 0; 
    background: transparent; 
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    margin-bottom: 40px;
}

#reply-title { 
    font-size: var(--h3); 
    font-weight: 700;
    margin-bottom: 30px; 
    color: var(--primary); 
    display: flex;
    align-items: center;
    gap: 15px;
}

#reply-title::before {
    content: '\f27b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent);
    font-size: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .comment-form {
        grid-template-columns: 1fr 1fr;
    }
    .comment-form-comment, .form-submit, #reply-title, .comment-notes, .logged-in-as {
        grid-column: span 2;
    }
}

.comment-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input, .comment-form textarea {
    width: 100%; 
    padding: 16px; 
    border: 2px solid #eef0f2; 
    border-radius: 8px; 
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.comment-form input:focus, .comment-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.comment-form .submit {
    background: var(--primary) !important; 
    color: #fff !important; 
    border: none !important; 
    padding: 18px 45px !important; 
    border-radius: 6px !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    cursor: pointer !important; 
    transition: all 0.4s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.comment-form .submit:hover { 
    background: var(--accent) !important; 
    color: var(--primary) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2) !important;
}

.comment-list { list-style: none; padding: 0; margin-top: 40px; }
.comment { 
    margin-bottom: 15px; 
    padding: 20px 25px; 
    background: #fff; 
    border: 1px solid #f0edeb; 
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}
.comment:hover {
    transform: translateX(4px);
}
.comment .avatar { display: none; } /* Asegurar que no hay foto */

.comment-author cite { 
    font-style: normal; 
    font-weight: 800; 
    font-size: 1.05rem; 
    color: var(--primary); 
    display: block;
    margin-bottom: 2px;
}
.comment-meta { 
    font-size: 0.75rem; 
    color: var(--accent); 
    margin-bottom: 12px; 
    text-transform: uppercase; 
    letter-spacing: 1.2px; 
    font-weight: 600;
}
.comment-content { 
    color: var(--text); 
    line-height: 1.6; 
    font-size: 0.95rem; 
    border-top: 1px solid #f9f9f9;
    padding-top: 10px;
    margin-bottom: 15px;
}

.reply {
    text-align: right;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #f8f9fa;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    border: 1px solid #eef0f2;
    transition: all 0.3s ease;
}

.comment-reply-link::before {
    content: '\f3e5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.comment-reply-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 20, 33, 0.15);
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    margin-top: 20px;
}

/* Paginación de Comentarios Premium */
.comment-navigation {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #eee;
    display: flex;
    justify-content: center;
}

.comment-navigation .nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment-navigation a.page-numbers, 
.comment-navigation span.page-numbers {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 6px;
    background: #fcfcfd;
    border: 1px solid #eef0f2;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.comment-navigation a.page-numbers:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.comment-navigation span.page-numbers.current {
    background: var(--primary);
    color: var(--accent);
    border-color: var(--primary);
    font-weight: 800;
}

.comment-navigation .prev.page-numbers,
.comment-navigation .next.page-numbers {
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.comment-navigation .prev i,
.comment-navigation .next i {
    font-size: 0.7rem;
}
