/*
Theme Name:  FronteraVeracruz — Editorial
Theme URI:   https://fronteraveracruz.com
Description: Child theme del tema Kadence para FronteraVeracruz.com. Estilo editorial rojo/negro. Requiere el tema padre Kadence instalado y activo.
Author:      FronteraVeracruz.com
Author URI:  https://fronteraveracruz.com
Template:    kadence
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fronteraveracruz-child
Tags:        news, magazine, editorial, dark
*/

/* ═══════════════════════════════════════════════════════════════
   TABLA DE CONTENIDO
   1.  CSS Custom Properties (tokens de diseño)
   2.  Reset & Base
   3.  Tipografía
   4.  Header & Logo
   5.  Barra superior "Breaking / Categorías"
   6.  Navegación principal
   7.  Hero / Banner principal
   8.  Grid de noticias – Tarjetas de post
   9.  Post individual (artículo)
  10.  Sidebar & Widgets
  11.  Footer
  12.  Botones y CTAs
  13.  Formularios
  14.  Etiquetas de categoría (badges)
  15.  Responsive / Mobile
  16.  Animaciones
   ════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════
   1. CSS CUSTOM PROPERTIES
   ══════════════════════════════════════════════════════ */
:root {
  /* ── Kadence palette override ── */
  --global-palette1: #C41E3A;   /* rojo principal */
  --global-palette2: #A01830;   /* rojo hover */
  --global-palette3: #FFFFFF;   /* blanco */
  --global-palette4: #E8E0E0;   /* off-white */
  --global-palette5: #888888;   /* gris medio */
  --global-palette6: #444444;   /* gris oscuro */
  --global-palette7: #1A0505;   /* fondo secundario */
  --global-palette8: #0D0D0D;   /* fondo principal */
  --global-palette9: #161010;   /* superficie cards */

  /* ── Variables propias ── */
  --fv-bg:           #0D0D0D;
  --fv-bg2:          #1A0505;
  --fv-surface:      #161010;
  --fv-surface2:     #1E1212;
  --fv-border:       #2A1515;
  --fv-red:          #C41E3A;
  --fv-red-hover:    #A01830;
  --fv-red-dim:      #8B0000;
  --fv-red-bg:       rgba(196,30,58,0.08);
  --fv-gold:         #F5C842;
  --fv-white:        #FFFFFF;
  --fv-off:          #E8E0E0;
  --fv-muted:        #888888;
  --fv-dimmer:       #555555;

  /* ── Tipografía ── */
  --fv-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --fv-font-serif:   Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --fv-font-sans:    'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;

  /* ── Espaciado ── */
  --fv-radius:  2px;
  --fv-shadow:  0 2px 12px rgba(0,0,0,0.6);
}


/* ══════════════════════════════════════════════════════
   2. RESET & BASE
   ══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--fv-bg) !important;
  color: var(--fv-off) !important;
  font-family: var(--fv-font-sans) !important;
  font-size: 15px;
  line-height: 1.7;
}

/* Kadence body class override */
.wp-site-blocks,
.entry-content-wrap,
#page,
.site {
  background-color: var(--fv-bg) !important;
}

/* Links globales */
a {
  color: var(--fv-off);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--fv-red); }

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid var(--fv-border);
  margin: 2rem 0;
}

/* Selección de texto */
::selection {
  background: var(--fv-red);
  color: var(--fv-white);
}

