/* ============================================
   FRONTEND - VARIABLES Y BASE
   ============================================ */

:root {
  /* Paleta Black & White */
  --bg-light: #FBF6F0;
  --bg-dark: #000000;

  --text-light: #0a0a0a;
  --text-dark: #ffffff;

  --accent: #222222;
  --accent-light: #e5e5e5;

  /* Color acento */
  --color-accent: #E0CDEB;

  /* Superficies Light */
  --color-surface-light: #ffffff;
  --color-surface-alt-light: #f5f0e8;

  /* Superficies Dark */
  --color-surface-dark: #080808;
  --color-surface-alt-dark: #2a2a2a;

  /* Tipografías */
  --font-serif: 'Baskervville', serif;
  --font-sans: 'Jost', sans-serif;

  /* Sistema responsive */
  --site-width: 1200px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;

  /* Easing para animaciones */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s var(--ease-smooth);
}

/* Animaciones FadeInUp/FadeInDown */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

.link-animated {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover .link-animated,
.article-card .link-animated:hover {
  background-size: 100% 1.5px;
}

/* Links en contenido de artículo */
.article-content a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
  text-decoration: none;
}

[data-theme="light"] .article-content a {
  color: #78350f;
}

[data-theme="dark"] .article-content a {
  color: #E0CDEB;
}

.article-content a:hover {
  background-size: 100% 1.5px;
}

/* Párrafos en contenido de artículo */
.article-content p {
  margin-bottom: var(--space-5);
}

.article-content p+p {
  margin-top: var(--space-5);
}

/* Títulos en contenido de artículo */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
}

/* Imágenes en contenido de artículo */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 7px;
}

/* Extracto con drop cap */
.article-excerpt {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  margin-bottom: var(--space-5);
  line-height: 1.8;
  font-style: italic;
}

.article-excerpt::first-letter {
  font-size: 2.5em;
  float: left;
  line-height: 0.8;
  margin-right: 0.15em;
  margin-top: 0.1em;
  font-weight: 700;
}

[data-theme="light"] .article-excerpt::first-letter {
  color: var(--text-light);
}

[data-theme="dark"] .article-excerpt::first-letter {
  color: var(--text-dark);
}

/* Extracto en cards */
.card-excerpt {
  font-size: 1rem;
  margin-bottom: var(--space-4);
  opacity: 0.85;
  flex-grow: 1;
  line-height: 1.6;
}

