/* ==========================================================================
   Fallas.es — Custom Theme Styles for Grav (Quark 2)
   ========================================================================== */

:root {
  --q2-accent: #c82333;
  --q2-accent-contrast: #ffffff;
  --q2-link: #c82333;
  --q2-focus-ring: color-mix(in oklab, #c82333 45%, transparent);
}

:root[data-theme='dark'] {
  --q2-accent: #e63946;
  --q2-accent-contrast: #ffffff;
  --q2-link: #ff6b6b;
  --q2-focus-ring: color-mix(in oklab, #e63946 45%, transparent);
}

/* --------------------------------------------------------------------------
   Header & Brand (Logo Prominente)
   -------------------------------------------------------------------------- */
#header {
  padding: 0.75rem 0;
  transition: padding 0.25s ease, background 0.25s ease;
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
}

.navbar-section.logo {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
  text-decoration: none;
}

/* Forzar tamaño prominente de 80px sobreescribiendo el 28px de Quark 2 */
.navbar-brand img,
.navbar-brand svg {
  height: 80px !important;
  max-height: 80px !important;
  width: auto !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.25s ease !important;
  display: block !important;
}

.navbar-brand:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(200, 35, 51, 0.25) !important;
}

/* Header compacto al hacer scroll */
#header.scrolled,
#header.header-animated.scrolled {
  padding: 0.35rem 0;
}

#header.scrolled .navbar-brand img,
#header.header-animated.scrolled .navbar-brand img {
  height: 52px !important;
  max-height: 52px !important;
}

#header.scrolled .navbar {
  min-height: 58px;
}

@media (max-width: 600px) {
  .navbar-brand img,
  .navbar-brand svg {
    height: 62px !important;
    max-height: 62px !important;
  }
  .navbar {
    min-height: 70px;
  }
}

/* Ocultar elementos sobrantes del esqueleto demo antiguo */
.navigation a[href*="typography"],
.navigation a[href$="/home"] {
  display: none !important;
}

/* Ocultar migas de pan (breadcrumbs) con máxima prioridad */
nav[aria-label*="navegaci"],
nav[aria-label*="Navegaci"],
nav[aria-label="Breadcrumb"],
.breadcrumbs,
ol.breadcrumbs {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reducir espacio superior en el listado de noticias para subir el bloque titular */
#body-wrapper.blog-listing {
  padding-top: 1.25rem !important;
}

/* --------------------------------------------------------------------------
   Blog / Cabecera y Eslogan (Centrado matemáticamente y elevado)
   -------------------------------------------------------------------------- */
.blog-page-header {
  margin: 0.5rem auto 2.5rem;
  max-width: 820px;
  width: 100%;
  text-align: center;
  position: relative;
}

.blog-page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111111;
  margin-bottom: 0.75rem;
  line-height: 1.15;
  text-align: center;
}

.blog-page-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.blog-page-intro p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #495057;
  margin: 0;
  text-align: center;
}

.blog-page-intro p strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #c82333;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  text-align: center;
}