/* Scrollbar personalizada (Webkit) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--fv-bg); }
::-webkit-scrollbar-thumb { background: var(--fv-red-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fv-red); }


/* ══════════════════════════════════════════════════════
   3. TIPOGRAFÍA
   ══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
  font-family: var(--fv-font-display) !important;
  color: var(--fv-white) !important;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(28px, 4vw, 52px); letter-spacing: -1px; }
h2 { font-size: clamp(22px, 3vw, 38px); letter-spacing: -0.5px; }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; }

p { margin-bottom: 1.2rem; color: var(--fv-off); }

.entry-content p {
  font-family: var(--fv-font-serif);
  font-size: 17px;
  line-height: 1.85;
  color: #d4c8c8;
}

blockquote {
  border-left: 4px solid var(--fv-red) !important;
  background: var(--fv-surface) !important;
  padding: 1.5rem 1.5rem 1.5rem 2rem !important;
  margin: 2rem 0 !important;
  font-family: var(--fv-font-serif);
  font-style: italic;
  color: var(--fv-off) !important;
}

blockquote p { color: var(--fv-off) !important; }

code, pre {
  background: var(--fv-surface2) !important;
  color: #F5C842 !important;
  border: 1px solid var(--fv-border);
  border-radius: var(--fv-radius);
}


/* ══════════════════════════════════════════════════════
   4. HEADER & LOGO
   ══════════════════════════════════════════════════════ */

/* Barra roja arriba del header */
#masthead::before,
.site-header::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--fv-red);
  width: 100%;
}

/* Header principal */
#masthead,
.site-header,
.kadence-header,
header.site-header {
  background-color: var(--fv-bg) !important;
  border-bottom: 1px solid var(--fv-border) !important;
  box-shadow: none !important;
}

/* Header sticky */
.kadence-sticky-header,
.site-header.sticky,
#masthead.sticky {
  background-color: rgba(13,13,13,0.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Logo */
.site-logo img,
.custom-logo,
.kadence-logo img {
  max-height: 80px !important;
  width: auto !important;
}

/* Site title (cuando no hay logo imagen) */
.site-title,
.site-title a {
  font-family: var(--fv-font-display) !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  color: var(--fv-white) !important;
  letter-spacing: -1px !important;
  text-transform: uppercase;
}

.site-description {
  font-size: 11px !important;
  letter-spacing: 3px !important;
  color: var(--fv-red) !important;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════
   5. BARRA SUPERIOR — BREAKING NEWS / ÚLTIMAS
   ══════════════════════════════════════════════════════ */

/* Si usas un plugin de breaking news o el Kadence top-bar */
.header-top-bar,
.kadence-top-bar,
#top-bar {
  background-color: var(--fv-red) !important;
  color: var(--fv-white) !important;
  font-size: 12px;
  letter-spacing: 1px;
}

.header-top-bar a,
.kadence-top-bar a { color: var(--fv-white) !important; }

/* Ticker/marquee de noticias de última hora */
.breaking-news-ticker,
.td-breaking-news {
  background: var(--fv-red) !important;
  color: var(--fv-white) !important;
  font-family: var(--fv-font-serif);
  font-weight: bold;
  letter-spacing: 2px;
}

.breaking-news-ticker .breaking-label {
  background: var(--fv-bg) !important;
  color: var(--fv-red) !important;
  border: 1px solid var(--fv-red);
  padding: 2px 10px;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════
   6. NAVEGACIÓN PRINCIPAL
   ══════════════════════════════════════════════════════ */
.main-navigation,
.primary-menu-container,
.kadence-navigation,
#site-navigation {
  background-color: var(--fv-bg) !important;
}

/* Items de menú */
.main-navigation ul li a,
.primary-navigation .menu-item > a,
.kadence-navigation .menu-item > a,
nav.main-navigation a {
  font-family: var(--fv-font-sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: var(--fv-muted) !important;
  padding: 10px 14px !important;
  transition: color 0.2s !important;
}

.main-navigation ul li a:hover,
.primary-navigation .menu-item > a:hover,
.kadence-navigation .menu-item > a:hover {
  color: var(--fv-white) !important;
  background: transparent !important;
}

/* Item activo */
.main-navigation ul li.current-menu-item > a,
.kadence-navigation .menu-item.current-menu-item > a {
  color: var(--fv-red) !important;
  border-bottom: 2px solid var(--fv-red);
}

/* Submenús (dropdown) */
.main-navigation ul ul,
.sub-menu,
.kadence-navigation .sub-menu {
  background-color: var(--fv-surface) !important;
  border: 1px solid var(--fv-border) !important;
  border-top: 3px solid var(--fv-red) !important;
  box-shadow: var(--fv-shadow) !important;
}

.main-navigation ul ul li a,
.sub-menu li a,
.kadence-navigation .sub-menu li a {
  color: var(--fv-off) !important;
  font-size: 11px !important;
  border-bottom: 1px solid var(--fv-border) !important;
}

.main-navigation ul ul li a:hover,
.sub-menu li a:hover {
  background-color: var(--fv-red-bg) !important;
  color: var(--fv-red) !important;
}

/* Hamburger (móvil) */
.menu-toggle,
.kadence-menu-toggle,
button.menu-toggle {
  background: transparent !important;
  color: var(--fv-white) !important;
  border: 1px solid var(--fv-border) !important;
}

.menu-toggle:hover { border-color: var(--fv-red) !important; }

/* Menú móvil abierto */
.main-navigation.toggled ul,
.kadence-navigation.toggled .nav-menu {
  background-color: var(--fv-surface) !important;
  border-top: 3px solid var(--fv-red) !important;
}


/* ══════════════════════════════════════════════════════
   7. HERO / BANNER PRINCIPAL (featured post)
   ══════════════════════════════════════════════════════ */

/* Post destacado grande */
.featured-post,
.hero-post,
.kadence-hero,
.wp-block-cover.is-featured {
  background-color: var(--fv-surface) !important;
}

/* Overlay de imagen destacada */
.featured-post .entry-thumbnail::after,
.hero-post .post-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.4) 60%, transparent 100%);
}