@keyframes fadeInDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Card hover effects & Link animations */
.article-card {
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

/* Masonry Layout */
.articles-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.articles-masonry .article-card {
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.article-card:hover .card-image-hover,
.article-card:hover .card-img-hover {
  transform: scale(1.08);
}

.article-card:hover .link-animated {
  background-size: 100% 2px;
}

/* Swiper card hover */
.swiper-slide .article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.swiper-slide .article-card:hover .card-img-hover {
  transform: scale(1.08);
}

.swiper-slide .article-card:hover .link-animated {
  background-size: 100% 2px;
}

/* Link Effect (Títulos) */
.article-card h3 .link-effect {
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
}

.article-card:hover h3 .link-effect {
  background-size: 100% 1.5px;
  color: var(--color-accent);
}

/* Botón Leer Más en Cards */
.article-btn {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
  margin-top: auto;
  align-self: flex-start;
}

.article-btn-text {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.article-btn-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.article-card:hover .article-btn {
  transform: translateY(0);
  opacity: 1;
}

.article-btn:hover .article-btn-line {
  transform: scaleX(1);
}

.article-btn:not(:hover) .article-btn-line {
  transform-origin: right;
  transition: transform 0.3s ease;
}

/* Modo actual */
[data-theme="light"] {
  --bg-color: var(--bg-light);
  --text-color: var(--text-light);
  --border-color: rgba(0, 0, 0, 0.1);
  --btn-bg: var(--text-light);
  --btn-text: var(--bg-light);
  --color-surface: var(--color-surface-light);
  --color-surface-alt: var(--color-surface-alt-light);
  --color-accent: #78350f;
}

[data-theme="dark"] {
  --bg-color: var(--bg-dark);
  --text-color: var(--text-dark);
  --border-color: rgba(255, 255, 255, 0.1);
  --btn-bg: var(--text-dark);
  --btn-text: var(--bg-dark);
  --color-surface: var(--color-surface-dark);
  --color-surface-alt: var(--color-surface-alt-dark);
  --color-accent: #E0CDEB;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none !important;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
  color: inherit;
  text-decoration: none !important;
}

/* Container general */
.container {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn:hover {
  background-color: transparent;
  color: var(--btn-bg);
  text-decoration: none !important;
}

/* Formularios Floating Frontend */
.form-group {
  position: relative;
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
}

.form-control {
  width: 100%;
  padding: 16px 14px;
  background: transparent !important;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--text-color);
}

.form-label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  background-color: transparent;
  padding: 0 4px;
  color: rgba(120, 120, 120, 0.8);
  font-size: 0.95rem;
  transition: transform 0.2s ease-out, font-size 0.2s ease-out, background-color 0.2s, top 0.2s;
  pointer-events: none;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-weight: 500;
}

textarea.form-control {
  padding-top: 24px;
}

textarea.form-control~.form-label {
  top: 24px;
}

textarea.form-control:focus~.form-label,
textarea.form-control:not(:placeholder-shown)~.form-label {
  top: 8px;
}

.form-control::placeholder {
  color: transparent;
}

.form-control:focus::placeholder {
  color: rgba(120, 120, 120, 0.4);
}

/* Evitar fondo amarillo de Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--bg-color) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* SweetAlert Theme Overrides */
div:where(.swal2-container) div:where(.swal2-popup) {
  background: var(--bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

div:where(.swal2-container) h2:where(.swal2-title) {
  color: var(--text-color);
}

div:where(.swal2-container) div:where(.swal2-html-container) {
  color: var(--text-color);
  opacity: 0.8;
}

/* Scroll Top Button - Flecha Animada */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 0;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn .btn {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}

.scroll-top-btn .btn .circle {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top-btn .btn .circle .bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 1.5;
}

.scroll-top-btn .btn .circle .progress {
  fill: none;
  stroke: var(--text-color);
  stroke-width: 1.5;
  stroke-dasharray: 301;
  stroke-dashoffset: 301;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.scroll-top-btn:hover .btn .circle .progress {
  stroke-dashoffset: 0;
}

.scroll-top-btn .btn .arrow {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(-90deg);
  background: transparent;
}

.scroll-top-btn .btn .arrow::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  background: var(--text-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease;
}

.scroll-top-btn .btn .arrow::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--text-color);
  border-right: 1.5px solid var(--text-color);
  top: 50%;
  left: 50%;
  transform: translate(-60%, -50%) rotate(45deg);
  transition: transform 0.3s ease;
}

.scroll-top-btn:hover .btn .arrow::before {
  width: 20px;
}

.scroll-top-btn:hover .btn .arrow::after {
  transform: translate(-30%, -50%) rotate(45deg);
}

/* ─── TRANSICIONES DE SECCIÓN ─── */
main.fade-out {
  animation: fadeOutDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ─── SWIPER NAV BUTTONS ─── */
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  top: 40%;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.swiper-button-next .btn,
.swiper-button-prev .btn {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
}

.swiper-button-next .btn .circle,
.swiper-button-prev .btn .circle {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.swiper-button-next .btn .circle .bg,
.swiper-button-prev .btn .circle .bg {
  fill: none;
  stroke: #555;
  stroke-width: 1.5;
}

.swiper-button-next .btn .circle .progress,
.swiper-button-prev .btn .circle .progress {
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-dasharray: 301;
  stroke-dashoffset: 301;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.swiper-button-next:hover .btn .circle .progress,
.swiper-button-prev:hover .btn .circle .progress {
  stroke-dashoffset: 0;
}

.swiper-button-next .btn .arrow,
.swiper-button-prev .btn .arrow {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Derecha */
.swiper-button-next .btn .arrow::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  background: #aaa;
  top: 50%;
  left: 50%;
  transform: translate(-55%, -50%);
  transition: width 0.3s ease, background 0.3s ease;
}

.swiper-button-next .btn .arrow::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #aaa;
  border-right: 1.5px solid #aaa;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -50%) rotate(45deg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.swiper-button-next:hover .btn .arrow::before {
  width: 20px;
  background: #000;
}

.swiper-button-next:hover .btn .arrow::after {
  border-color: #000;
  transform: translate(-30%, -50%) rotate(45deg);
}

/* Izquierda */
.swiper-button-prev .btn .arrow::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1.5px;
  background: #aaa;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, background 0.3s ease;
}

.swiper-button-prev .btn .arrow::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #000;
  border-left: 1.5px solid #000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.swiper-button-prev:hover .btn .arrow::before {
  width: 20px;
  background: #000;
}

.swiper-button-prev:hover .btn .arrow::after {
  border-color: #000;
  transform: translate(-70%, -50%) rotate(-45deg);
}

/* Modo Dark */
[data-theme="dark"] .swiper-button-next .btn .arrow::before {
  background: #fff;
}

[data-theme="dark"] .swiper-button-next .btn .arrow::after {
  border-top-color: #fff;
  border-right-color: #fff;
}

[data-theme="dark"] .swiper-button-next:hover .btn .arrow::before {
  background: #fff;
}

[data-theme="dark"] .swiper-button-next:hover .btn .arrow::after {
  border-color: #fff;
}

[data-theme="dark"] .swiper-button-prev .btn .arrow::before {
  background: #fff;
}

[data-theme="dark"] .swiper-button-prev .btn .arrow::after {
  border-top-color: #fff;
  border-left-color: #fff;
}

[data-theme="dark"] .swiper-button-prev:hover .btn .arrow::before {
  background: #fff;
}

[data-theme="dark"] .swiper-button-prev:hover .btn .arrow::after {
  border-color: #fff;
}

/* ============================================
   ESTILOS DE MÓDULOS FRONTEND
   ============================================ */

/* Page Header */
.page-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
}

.page-header h1,
.page-header h2 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.category-title-name {
  text-transform: capitalize;
}

.page-header p {
  font-family: var(--font-sans);
  opacity: 0.8;
  font-weight: 300;
}

/* Container */
.container {
  padding: var(--space-8) var(--space-4);
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.container-wide {
  max-width: 900px;
  margin: 0 auto;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-title h2 {
  font-size: 2.5rem;
  font-style: italic;
}

.section-title .divider {
  width: 40px;
  height: 2px;
  background: var(--text-color);
  margin: var(--space-3) auto 0;
}

/* Grid Systems */
.grid-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.grid-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* Article Card */
.article-card {
  border: 1px solid var(--border-color);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  background: var(--bg-color);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-card .card-image {
  height: 200px;
  background: var(--border-color);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.article-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.article-card:hover .card-image img {
  transform: scale(1.05);
}

.article-card .card-image-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ddd 0%, #aaa 100%);
  transition: transform 0.5s var(--ease-smooth);
  background-size: cover;
  background-position: center;
}

.article-card:hover .card-image-fallback {
  transform: scale(1.05);
}

.article-card .card-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
  opacity: 0.7;
}

.article-card .card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  line-height: 1.3;
  font-family: var(--font-serif);
  font-weight: 400;
}

.article-card .card-title span {
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover .card-title span {
  background-size: 100% 1.5px;
  color: var(--color-accent);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-card .card-title a {
  text-decoration: none;
  color: inherit;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-position: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.4s ease;
}

.article-card:hover .card-title a,
.article-card:hover .card-title {
  color: var(--color-accent);
}

.article-card:hover .card-title a {
  background-size: 100% 2px;
}

.article-card .card-excerpt {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.article-card .card-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Article Content */
.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-header {
  text-align: center;
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--border-color);
}

.article-header .meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
  opacity: 0.7;
}

.article-header h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-4);
}

.article-header .info {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0.8;
}

.article-image {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-6) 0;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.article-tags {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.article-tags-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  padding-top: 5px;
}

.article-tags a {
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.article-tags a:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

.article-nav {
  margin-top: var(--space-8);
  display: flex;
  justify-content: space-between;
}

.article-nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.7;
}

.article-nav a:hover {
  opacity: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
}

.pagination a.active {
  background: var(--text-color);
  color: var(--bg-color);
}

.pagination a.inactive {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.pagination .ellipsis {
  opacity: 0.5;
}

/* Filter Tags */
.filter-tags {
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-4) 0;
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.filter-tags a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.filter-tags a:hover,
.filter-tags a.active {
  background: var(--text-color);
  color: var(--bg-color);
}

[data-theme="light"] .filter-tags a.active {
  background: var(--text-light);
  color: var(--bg-light);
}

[data-theme="dark"] .filter-tags a.active {
  background: var(--text-dark);
  color: var(--bg-dark);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-8) 0;
}

.empty-state p {
  font-size: 1.1rem;
  opacity: 0.7;
}

.empty-state .btn {
  margin-top: var(--space-4);
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: start;
}

.about-sidebar {
  text-align: center;
}

.about-image {
  margin: 0 auto var(--space-6);
  width: 260px;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-image .placeholder-icon {
  width: 80px;
  height: 80px;
  opacity: 0.1;
}

.about-social {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.about-content {
  padding: 50px;
}

.about-content .bio {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.8;
}

.about-footer {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Contact Page */
.contact-header {
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-6) 0;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) 0;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-form .btn-submit {
  align-self: flex-start;
}

/* Estilos específicos para el botón de enviar en modo claro */
[data-theme="light"] .btn-submit {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

[data-theme="light"] .btn-submit:hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #000000;
}

/* About Page Social Links */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.social-link:hover {
  background: var(--text-color);
  color: var(--bg-color);
  opacity: 1;
  transform: translateY(-3px);
}

/* Botones */
.btn-cv {
  background: var(--text-color);
  color: var(--bg-color);
  width: 100%;
}

.btn-primary-dark {
  background: var(--text-color);
  color: var(--bg-color);
}

[data-theme="dark"] .btn-cv,
[data-theme="dark"] .btn-primary-dark {
  background: #ffffff;
  color: #000000;
}

[data-theme="light"] .btn-cv,
[data-theme="light"] .btn-primary-dark {
  background: #000000;
  color: #ffffff;
}

/* ============================================
   NEWSLETTER SECTION STYLES (ya migrado a style.css)
   ============================================ */

/* Newsletter Section */
.newsletter-section {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  margin: var(--space-8) var(--space-4);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 {
  font-size: 2rem;
  font-style: italic;
  margin-bottom: var(--space-3);
}

.newsletter-inner p {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-6) 0;
  margin-top: var(--space-8);
  text-align: center;
}

.site-footer p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: inline-block;
}

.breadcrumb-separator {
  opacity: 0.5;
  margin: 0 var(--space-2);
}

.breadcrumb-link {
  color: var(--text-color);
}

/* 404 Page */
.not-found {
  padding: 10rem 0;
  text-align: center;
}

/* Main Content */
main {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  padding: 0 var(--space-4);
}

main.main-full-width {
  padding: 0;
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero h1 {
  font-size: 4.5rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto var(--space-5);
}

/* Swiper Container */
.swiper-container {
  padding-bottom: var(--space-6);
}

/* Responsive */
@media (max-width: 768px) {

  .page-header h1,
  .article-header h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .about-content {
    padding: var(--space-4);
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3rem;
  }
}

/* Switcher */
.theme-switch {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  overflow: hidden;
  position: relative;
  width: 40px;
  height: 40px;
}

.theme-switch svg {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

[data-theme="light"] .icon-moon {
  transform: translateY(100%);
  opacity: 0;
}

[data-theme="light"] .icon-sun {
  transform: translateY(0);
  opacity: 1;
}

[data-theme="dark"] .icon-sun {
  transform: translateY(-100%);
  opacity: 0;
}

[data-theme="dark"] .icon-moon {
  transform: translateY(0);
  opacity: 1;
}

/* Navbar */
.navbar {
  padding: 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--bg-color);
}

.navbar .container {
  padding: 0.75rem 20px;
}

.navbar.scrolled .container {
  padding: 0.5rem 20px;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mobile-theme-toggle {
  display: none;
}

.nav-links {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  padding: 2px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

[data-theme="light"] .nav-links a::after {
  background: #000000;
}

[data-theme="dark"] .nav-links a::after {
  background: #ffffff;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:not(:hover)::after {
  transform-origin: right;
  transition: transform 0.3s ease;
}

.submenu a {
  position: relative;
  display: inline-block;
  padding: 2px 0;
}

.submenu a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

[data-theme="light"] .submenu a::after {
  background: #000000;
}

[data-theme="dark"] .submenu a::after {
  background: #ffffff;
}

.submenu a:hover::after {
  transform: scaleX(1);
}

.submenu a:not(:hover)::after {
  transform-origin: right;
  transition: transform 0.3s ease;
}

.mobile-nav-links a {
  display: inline-block;
  padding: 2px 0;
  position: relative;
}

.mobile-nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

[data-theme="light"] .mobile-nav-links a::after {
  background: #000000;
}

[data-theme="dark"] .mobile-nav-links a::after {
  background: #ffffff;
}

.mobile-nav-links a:hover::after {
  transform: scaleX(1);
}

.mobile-nav-links a:not(:hover)::after {
  transform-origin: right;
  transition: transform 0.3s ease;
}

/* Submenu */
.nav-item {
  position: relative;
}

.main-full-width {
  max-width: 100% !important;
}

.main-full-width .container {
  max-width: 100% !important;
}

.nav-item.has-submenu>a::after {
  content: '▼';
  font-size: 0.6rem;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  list-style: none;
  padding: var(--space-2) 0;
  min-width: 180px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-item:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li {
  padding: 0;
}

.submenu a {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  position: relative;
}

.submenu a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

[data-theme="light"] .submenu a::after {
  background: #000000;
}

[data-theme="dark"] .submenu a::after {
  background: #ffffff;
}

.submenu a:hover {
  background: var(--color-surface);
}

.submenu a:hover::after {
  transform: scaleX(1);
}

.submenu a:not(:hover)::after {
  transform-origin: right;
  transition: transform 0.3s ease;
}

/* Modo Máscara Transición */
.theme-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.8, 0, 0.2, 1);
}

.theme-mask.active {
  transform: scaleY(1);
}

.theme-mask.dark-bg {
  background-color: var(--bg-dark);
}

.theme-mask.light-bg {
  background-color: var(--bg-light);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1003;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin: 3px 0;
  position: relative;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Sidebar */
.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sidebar {
  position: fixed;
  top: 50px;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: var(--bg-color);
  border-left: 1px solid var(--border-color);
  z-index: 1002;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: var(--space-6) var(--space-4);
}

.mobile-sidebar.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links a {
  display: block;
  padding: var(--space-2) 0;
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: color 0.2s ease;
}

.mobile-nav-links a:hover {
  color: var(--color-accent);
}

/* Breadcrumb Links */
.breadcrumb-link {
  position: relative;
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-block;
  padding: 2px 6px;
}

.breadcrumb-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1.5px;
  left: 0;
  bottom: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

[data-theme="light"] .breadcrumb-link::after {
  background: #000000;
}

[data-theme="dark"] .breadcrumb-link::after {
  background: #ffffff;
}

.breadcrumb-link:hover {
  color: var(--text-color);
}

.breadcrumb-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.breadcrumb-link:not(:hover)::after {
  transform-origin: right;
  transition: transform 0.3s ease;
}

/* Mobile Submenu */
.mobile-nav-item {
  position: relative;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-item>div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-item>a {
  flex: 1;
}

.mobile-submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text-color);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-submenu-toggle.active {
  transform: rotate(180deg);
}

.mobile-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.mobile-submenu.active {
  max-height: 500px;
  opacity: 1;
}

.mobile-submenu li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-submenu li:last-child {
  border-bottom: none;
}

.mobile-submenu li a {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .navbar {
    z-index: 1004;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-theme-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .mobile-sidebar-overlay {
    display: block;
  }
}

/* ============================================
   MIGRATED INLINE STYLES
   ============================================ */

/* Breadcrumb Wrapper */
.breadcrumb-wrapper {
  text-align: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-color);
  margin: var(--space-4) 0 var(--space-4) 0;
}

.breadcrumb-current {
  color: var(--text-color);
}

/* 404 Page */
.not-found-title {
  font-size: 8rem;
  line-height: 1;
  margin-bottom: var(--space-4);
  font-family: var(--font-sans);
  letter-spacing: -5px;
}

.not-found-subtitle {
  font-size: 2rem;
  margin-bottom: var(--space-6);
  font-family: var(--font-serif);
  font-style: italic;
}

.not-found-text {
  max-width: 500px;
  margin: 0 auto var(--space-6);
  font-weight: 300;
  opacity: 0.8;
}

/* Filter Bar (articulos page) */
.filter-bar {
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-4) 0;
}

.filter-bar .container {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.btn-filter {
  padding: 0.5rem 1rem;
}

.btn-filter-inactive {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

/* Active filter button text colors */
[data-theme="light"] .btn-filter.btn-primary {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

[data-theme="dark"] .btn-filter.btn-primary {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

/* Card Image Small Variant (related articles) */
.card-image--small {
  height: 150px;
}

/* Swiper padding */
.mySwiper {
  padding-bottom: var(--space-6);
}

/* ============================================
   CATEGORY CARDS (migrated from inicio.php)
   ============================================ */
.category-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  text-decoration: none;
  min-height: 280px;
}

.category-card .category-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card:hover .category-bg {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
  transition: opacity 0.3s ease;
}

.category-content {
  position: relative;
  z-index: 1;
  padding: var(--space-6);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  transition: transform 0.4s ease;
}

.category-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.category-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
  transform: translateY(0);
  transition: transform 0.4s ease;
  color: #ffffff;
}

.category-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: var(--space-3);
  line-height: 1.5;
  max-height: 3em;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
  color: #cccccc;
}

.category-btn {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  position: relative;
}

.category-btn-text {
  position: relative;
  z-index: 1;
  display: inline-block;
}

.category-btn-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: #ffffff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.category-card:hover .category-content {
  transform: translateY(-8px);
}

.category-card:hover .category-label,
.category-card:hover .category-title,
.category-card:hover .category-desc {
  transform: translateY(-4px);
}

.category-card:hover .category-btn {
  transform: translateY(0);
  opacity: 1;
}

.category-card:hover .category-desc {
  opacity: 0;
  transform: translateY(-10px);
}

.category-btn:hover .category-btn-line {
  transform: scaleX(1);
}

.category-btn:not(:hover) .category-btn-line {
  transform-origin: right;
  transition: transform 0.3s ease;
}

.category-fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

[data-theme="light"] .category-card {
  background: var(--color-surface);
  border: 1px solid var(--border-color);
}

[data-theme="dark"] .category-card .category-fallback {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

[data-theme="dark"] .category-card .category-title,
[data-theme="dark"] .category-card .category-desc,
[data-theme="dark"] .category-card .category-btn,
[data-theme="dark"] .category-card .category-label {
  color: #ffffff;
}

[data-theme="dark"] .category-card .category-desc {
  color: #cccccc;
}

/* ============================================
   RELATED SECTION (migrated from articulo.php)
   ============================================ */
.related-section {
  border-top: 1px solid var(--border-color);
  padding: var(--space-8) 0;
}

/* Article detail page excerpt override */
article .article-excerpt {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

/* ============================================
   NEWSLETTER OVERRIDES (migrated from newsletter.php)
   ============================================ */
.newsletter-section .form-group {
  position: relative;
  margin-bottom: var(--space-3);
}

.newsletter-section .form-label {
  position: absolute;
  top: 14px;
  left: 12px;
  background-color: var(--bg-color);
  padding: 0 var(--space-1);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  pointer-events: none;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  margin: 0;
}

.newsletter-section .form-group:has(input:focus) .form-label,
.newsletter-section .form-group:has(input:not(:placeholder-shown)) .form-label {
  top: -8px;
  left: 12px;
  font-size: 11px;
  color: var(--color-accent);
}

.newsletter-section .form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
  color: var(--text-color);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none !important;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.newsletter-section .form-control::placeholder {
  color: transparent;
}

.newsletter-section .form-control:-webkit-autofill,
.newsletter-section .form-control:-webkit-autofill:hover,
.newsletter-section .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset !important;
  -webkit-text-fill-color: var(--text-color) !important;
  caret-color: var(--text-color) !important;
}

.newsletter-section .form-control:focus {
  border-color: var(--color-accent);
}

.newsletter-section .form-control::-webkit-autofill {
  background-color: var(--bg-color) !important;
}

/* ============================================
   CONFIRMAR PAGE (migrated from confirmar.php)
   ============================================ */
.confirmar-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
  text-align: center;
}

.confirmar-icono {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
}

.confirmar-icono.exito {
  background: #d4af37;
}

.confirmar-icono.error {
  background: #666;
}

.confirmar-icono svg {
  width: 40px;
  height: 40px;
  fill: #fff;
}

.confirmar-titulo {
  font-size: 2rem;
  font-style: italic;
  margin-bottom: var(--space-3);
  color: var(--text-color);
}

.confirmar-mensaje {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.confirmar-btn {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--text-color);
  color: var(--bg-color);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

.confirmar-btn:hover {
  opacity: 0.8;
}