/* Divisor sutil bajo el eslogan */
.blog-page-header::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #c82333;
  margin: 1.75rem auto 0;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Blog / Grid de Noticias
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: var(--q2-card-bg, #ffffff);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

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

.card-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.card-header {
  padding: 1.25rem 1.25rem 0.5rem;
}

.card-title h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.25rem 0 0;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

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

.card-subtitle {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.card-subtitle .blog-date i {
  margin-right: 0.25rem;
  color: var(--q2-accent);
}

.card-body {
  padding: 0.5rem 1.25rem 1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #495057;
  flex-grow: 1;
}

/* Evitar títulos H1/H2 duplicados dentro del extracto de la tarjeta de portada */
.blog-grid .card-body > h1,
.blog-grid .card-body > h2,
.blog-grid .card-body h1:first-child,
.card .card-body > h1:first-child {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
}

/* Evitar que se duplique la imagen dentro del extracto si ya está en la cabecera */
.card:has(.card-image) .card-body p:first-child:has(img),
.card:has(.card-image) .card-body img {
  display: none !important;
}

.card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.tags .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: rgba(200, 35, 51, 0.08);
  color: #c82333;
  text-decoration: none;
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
  transition: background 0.15s ease;
}

.tags .label:hover {
  background: rgba(200, 35, 51, 0.18);
}

/* --------------------------------------------------------------------------
   Paginación
   -------------------------------------------------------------------------- */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination li a,
.pagination li span {
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.pagination li.active span {
  background: var(--q2-accent);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Lectura de Noticia Individual (item - Diseño Editorial)
   Secuencia: Imagen -> Titular -> Metadatos (Fecha/Tags) -> Cuerpo
   -------------------------------------------------------------------------- */
#blog-hero {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

.single-article {
  padding-top: 1.5rem !important;
}

.single-article .content-item {
  max-width: 860px;
  margin: 0 auto;
}

.article-featured-image {
  margin: 0 0 1.75rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.article-featured-image img,
.article-featured-image .featured-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.article-title {
  font-size: clamp(2rem, 3.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #111111;
  margin: 0 0 1rem 0;
}

:root[data-theme='dark'] .article-title {
  color: #ffffff;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9rem;
  color: #6c757d;
}

:root[data-theme='dark'] .article-meta {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  color: #999999;
}

.article-meta .blog-date i {
  color: var(--q2-accent);
  margin-right: 0.35rem;
}

/* Ocultar el primer H1 dentro del contenido para evitar duplicar el título */
.article-body > h1:first-child,
.e-content > h1:first-child,
.single-article .e-content h1:first-of-type {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #2c3e50;
}

:root[data-theme='dark'] .article-body {
  color: #d0d0d0;
}

.article-body p {
  margin-bottom: 1.35rem;
}

.article-body a {
  color: var(--q2-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Modo Oscuro
   -------------------------------------------------------------------------- */
:root[data-theme='dark'] .blog-page-header h1 {
  color: #ffffff;
}

:root[data-theme='dark'] .blog-page-intro p {
  color: #c5c5c5;
}

:root[data-theme='dark'] .blog-page-intro p strong {
  color: #ff6b6b;
}

:root[data-theme='dark'] .card {
  background: #1b1b1e;
  border-color: rgba(255, 255, 255, 0.08);
}

:root[data-theme='dark'] .card-body {
  color: #c5c5c5;
}

:root[data-theme='dark'] .card-subtitle {
  color: #8c8c8c;
}

:root[data-theme='dark'] .tags .label {
  background: rgba(230, 57, 70, 0.18);
  color: #ff858d;
}

:root[data-theme='dark'] .card-footer {
  border-color: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Selector de Idioma (ES | EN)
   -------------------------------------------------------------------------- */
.langswitcher {
  display: inline-flex !important;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 0.85rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.langswitcher .lang-btn {
  color: #555555;
  text-decoration: none;
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
  line-height: 1.2;
  transition: all 0.15s ease;
}

.langswitcher .lang-btn.active {
  color: #ffffff !important;
  background: var(--q2-accent) !important;
}

.langswitcher .lang-btn:hover:not(.active) {
  color: var(--q2-accent);
}

.langswitcher .lang-sep {
  color: rgba(0, 0, 0, 0.25);
  font-size: 0.75rem;
  user-select: none;
}

:root[data-theme='dark'] .langswitcher {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

:root[data-theme='dark'] .langswitcher .lang-btn {
  color: #bbbbbb;
}

:root[data-theme='dark'] .langswitcher .lang-btn.active {
  color: #ffffff !important;
  background: var(--q2-accent) !important;
}

:root[data-theme='dark'] .langswitcher .lang-sep {
  color: rgba(255, 255, 255, 0.25);
}

.mobile-lang-wrapper {
  margin: 1.25rem 0;
}

/* --------------------------------------------------------------------------
   Buscador (SimpleSearch & Estilos de Búsqueda)
   -------------------------------------------------------------------------- */
.blog-search-bar {
  margin: 1.5rem auto 1rem;
  max-width: 680px;
  width: 100%;
}

.search-wrapper {
  width: 100%;
}

.search-form {
  margin: 0;
  width: 100%;
}

.search-input-container {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--q2-card-bg, #ffffff);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  padding: 0.35rem 0.45rem 0.35rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

:root[data-theme='dark'] .search-input-container {
  background: #1b1b1e;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.search-input-container:focus-within {
  border-color: var(--q2-accent);
  box-shadow: 0 0 0 4px var(--q2-focus-ring);
}

.search-input-container .search-icon {
  color: #888888;
  font-size: 1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

:root[data-theme='dark'] .search-input-container .search-icon {
  color: #aaaaaa;
}

.search-input-container input.search-input,
.search-input-container input[type="text"].search-input,
.search-input-container input[type="search"].search-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  line-height: normal !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: var(--q2-accent) !important;
  width: 100% !important;
  height: auto !important;
  min-height: unset !important;
  margin: 0 !important;
  padding: 0.5rem 0.5rem 0.5rem 0.25rem !important;
  opacity: 1 !important;
  visibility: visible !important;
}

:root[data-theme='dark'] .search-input-container input.search-input,
:root[data-theme='dark'] .search-input-container input[type="text"].search-input,
:root[data-theme='dark'] .search-input-container input[type="search"].search-input {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.search-input-container input.search-input::placeholder {
  color: #8c8c8c !important;
  -webkit-text-fill-color: #8c8c8c !important;
  opacity: 0.85 !important;
}

.search-input-container .search-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--q2-accent) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 0.5rem 1.25rem !important;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-input-container .search-submit:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* Botón de búsqueda en cabecera desktop */
.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: inherit;
  text-decoration: none !important;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-right: 0.5rem;
  transition: all 0.2s ease;
}

:root[data-theme='dark'] .header-search-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.header-search-btn:hover {
  background: var(--q2-accent);
  color: #ffffff !important;
  border-color: var(--q2-accent);
  transform: scale(1.05);
}

/* Página de resultados de búsqueda */
.search-results-page .search-results-header {
  margin-bottom: 2.5rem;
}

.search-page-box {
  max-width: 680px;
  margin: 1.25rem auto 1rem;
}

.search-feedback-text {
  font-size: 1.1rem;
  color: #555555;
  margin-top: 1rem;
}

:root[data-theme='dark'] .search-feedback-text {
  color: #bbbbbb;
}

.search-feedback-text strong {
  color: var(--q2-accent);
}

.search-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--q2-card-bg, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  max-width: 600px;
  margin: 2rem auto;
}

:root[data-theme='dark'] .search-empty-state {
  background: #1b1b1e;
  border-color: rgba(255, 255, 255, 0.08);
}

.search-empty-state .empty-icon {
  font-size: 3rem;
  color: var(--q2-accent);
  opacity: 0.7;
  margin-bottom: 1rem;
}

.search-empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.search-empty-state p {
  color: #666666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

:root[data-theme='dark'] .search-empty-state p {
  color: #aaaaaa;
}

.btn-primary-fallas {
  display: inline-block;
  background: var(--q2-accent);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-primary-fallas:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Pie de Página (Footer Rediseñado)
   -------------------------------------------------------------------------- */
#footer {
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #495057;
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}

:root[data-theme='dark'] #footer {
  background: #141416;
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #a0a0a5;
}

.footer-content-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1.25fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme='dark'] .footer-grid {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111111;
}

:root[data-theme='dark'] .footer-brand-name {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 440px;
}

.footer-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #6c757d;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  line-height: 1.4;
}

:root[data-theme='dark'] .footer-badge {
  background: rgba(255, 255, 255, 0.04);
  color: #8c8c8c;
}

.footer-badge i {
  color: var(--q2-accent);
  margin-top: 0.15rem;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.15rem;
  color: #111111;
  position: relative;
}

:root[data-theme='dark'] .footer-heading {
  color: #ffffff;
}

.footer-heading::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--q2-accent);
  margin-top: 0.4rem;
  border-radius: 1px;
}

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

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a i {
  font-size: 0.85rem;
  color: var(--q2-accent);
  width: 16px;
  text-align: center;
}

.footer-links a:hover {
  color: var(--q2-accent);
  transform: translateX(3px);
}

.footer-disclaimer-note {
  font-size: 0.82rem;
  margin-top: 1.25rem;
  color: #8c8c8c;
  line-height: 1.4;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.88rem;
  color: #6c757d;
  flex-wrap: wrap;
  gap: 1rem;
}

:root[data-theme='dark'] .footer-bottom {
  color: #8c8c8c;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

:root[data-theme='dark'] .back-to-top {
  background: rgba(255, 255, 255, 0.06);
}

.back-to-top:hover {
  background: var(--q2-accent);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Páginas Legales (Aviso Legal, Privacidad, Cookies)
   -------------------------------------------------------------------------- */
.legal-page-wrapper {
  padding-top: 2rem !important;
  padding-bottom: 3rem !important;
}

.legal-content-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--q2-card-bg, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 2.5rem 3rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

:root[data-theme='dark'] .legal-content-card {
  background: #1b1b1e;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
  .legal-content-card {
    padding: 1.75rem 1.25rem;
    border-radius: 8px;
  }
}

.legal-content-card h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--q2-accent);
}

:root[data-theme='dark'] .legal-content-card h1 {
  color: #ffffff;
}

.legal-content-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content-card p,
.legal-content-card li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
}

:root[data-theme='dark'] .legal-content-card p,
:root[data-theme='dark'] .legal-content-card li {
  color: #cccccc;
}

.legal-content-card a {
  color: var(--q2-link);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Formulario de Contacto (Antispam & Estilos de Campos)
   -------------------------------------------------------------------------- */
.contact-form-card form {
  margin-top: 2rem;
}

.contact-form-card .form-field {
  margin-bottom: 1.5rem;
}

.contact-form-card .form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #222222;
}

:root[data-theme='dark'] .contact-form-card .form-label {
  color: #eeeeee;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: var(--q2-card-bg, #ffffff);
  color: inherit;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme='dark'] .contact-form-card input[type="text"],
:root[data-theme='dark'] .contact-form-card input[type="email"],
:root[data-theme='dark'] .contact-form-card textarea {
  background: #232328;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f0f0f0;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  outline: none;
  border-color: var(--q2-accent);
  box-shadow: 0 0 0 4px var(--q2-focus-ring);
}

/* Ocultar campo honeypot antispam */
.form-field-honeypot,
.antispam_hp,
.contact-form-card [class*="honeypot"] {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Mensajes de éxito / error */
.form-message,
.alert-success,
.alert.alert-success {
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

:root[data-theme='dark'] .alert-success {
  background: rgba(46, 125, 50, 0.2);
  border-color: rgba(46, 125, 50, 0.4);
  color: #81c784;
}

.contact-form-card .buttons {
  margin-top: 1.75rem;
}