/* ══════════════════════════════════════════════════════
   8. TARJETAS DE POST / LOOP / GRID
   ══════════════════════════════════════════════════════ */

/* Contenedor de posts */
.site-main,
main#main,
.content-area,
.kadence-posts-grid {
  background-color: var(--fv-bg) !important;
}

/* Tarjeta individual */
article.post,
.post-card,
.kadence-post-grid-item,
.entry,
.type-post {
  background-color: var(--fv-surface) !important;
  border: 1px solid var(--fv-border) !important;
  border-radius: var(--fv-radius) !important;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  margin-bottom: 24px;
}

article.post:hover,
.post-card:hover,
.kadence-post-grid-item:hover {
  border-color: var(--fv-red) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196,30,58,0.15) !important;
}

/* Borde superior rojo en tarjeta */
article.post::before,
.kadence-post-grid-item::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--fv-red);
}

/* Thumbnail / imagen de la tarjeta */
.post-thumbnail,
.post-card .entry-thumbnail,
.kadence-post-grid-item .entry-image-link {
  overflow: hidden;
  display: block;
}

.post-thumbnail img,
.post-card img,
.kadence-post-grid-item img {
  transition: transform 0.4s ease;
  width: 100%;
  height: auto;
  display: block;
}

article.post:hover .post-thumbnail img,
.kadence-post-grid-item:hover img {
  transform: scale(1.04);
}

/* Título del post en tarjeta */
.entry-title a,
.post-card .entry-title a,
.kadence-post-grid-item .entry-title a {
  font-family: var(--fv-font-display) !important;
  color: var(--fv-white) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  transition: color 0.2s;
}

.entry-title a:hover { color: var(--fv-red) !important; }

/* Excerpt */
.entry-summary,
.post-card .entry-excerpt,
.kadence-post-grid-item .entry-summary {
  color: var(--fv-muted) !important;
  font-size: 14px;
  line-height: 1.6;
}

/* Meta (fecha, autor, categoría) */
.entry-meta,
.post-meta,
.kadence-post-meta {
  font-size: 11px !important;
  color: var(--fv-dimmer) !important;
  letter-spacing: 1px;
}

.entry-meta a,
.post-meta a { color: var(--fv-muted) !important; }
.entry-meta a:hover { color: var(--fv-red) !important; }

/* Separador de meta */
.entry-meta .sep { color: var(--fv-border) !important; }

/* Contenedor de contenido dentro de tarjeta */
.post-card-inner,
.entry-body,
.kadence-post-grid-item .entry-content-area {
  padding: 20px !important;
  background: var(--fv-surface) !important;
}


/* ══════════════════════════════════════════════════════
   9. POST INDIVIDUAL (artículo completo)
   ══════════════════════════════════════════════════════ */

/* Cabecera del artículo */
.entry-header,
.single .entry-header {
  background: var(--fv-surface) !important;
  padding: 40px !important;
  border-bottom: 1px solid var(--fv-border) !important;
  position: relative;
}

.entry-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--fv-red);
}

/* Título del artículo */
.single .entry-title {
  font-size: clamp(26px, 4vw, 48px) !important;
  letter-spacing: -1px !important;
  line-height: 1.1 !important;
  color: var(--fv-white) !important;
  margin-bottom: 20px !important;
}

/* Imagen destacada del artículo */
.single .post-thumbnail {
  margin-bottom: 0 !important;
  position: relative;
}

.single .post-thumbnail img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* Pie de foto */
figcaption,
.wp-caption-text {
  font-size: 12px !important;
  color: var(--fv-dimmer) !important;
  font-style: italic;
  padding: 6px 12px;
  background: var(--fv-surface2);
  border-left: 3px solid var(--fv-red);
}

/* Navegación entre posts */
.post-navigation,
.nav-links {
  border-top: 1px solid var(--fv-border) !important;
  padding-top: 2rem !important;
}

.nav-links .nav-previous a,
.nav-links .nav-next a {
  color: var(--fv-muted) !important;
  font-size: 13px;
  letter-spacing: 1px;
}

.nav-links .nav-previous a:hover,
.nav-links .nav-next a:hover { color: var(--fv-red) !important; }

/* Related posts */
.related-posts,
.kadence-related-posts {
  background: var(--fv-surface) !important;
  border: 1px solid var(--fv-border) !important;
  border-top: 3px solid var(--fv-red) !important;
  padding: 24px !important;
  margin-top: 40px !important;
}

.related-posts h3,
.kadence-related-posts-title {
  font-size: 11px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--fv-red) !important;
  margin-bottom: 20px !important;
}

/* Área de comentarios */
#comments {
  background: var(--fv-surface) !important;
  border: 1px solid var(--fv-border) !important;
  border-top: 3px solid var(--fv-red) !important;
  padding: 32px !important;
  margin-top: 40px !important;
}

#comments h2 {
  font-size: 14px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--fv-red) !important;
}

.comment-body {
  border-bottom: 1px solid var(--fv-border) !important;
  padding-bottom: 20px !important;
}

.comment-author .fn { color: var(--fv-white) !important; }
.comment-date,
.comment-metadata { color: var(--fv-dimmer) !important; font-size: 12px !important; }
.comment-content p { color: var(--fv-off) !important; }


/* ══════════════════════════════════════════════════════
  10. SIDEBAR & WIDGETS
   ══════════════════════════════════════════════════════ */

.widget-area,
#secondary,
.sidebar {
  background: transparent !important;
}

/* Widget individual */
.widget,
.kadence-widget {
  background: var(--fv-surface) !important;
  border: 1px solid var(--fv-border) !important;
  border-top: 3px solid var(--fv-red) !important;
  padding: 20px !important;
  margin-bottom: 24px !important;
}

/* Título del widget */
.widget-title,
.widgettitle,
.widget .wp-block-heading {
  font-size: 11px !important;
  font-family: var(--fv-font-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--fv-red) !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid var(--fv-border) !important;
}

/* Lista de widgets (recent posts, categories, etc.) */
.widget ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.widget ul li {
  border-bottom: 1px solid var(--fv-border) !important;
  padding: 8px 0 !important;
  font-size: 13px;
}

.widget ul li:last-child { border-bottom: none !important; }

.widget ul li a {
  color: var(--fv-off) !important;
  font-family: var(--fv-font-sans);
}

.widget ul li a:hover { color: var(--fv-red) !important; }

/* Widget search */
.widget_search input[type="search"],
.search-form input {
  background: var(--fv-bg) !important;
  border: 1px solid var(--fv-border) !important;
  color: var(--fv-white) !important;
  padding: 10px 14px !important;
  font-family: var(--fv-font-sans) !important;
  width: 100%;
}

.widget_search input:focus { border-color: var(--fv-red) !important; outline: none; }

.widget_search input::placeholder { color: var(--fv-dimmer) !important; }

.widget_search .search-submit,
.search-form button {
  background: var(--fv-red) !important;
  color: var(--fv-white) !important;
  border: none !important;
  padding: 10px 18px !important;
  font-family: var(--fv-font-sans);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}


/* ══════════════════════════════════════════════════════
  11. FOOTER
   ══════════════════════════════════════════════════════ */

#colophon,
.site-footer,
footer.site-footer,
.kadence-footer {
  background-color: #0A0404 !important;
  border-top: 3px solid var(--fv-red) !important;
  color: var(--fv-muted) !important;
}

/* Widget areas del footer */
.footer-widgets,
.footer-widget-area,
.kadence-footer-widgets {
  background: #0A0404 !important;
  padding: 48px 0 !important;
  border-bottom: 1px solid var(--fv-border) !important;
}

.footer-widget-area .widget-title,
.footer-widget-area .widgettitle {
  color: var(--fv-red) !important;
}

.footer-widget-area .widget {
  background: transparent !important;
  border: none !important;
  border-top: none !important;
  padding: 0 !important;
}

.footer-widget-area ul li {
  border-bottom-color: #1A0A0A !important;
}

/* Barra inferior del footer */
.site-info,
.footer-bottom,
.kadence-footer-bottom {
  background: #050202 !important;
  color: #444 !important;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 16px 0 !important;
  text-align: center;
}

.site-info a { color: var(--fv-dimmer) !important; }
.site-info a:hover { color: var(--fv-red) !important; }


/* ══════════════════════════════════════════════════════
  12. BOTONES Y CTAs
   ══════════════════════════════════════════════════════ */

.button,
.wp-block-button__link,
.btn,
input[type="submit"],
button[type="submit"],
.kadence-button {
  background-color: var(--fv-red) !important;
  color: var(--fv-white) !important;
  border: none !important;
  border-radius: var(--fv-radius) !important;
  font-family: var(--fv-font-sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 12px 24px !important;
  cursor: pointer;
  transition: background 0.2s !important;
}

.button:hover,
.wp-block-button__link:hover,
.btn:hover,
input[type="submit"]:hover,
.kadence-button:hover {
  background-color: var(--fv-red-hover) !important;
  color: var(--fv-white) !important;
}

/* Botón "leer más" / "continuar leyendo" */
.more-link,
.read-more-link {
  display: inline-block;
  border: 1px solid var(--fv-border) !important;
  color: var(--fv-muted) !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 6px 16px !important;
  transition: all 0.2s;
}

.more-link:hover,
.read-more-link:hover {
  border-color: var(--fv-red) !important;
  color: var(--fv-white) !important;
  background: var(--fv-red) !important;
}

/* Paginación */
.pagination,
.page-numbers,
.kadence-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 40px 0;
}

.page-numbers a,
.page-numbers span {
  background: var(--fv-surface) !important;
  border: 1px solid var(--fv-border) !important;
  color: var(--fv-muted) !important;
  padding: 8px 14px !important;
  font-size: 13px;
  transition: all 0.2s;
}

.page-numbers a:hover { border-color: var(--fv-red) !important; color: var(--fv-red) !important; }
.page-numbers .current { background: var(--fv-red) !important; border-color: var(--fv-red) !important; color: var(--fv-white) !important; }


/* ══════════════════════════════════════════════════════
  13. FORMULARIOS
   ══════════════════════════════════════════════════════ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  background: var(--fv-bg) !important;
  border: 1px solid var(--fv-border) !important;
  color: var(--fv-white) !important;
  font-family: var(--fv-font-sans) !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  transition: border-color 0.2s;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--fv-red) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(196,30,58,0.15) !important;
}

input::placeholder,
textarea::placeholder { color: var(--fv-dimmer) !important; }

label {
  color: var(--fv-muted) !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}


/* ══════════════════════════════════════════════════════
  14. ETIQUETAS DE CATEGORÍA (BADGES)
   ══════════════════════════════════════════════════════ */

/* Etiqueta de categoría sobre imagen/tarjeta */
.cat-label,
.category-badge,
.entry-category,
.cat-links a,
.term-badge,
.kadence-category-label {
  display: inline-block !important;
  background: var(--fv-red) !important;
  color: var(--fv-white) !important;
  font-family: var(--fv-font-sans) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
  transition: background 0.2s;
}

.cat-label:hover,
.category-badge:hover,
.cat-links a:hover {
  background: var(--fv-red-hover) !important;
  color: var(--fv-white) !important;
}

/* Tags */
.tags-links a,
.tag-cloud-link {
  background: var(--fv-surface2) !important;
  border: 1px solid var(--fv-border) !important;
  color: var(--fv-muted) !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
  padding: 3px 10px !important;
  display: inline-block;
  margin: 3px;
  transition: all 0.2s;
}

.tags-links a:hover,
.tag-cloud-link:hover {
  border-color: var(--fv-red) !important;
  color: var(--fv-red) !important;
}


/* ══════════════════════════════════════════════════════
  15. RESPONSIVE / MOBILE
   ══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .entry-header { padding: 24px !important; }

  .single .entry-title { font-size: clamp(22px, 5vw, 32px) !important; }

  .site-title,
  .site-title a { font-size: 22px !important; }

  article.post,
  .post-card { margin-bottom: 16px; }

  .widget { padding: 16px !important; }

  #comments { padding: 20px !important; }

  .footer-widgets { padding: 32px 0 !important; }

  /* Menú móvil overlay */
  .main-navigation.toggled ul {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(22px, 7vw, 32px); }
  h2 { font-size: clamp(18px, 5vw, 26px); }

  .entry-content p { font-size: 15px; }
}


/* ══════════════════════════════════════════════════════
  16. ANIMACIONES
   ══════════════════════════════════════════════════════ */

/* Aparición de tarjetas al hacer scroll */
@keyframes fv-fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

article.post,
.post-card,
.widget {
  animation: fv-fadeUp 0.5s ease both;
}

/* Stagger para el grid */
article.post:nth-child(2) { animation-delay: 0.05s; }
article.post:nth-child(3) { animation-delay: 0.10s; }
article.post:nth-child(4) { animation-delay: 0.15s; }
article.post:nth-child(5) { animation-delay: 0.20s; }
article.post:nth-child(6) { animation-delay: 0.25s; }


/* ══════════════════════════════════════════════════════
   OVERRIDES ESPECÍFICOS DE KADENCE (bloques Gutenberg)
   ══════════════════════════════════════════════════════ */

/* Fondo de la página en editor de bloques */
.wp-block-group,
.wp-block-columns {
  color: var(--fv-off) !important;
}

/* Separador (hr block) */
.wp-block-separator {
  border-color: var(--fv-border) !important;
}

/* Tabla */
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
}

.wp-block-table td,
.wp-block-table th {
  border: 1px solid var(--fv-border) !important;
  padding: 10px 14px !important;
  color: var(--fv-off) !important;
  background: var(--fv-surface) !important;
}

.wp-block-table th {
  background: var(--fv-surface2) !important;
  color: var(--fv-red) !important;
  font-family: var(--fv-font-sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Pull quote block */
.wp-block-pullquote {
  border-top: 4px solid var(--fv-red) !important;
  border-bottom: 4px solid var(--fv-red) !important;
  background: var(--fv-surface) !important;
  padding: 2rem !important;
}

.wp-block-pullquote blockquote p {
  font-family: var(--fv-font-display);
  color: var(--fv-white) !important;
  font-size: clamp(18px, 3vw, 26px) !important;
}

.wp-block-pullquote cite {
  color: var(--fv-red) !important;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Kadence Blocks override */
.kb-block-info-box {
  background: var(--fv-surface) !important;
  border-color: var(--fv-red) !important;
}

/* ── FIN DEL STYLESHEET ── */
