/*
Theme Name: Asociaciones Aranda
Theme URI: https://asociaciones.arandadeduero.es
Description: Tema a medida, limpio, extremadamente liviano y optimizado para el Portal de Asociaciones de Aranda de Duero. Diseñado con una identidad visual moderna en tonos azules y cianes, con soporte completo para Blog y compatibilidad nativa con WooCommerce.
Version: 1.0.1
Author: Imart
Author URI: https://www.imart.es
Text Domain: asociaciones-aranda
*/

/* ==========================================================================
   1. DESIGN SYSTEM & SYSTEM VARIABLES
   ========================================================================== */

:root {
  /* Color Palette */
  --primary-wine: #2fb4e5;
  --primary-wine-rgb: 47, 180, 229;
  --primary-wine-light: #5bc5ed;
  --primary-wine-dark: #189fcf;

  --accent-gold: #7e1257;
  --accent-gold-light: #a82c7e;
  --accent-gold-dark: #540b3a;

  --bg-cream: #f4faff;
  --bg-white: #ffffff;
  --bg-card-hover: rgba(47, 180, 229, 0.025);

  --text-main: #0f172a;
  --text-muted: #4b607a;
  --text-light: #f1f5f9;

  /* System States */
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #5bc5ed;

  /* Border Tokens */
  --border-subtle: rgba(47, 180, 229, 0.08);
  --border-medium: rgba(47, 180, 229, 0.14);
  --border-focus: rgba(47, 180, 229, 0.5);

  /* Section Accent Gradient */
  --accent-line: linear-gradient(90deg, var(--primary-wine) 0%, var(--primary-wine-light) 100%);

  /* Shadow Elevation System */
  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(47, 180, 229, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(47, 180, 229, 0.10), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px rgba(47, 180, 229, 0.12), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.04);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-title: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & SYSTEM BASE
   ========================================================================== */

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

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Global focus ring */
:focus-visible {
  outline: 2px solid var(--primary-wine);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--primary-wine-dark);
  line-height: 1.25;
  margin-bottom: 0.5em;
}

a {
  color: var(--primary-wine);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-wine-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   3. LAYOUT & CONTAINERS
   ========================================================================== */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex-grow: 1;
  padding: 40px 0;
}

.grid-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-flex-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.main-content-area {
  flex: 1 1 0;
  min-width: 0;
}

.sidebar-area {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .sidebar-area {
    width: 100%;
  }
}

/* ==========================================================================
   4. NAVIGATION & HEADER
   ========================================================================== */

.main-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(215, 228, 237, 0.55);
  position: sticky;
  top: 8px;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.07), 0 1px 4px rgba(47, 180, 229, 0.06);
  border-radius: 32px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: max-content;
  max-width: 95%;
  margin: 8px auto;
}

/* Float header over the full-bleed hero on homepage in WordPress */
body.home .main-header {
  position: fixed;
  top: 8px;
  left: 8px;
  right: 8px;
  width: max-content;
  max-width: 95%;
  margin: 0 auto;
}

/* Mobile menu focus backdrop overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  /* Directly underneath .main-header */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

body.nav-menu-open {
  overflow: hidden;
  /* Lock background scroll */
}

body.nav-menu-open::after {
  opacity: 1;
  pointer-events: auto;
}

body.nav-menu-open .main-header {
  background: #ffffff !important;
  border-color: rgba(47, 180, 229, 0.15) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* WordPress Admin Bar offsets for sticky/fixed floating header */
body.admin-bar .main-header {
  top: 37px;
}

body.admin-bar.home .main-header {
  top: 37px;
}

@media screen and (max-width: 782px) {

  body.admin-bar .main-header,
  body.admin-bar.home .main-header {
    top: 51px;
  }
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary-wine);
  flex-shrink: 0;
}

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

.nav-brand a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Ensure logo images do not break layout */
.nav-logo-img,
.nav-brand img,
.custom-logo-link img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo-icon {
  font-size: 1.8rem;
  background: rgba(47, 180, 229, 0.06);
  padding: 8px;
  border-radius: var(--radius-md);
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 0 8px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-item a,
.nav-menu li a {
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  border-radius: 100px;
  color: var(--text-muted);
  font-family: var(--font-title);
  display: block;
  white-space: nowrap;
  line-height: 1;
}

.nav-item a:hover,
.nav-menu li a:hover {
  color: var(--primary-wine-dark);
  background: rgba(47, 180, 229, 0.07);
}

.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
  color: #ffffff !important;
  background: var(--primary-wine) !important;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(47, 180, 229, 0.28);
}

/* Mobile Nav Trigger & Responsive */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-wine);
  cursor: pointer;
  border: none;
  background: none;
}

@media (max-width: 768px) {
  .main-header {
    width: auto !important;
    margin: 5px 10px !important;
    left: 10px !important;
    right: 10px !important;
  }

  body.home .main-header {
    width: auto !important;
    left: 10px !important;
    right: 10px !important;
    margin: 0 auto !important;
  }

  .navbar {
    flex-wrap: wrap !important;
    gap: 0 10px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu-wrapper {
    width: 100% !important;
    flex-basis: 100% !important;
    display: flex;
    flex-direction: column;
    margin-top: 0;
    padding-top: 0 !important;
    border-top: 0 !important;
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.25s ease-out, padding 0.3s ease-out, margin 0.3s ease-out, border-color 0.3s ease-out;
  }

  .nav-menu-wrapper.is-open {
    max-height: 500px;
    opacity: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top-color: rgba(47, 180, 229, 0.08);
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }

  .nav-menu li {
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
  }

  .nav-menu li a,
  .nav-item a {
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   5. WORDPRESS STANDARD CLASSES
   ========================================================================== */

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

.aligncenter {
  display: block;
  margin: 0 auto 20px auto;
  text-align: center;
}

.clear {
  clear: both;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Page Headers & Titles */
.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-wine);
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   6. BLOG & POST CARDS (Grid System)
   ========================================================================== */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

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

.post-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid rgba(47, 180, 229, 0.03);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 180, 229, 0.08);
}

.post-card-thumbnail {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--primary-wine-dark);
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  font-weight: 500;
}

.post-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--primary-wine);
}

.post-card-title a:hover {
  color: var(--accent-gold-dark);
}

.post-card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-wine-light);
}

.post-card-more:hover {
  color: var(--accent-gold-dark);
}

/* Pagination */
.pagination-area {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.navigation.pagination .nav-links {
  display: flex;
  gap: 8px;
}

.navigation.pagination .page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid rgba(47, 180, 229, 0.08);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: var(--primary-wine);
  color: var(--text-light);
  border-color: var(--primary-wine);
}

/* ==========================================================================
   7. SINGLE POST & PAGES STYLING
   ========================================================================= */

.article-single {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03);
  margin-bottom: 40px;
}

@media (max-width: 576px) {
  .article-single {
    padding: 24px;
  }
}

.article-header {
  margin-bottom: 30px;
}

.article-meta {
  display: flex;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.article-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-wine);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 2rem;
  }
}

.article-thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
}

/* Espaciado del texto editorial. Acotado a los wrappers de contenido para no
   afectar a cabeceras, footer, widgets ni componentes maquetados libremente. */
.page-content p,
.article-content p {
  margin-bottom: 15px;
}

/* El último elemento de bloque no arrastra margen sobrante al cierre del wrapper */
.page-content > *:last-child,
.article-content > *:last-child {
  margin-bottom: 0;
}

/* Base: sin margen superior. Los títulos solo se separan por arriba cuando
   siguen a contenido de prosa (ver regla de hermano adyacente). Así, un título
   que es el primer elemento de una tarjeta/componente o va tras una etiqueta o
   icono no arrastra hueco sobrante encima. */
.page-content :is(h1, h2, h3, h4, h5, h6),
.article-content :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.25;
}

/* Espaciado superior solo en flujo de prosa: cuando el título sigue a un
   párrafo, lista, cita, figura, tabla, etc. */
.page-content :is(p, ul, ol, dl, blockquote, figure, table, pre, hr, img) + :is(h1, h2, h3),
.article-content :is(p, ul, ol, dl, blockquote, figure, table, pre, hr, img) + :is(h1, h2, h3) {
  margin-top: 40px;
}

.page-content :is(p, ul, ol, dl, blockquote, figure, table, pre, hr, img) + :is(h4, h5, h6),
.article-content :is(p, ul, ol, dl, blockquote, figure, table, pre, hr, img) + :is(h4, h5, h6) {
  margin-top: 28px;
}

.page-content blockquote,
.article-content blockquote {
  margin: 28px 0;
  border-left: 0;
  color: var(--text-muted);
  font-style: italic;
}

.page-content blockquote p:last-child,
.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.page-content figure,
.page-content pre,
.page-content table,
.article-content figure,
.article-content pre,
.article-content table {
  margin: 28px 0;
}

.page-content hr,
.article-content hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid rgba(47, 180, 229, 0.12);
}

/* Listas dentro del contenido editorial de páginas y entradas.
   El reset global (* { margin:0; padding:0 }) deja las listas de contenido sin
   sangría ni marcadores; aquí se restauran SOLO dentro de los wrappers de
   contenido. No afecta a menús (header/footer), widgets ni a listas usadas como
   componentes (esas fijan list-style:none / margin:0 / padding:0 en línea, que
   prevalece sobre estas reglas). */
.page-content ul,
.page-content ol,
.article-content ul,
.article-content ol {
  margin: 0 0 24px;
  padding-left: 1.6em;
}

.page-content ul,
.article-content ul {
  list-style: disc;
}

.page-content ol,
.article-content ol {
  list-style: decimal;
}

.page-content li,
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Listas anidadas: sin doble margen externo y con marcador secundario */
.page-content li > ul,
.page-content li > ol,
.article-content li > ul,
.article-content li > ol {
  margin: 8px 0 0;
}

.page-content ul ul,
.article-content ul ul {
  list-style: circle;
}

.article-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(47, 180, 229, 0.08);
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. SIDEBAR & WIDGETS
   ========================================================================== */

.sidebar-widget {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03);
  margin-bottom: 30px;
}

.sidebar-widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-wine);
  border-bottom: 2px solid rgba(47, 180, 229, 0.06);
  padding-bottom: 12px;
  margin-bottom: 20px;
  position: relative;
}

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

.sidebar-widget ul {
  list-style: none;
}

.sidebar-widget ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(47, 180, 229, 0.04);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-widget ul li a {
  color: var(--text-main);
  font-weight: 500;
}

.sidebar-widget ul li a:hover {
  color: var(--primary-wine-light);
}

/* ==========================================================================
   9. FOOTER SECTION
   ========================================================================== */

.main-footer {
  background: #0d1f33;
  color: var(--text-light);
  padding: 56px 0 28px;
  border-top: 2px solid var(--accent-gold);
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget h3,
.footer-widget h4 {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

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

.footer-widget p {
  color: rgba(241, 245, 249, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-widget ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-widget ul a {
  color: rgba(241, 245, 249, 0.8);
  font-size: 0.95rem;
}

.footer-widget ul a:hover {
  color: var(--accent-gold-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(241, 245, 249, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(241, 245, 249, 0.5);
}

.footer-bottom a {
  color: var(--accent-gold-light);
  font-weight: 600;
}

/* Imagen/logo de la primera columna del footer: nunca más ancha de 300px */
.footer-widget-col-1 img {
  max-width: 300px;
  width: auto;
  height: auto;
      margin-bottom: 20px;
}

/* Menú legal de la barra inferior (Aviso legal, Privacidad, Cookies…) */
.footer-legal .footer-legal-widget {
  margin: 0;
}

.footer-legal ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}

.footer-legal li {
  margin: 0;
}

.footer-legal a {
  color: rgba(241, 245, 249, 0.5);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--accent-gold-light);
}

/* ==========================================================================
   10. CUSTOM PORTAL & SNIPPET COMPONENTS (Inicio, Directorio, Casa, Contacto)
   ========================================================================== */

/* Beautiful Interactive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary-wine);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(47, 180, 229, 0.15);
}

.btn-primary:hover {
  background: var(--primary-wine-light);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 180, 229, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-wine);
  border: 2px solid var(--primary-wine);
}

.btn-secondary:hover {
  background: rgba(47, 180, 229, 0.05);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent-gold);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(126, 18, 87, 0.22);
}

.btn-accent:hover {
  background: var(--accent-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(126, 18, 87, 0.30);
      color: #fff;
}

.btn-accent:active {
  transform: translateY(0);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Spinner Loader */
.initial-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(47, 180, 229, 0.1);
  border-left-color: var(--primary-wine);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- HOME VIEW (Snippets) --- */
/* --- HOME VIEW (Snippets) --- */
.hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -40px;
  /* Pull it up to sit flush under the header */
  background: linear-gradient(135deg, #f0f9ff 0%, #fdf4f9 100%);
  padding: 80px 0 60px;
  /* Generous top padding for the header to overlay */
  border-bottom: 1px solid rgba(47, 180, 229, 0.08);
  margin-bottom: 56px;
  overflow: hidden;
  min-height: 75vh;
  display: flex;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* Background video wrapper and elements */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 120%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: -10%;
  left: 0;
  will-change: transform;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.85) 0%, rgba(253, 244, 249, 0.85) 100%);
  z-index: 1;
}

/* Ambient glow blur behind hero elements */
.hero-bg-glow {
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  background: var(--primary-wine-light);
  top: -120px;
  right: -80px;
}

.glow-2 {
  background: var(--accent-gold);
  bottom: -100px;
  left: -120px;
}

/* Land-Book style Pill Badge */
.hero-badge-wrapper {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(47, 180, 229, 0.05);
  border: 1px solid rgba(47, 180, 229, 0.08);
  color: var(--primary-wine);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(47, 180, 229, 0.4);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(47, 180, 229, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(47, 180, 229, 0);
  }
}

/* Gradient Text Effect */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-wine) 20%, var(--primary-wine-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hero Typography Refinements */
.hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: var(--primary-wine-dark);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

/* Hero CTAs */
.hero-cta {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Quote Section (entre el hero y las stats) */
.quote-section {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 0 24px;
  text-align: center;
}

.quote-block {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-style: normal;
}

.quote-text {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text-main);
  margin: 0 0 18px;
  text-wrap: balance;
}

.quote-author {
  display: inline-block;
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.quote-author::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto 14px;
  background: var(--primary-wine);
  border-radius: var(--radius-full);
}

@media (max-width: 1024px) {
  .quote-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .quote-text {
    font-size: 1.15rem;
  }
}

/* Floating Glassmorphic Cards around Hero Image */
.hero-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: 380px;
  width: 100%;
}

.hero-illustration-img {
  max-width: 100%;
  max-height: 42vh;
  object-fit: contain;
  pointer-events: none;
  animation: float-slow-3 10s ease-in-out infinite;
}

@keyframes float-slow-3 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(47, 180, 229, 0.08);
  z-index: 10;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.floating-card-icon {
  font-size: 1.5rem;
  background: rgba(47, 180, 229, 0.06);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.floating-card-info h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-wine-dark);
  margin-bottom: 2px;
}

.floating-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
      margin: 0;
}

/* Floating Card Coordinates & Specific Float Animations */
.card-associations {
  top: 20%;
  left: -40px;
  animation: float-slow-1 7s ease-in-out infinite;
}

.card-events {
  bottom: 40px;
  right: -30px;
  animation: float-slow-2 8s ease-in-out infinite;
}

@keyframes float-slow-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-slow-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 100px 0 40px;
    margin-top: -40px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .floating-card {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Home Stats Block */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 991px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-card {
  background: var(--bg-white);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border-bottom: 3px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--primary-wine);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-wine);
  font-family: var(--font-title);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Categories Section wrapper */
.categories-section {
  margin-bottom: 56px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header-title h2 {
  font-size: 2rem;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

.section-header-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-line);
}

.section-header-title p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

/* Home Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

@media (max-width: 991px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.category-card {
  background: var(--bg-white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(47, 180, 229, 0.02);
  transition: all var(--transition-normal);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 180, 229, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
}

.category-icon {
  font-size: 2.5rem;
  background: rgba(47, 180, 229, 0.05);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
  color: var(--primary-wine);
  transition: all var(--transition-fast);
}

.category-card:hover .category-icon {
  background: var(--primary-wine);
  color: var(--text-light);
  transform: scale(1.05);
}

.category-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Home Split Layout */
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 40px;
  margin-bottom: 56px;
}

@media (max-width: 991px) {
  .home-split {
    grid-template-columns: 1fr;
  }
}

/* --- REGISTRATION CTA (columna derecha de home-split) --- */
.registration-cta {
  background: linear-gradient(135deg, var(--primary-wine-light) 0%, var(--primary-wine-dark) 100%);
  color: var(--text-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.registration-cta-label {
  color: var(--accent-gold-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.registration-cta-title {
  color: var(--bg-white);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.registration-cta-text {
  color: rgba(245, 239, 230, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.registration-cta-btn {
  width: 100%;
}

/* --- WORK / ACTUAR SECTION --- */
.work-section {
  margin-top: 56px;
  margin-bottom: 56px;
  background: var(--bg-white);
  padding: 60px 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03);
}

@media (max-width: 768px) {
  .work-section {
    padding: 30px 20px;
  }
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(47, 180, 229, 0.06);
  padding-bottom: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.work-header-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-wine);
  position: relative;
  padding-bottom: 8px;
}

.work-header-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent-line);
}

.work-header-title p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 8px;
}

.work-logo-img {
  max-height: 55px;
  width: auto;
  filter: drop-shadow(0 4px 6px rgba(47, 180, 229, 0.08));
  transition: transform var(--transition-fast);
}

.work-logo-img:hover {
  transform: scale(1.05);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.work-card {
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(47, 180, 229, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  min-height: 210px;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 180, 229, 0.15);
  background: var(--bg-white);
}

.work-card-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--bg-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  transition: all var(--transition-fast);
  border: 1px solid rgba(47, 180, 229, 0.03);
}

.work-card:hover .work-card-icon-wrapper {
  background: var(--primary-wine);
  transform: scale(1.08);
}

.work-card-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

.work-card:hover .work-card-icon {
  filter: brightness(0) invert(1);
}

.work-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-wine-light);
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card:hover h3 {
  color: var(--primary-wine);
}

.work-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-wine);
  background: rgba(47, 180, 229, 0.05);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  width: 100%;
}

.work-card-btn:hover {
  background: var(--primary-wine);
  color: var(--text-light);
  transform: translateY(-1px);
}



/* --- MODAL DETAIL COMPONENT --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 159, 207, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-light) !important;
  z-index: 999999;
  box-shadow: var(--shadow-sm);
  border: none !important;
  cursor: pointer !important;
  outline: none;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-white) !important;
  color: var(--primary-wine) !important;
  transform: rotate(90deg);
}

.modal-header-bg {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-wine-light) 0%, var(--primary-wine-dark) 100%);
  position: relative;
}

.modal-logo-container {
  width: 100px;
  height: 100px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: -36px;
  left: 32px;
  border: 3px solid var(--bg-white);
  font-size: 3rem;
  overflow: hidden;
}

.modal-logo-container img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.modal-logo-container span {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 56px 32px 32px;
}

.modal-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.modal-title {
  flex: 1;
  min-width: 250px;
}

.modal-title h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-wine) !important;
  margin: 0 !important;
  line-height: 1.2;
}

.modal-badge {
  display: inline-block;
  background: rgba(47, 180, 229, 0.10) !important;
  color: var(--accent-gold-dark) !important;
  padding: 6px 16px !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.modal-desc {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 32px;
  line-height: 1.7;
}

.modal-desc p {
  margin-bottom: 16px;
}

.modal-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg-cream) !important;
  padding: 24px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(47, 180, 229, 0.03) !important;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .modal-info-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .modal-body {
    padding: 48px 20px 24px;
  }
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-wine-light) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0 !important;
}

.info-item p,
.info-item a {
  font-size: 0.95rem;
  color: var(--text-muted) !important;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
}

.info-item a {
  color: var(--primary-wine-light) !important;
  text-decoration: none;
  font-weight: 600;
}

.info-item a:hover {
  color: var(--accent-gold-dark) !important;
  text-decoration: underline;
}


@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

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

/* --- GENERAL INFO VIEW ("INSCRIBETE" / COMO INSCRIBIRSE) --- */
.info-guide-container {
  max-width: 960px;
  margin: 0 auto;
}

.guide-step-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  position: relative;
  border: 1px solid rgba(47, 180, 229, 0.02);
}

@media (max-width: 768px) {
  .guide-step-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }
}

.step-num {
  position: absolute;
  top: -20px;
  left: 48px;
  background: var(--primary-wine);
  color: var(--text-light);
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(47, 180, 229, 0.2);
  border: 3px solid var(--bg-cream);
  font-family: var(--font-title);
}

@media (max-width: 768px) {
  .step-num {
    left: 32px;
  }
}

.step-content h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--primary-wine);
}

.step-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-gold-dark);
  margin-bottom: 20px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.guide-arrow {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  color: var(--accent-gold);
}

.guide-arrow-svg {
  width: 48px;
  height: 48px;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

.step-illustration {
  display: flex;
  justify-content: center;
}

.step-illustration img,
.step-illustration svg {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
}

.alert-box {
  background: rgba(47, 180, 229, 0.03);
  border-left: 4px solid var(--primary-wine);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.alert-box strong {
  color: var(--primary-wine);
}

/* --- CASA DE LAS ASOCIACIONES VIEW --- */
.casa-view-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.casa-info-section {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.02);
}

@media (max-width: 768px) {
  .casa-info-section {
    padding: 30px 20px;
  }
}

.casa-info-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-wine);
}

.casa-text {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 24px;
}

.casa-reservations-box {
  background: var(--bg-card-hover);
  border-left: 4px solid var(--accent-gold-dark);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.casa-reservations-box h3 {
  font-size: 1.2rem;
  color: var(--accent-gold-dark);
  margin-bottom: 8px;
}

.casa-reservations-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.calendar-embed-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  border: 1px solid rgba(47, 180, 229, 0.06);
  position: relative;
  overflow: hidden;
}

.calendar-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(47, 180, 229, 0.05);
}

.calendar-embed-header h3 {
  font-size: 1.25rem;
  color: var(--primary-wine);
}

.calendar-embed-iframe-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(47, 180, 229, 0.1);
}

.calendar-embed-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- CONTACT & RESERVES PAGE COMPONENTS (Pure CSS Accordion details/summary) --- */
details {
  border: 1px solid rgba(47, 180, 229, 0.08);
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  overflow: hidden;
  transition: all var(--transition-fast);
  margin-bottom: 16px;
}

details[open] {
  border-color: var(--primary-wine);
  box-shadow: var(--shadow-sm);
}

summary {
  padding: 18px 24px;
  font-weight: 700;
  color: var(--primary-wine);
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: background var(--transition-fast);
}

summary:hover {
  background: rgba(47, 180, 229, 0.02);
}

summary::-webkit-details-marker {
  display: none;
}

/* Form Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(47, 180, 229, 0.08);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--bg-cream);
  transition: var(--transition-fast);
  color: var(--text-main);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-wine);
  background: var(--bg-white);
  box-shadow: 0 4px 12px rgba(47, 180, 229, 0.05);
}

/* ==========================================================================
   11. WOOCOMMERCE PREMIUM COMPATIBILITY
   ========================================================================== */

.woocommerce .grid-container {
  padding-top: 20px;
}

.woocommerce span.onsale {
  background-color: var(--accent-gold-dark) !important;
  color: var(--text-light) !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 4px 8px !important;
  font-size: 0.85rem !important;
  min-height: auto !important;
  line-height: 1.2 !important;
}

.woocommerce ul.products li.product {
  background: var(--bg-white);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03) !important;
  transition: all var(--transition-normal);
  padding: 16px !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 180, 229, 0.08) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-title);
  color: var(--primary-wine) !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin: 12px 0 8px !important;
}

.woocommerce ul.products li.product price,
.woocommerce ul.products li.product .price {
  color: var(--accent-gold-dark) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
}

.woocommerce ul.products li.product .button {
  background-color: var(--primary-wine) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  transition: all var(--transition-fast) !important;
  font-size: 0.9rem !important;
}

.woocommerce ul.products li.product .button:hover {
  background-color: var(--primary-wine-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(47, 180, 229, 0.15);
}

.woocommerce nav.woocommerce-pagination ul {
  border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-white) !important;
  border: 1px solid rgba(47, 180, 229, 0.08) !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  margin: 0 4px !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--primary-wine) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-wine) !important;
}

/* WooCommerce Single Product Detail */
.woocommerce div.product div.images img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.woocommerce div.product .product_title {
  font-family: var(--font-title);
  color: var(--primary-wine);
  font-weight: 800;
  font-size: 2.2rem !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--accent-gold-dark) !important;
  font-size: 1.5rem !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  border: none !important;
  background: transparent !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: rgba(47, 180, 229, 0.04) !important;
  border: none !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--primary-wine) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--text-light) !important;
}

.woocommerce div.product .woocommerce-tabs .panel {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background-color: var(--primary-wine) !important;
  color: var(--text-light) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: var(--primary-wine-light) !important;
}

.search-bar-wrapper input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 2px solid rgba(47, 180, 229, 0.08);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--bg-cream);
  transition: var(--transition-fast);
  color: var(--text-main);
  font-weight: 500;
}

/* ==========================================================================
   PARALLAX SECTION STYLING
   ========================================================================== */

.parallax-section {
  height: 360px;
  background-attachment: scroll;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@supports (background-attachment: fixed) {
  @media (min-width: 769px) and (hover: hover) {
    .parallax-section { background-attachment: fixed; }
  }
}

.parallax-section {
  margin: 56px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(47, 180, 229, 0.08);
}

.parallax-section--duero {
  background-image: url('assets/images/duero_paisaje.png');
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(47, 180, 229, 0.75) 0%, rgba(24, 159, 207, 0.9) 100%);
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
  padding: 32px;
  max-width: 680px;
}

.parallax-content h2 {
  color: var(--bg-white) !important;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  font-family: var(--font-title);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.parallax-content p {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.95;
  font-family: var(--font-body);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .parallax-section {
    background-attachment: scroll;
    /* Fallback for mobile performance */
    height: 320px;
  }

  .parallax-content h2 {
    font-size: 1.8rem;
  }

  .parallax-content p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   UPCOMING EVENTS WIDGET (HOME BLOCK)
   ========================================================================== */
.upcoming-events-container {
  background: var(--bg-white);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.02);
}

.upcoming-events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.upcoming-events-header-title {
  margin-bottom: 0;
}

.upcoming-events-header-title h2 {
  font-size: 1.6rem;
  border-bottom: 0;
  padding-bottom: 0;
  margin: 0;
}

.upcoming-events-header-title p {
  margin: 4px 0 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.upcoming-events-btn {
  padding: 6px 12px !important;
  font-size: 0.85rem !important;
  height: fit-content;
}

.upcoming-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.upcoming-event-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-wine);
  transition: var(--transition-fast);
  align-items: center;
  text-decoration: none !important;
  color: inherit !important;
}

.upcoming-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent-gold);
  background: var(--bg-white);
}

.upcoming-event-date-box {
  text-align: center;
  min-width: 65px;
  border-right: 1px solid rgba(47, 180, 229, 0.08);
  padding-right: 12px;
  flex-shrink: 0;
}

.upcoming-event-day {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-wine);
  line-height: 1;
}

.upcoming-event-month {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold-dark);
  margin-top: 2px;
}

.upcoming-event-details {
  flex-grow: 1;
  min-width: 0;
}

.upcoming-event-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-wine);
  margin-bottom: 6px;
  margin-top: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upcoming-event-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.upcoming-event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upcoming-event-location {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.upcoming-events-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 24px 0;
  font-size: 0.95rem;
}

/* Responsive adjustments for mobile screen */
@media (max-width: 480px) {
  .upcoming-events-container {
    padding: 24px 16px;
  }

  .upcoming-events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .upcoming-event-card {
    padding: 12px;
    gap: 12px;
  }

  .upcoming-event-date-box {
    min-width: 50px;
    padding-right: 8px;
  }

  .upcoming-event-day {
    font-size: 1.2rem;
  }

  .upcoming-event-month {
    font-size: 0.7rem;
  }

  .upcoming-event-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .upcoming-event-meta {
    gap: 6px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Page Header styles — cabecera unificada y centrada para TODAS las páginas */
.events-page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.events-page-header h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--primary-wine);
}

.events-page-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* Etiqueta tipo píldora sobre el título (hero-tag). La landing usa .hero-badge,
   por lo que esta regla no afecta al hero del inicio. */
.hero-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 16px;
  background: rgba(var(--primary-wine-rgb), 0.08);
  color: var(--accent-gold-dark);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Upcoming Loader styles */
.upcoming-loader {
  min-height: 150px;
  gap: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upcoming-loader .spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.upcoming-loader p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile responsive adjustments for timeline event cards */
@media (max-width: 576px) {
  .event-card-item {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  .event-date-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 8px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(47, 180, 229, 0.08) !important;
    padding-right: 0 !important;
    padding-bottom: 12px !important;
    text-align: left !important;
    flex-wrap: wrap !important;
  }

  .event-day {
    font-size: 1.5rem !important;
  }

  .event-month {
    font-size: 0.9rem !important;
  }

  .event-weekday {
    font-size: 0.85rem !important;
    margin-top: 0 !important;
    margin-left: auto !important;
  }

  .event-actions-block {
    grid-column: span 1 !important;
    text-align: left !important;
    margin-top: 8px !important;
  }
}

/* --- MODAL DETAIL COMPONENT OVERRIDES & CLEANUP --- */
.modal-header-bg {
  height: 120px !important;
}

.modal-header-meta {
  position: absolute;
  bottom: 16px;
  left: 24px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header-icon {
  font-size: 2rem;
}

.modal-header-badge {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-gold-light);
  display: block;
}

.modal-header-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.modal-title {
  flex: 1 1 100% !important;
}

.modal-title-wrapper {
  margin-bottom: 20px !important;
}

.modal-body {
  padding-top: 32px !important;
}

.modal-info-grid {
  grid-template-columns: 1.2fr 0.8fr !important;
  margin-bottom: 24px !important;
  padding: 16px !important;
}

@media (max-width: 768px) {
  .modal-info-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.event-location-text {
  font-weight: 600;
}

.event-time-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-wine);
  margin-top: 4px;
}

.modal-date-label {
  font-weight: 600;
  color: var(--primary-wine-light);
}

.modal-date-label-spacing {
  margin-top: 4px;
}

.modal-date-value {
  font-weight: 500;
  color: var(--text-main);
}

.modal-date-single {
  font-weight: 500;
  color: var(--text-main);
}

.modal-image-wrapper {
  margin-bottom: 24px;
  text-align: center;
}

.modal-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.modal-actions-footer {
  margin-top: 32px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- SVG ICON UNIFIED STYLE RULES --- */
.icon-svg {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Ensure consistent spacing for inline icons inside buttons or headers */
.btn .icon-svg,
h1 .icon-svg,
h2 .icon-svg,
h3 .icon-svg,
h4 .icon-svg {
  margin-right: 8px;
}

/* ==========================================================================
   FADE IN UP ENTRY ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.fade-in-up {
  opacity: 0;
  will-change: transform, opacity;
  animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

.delay-4 {
  animation-delay: 0.32s;
}

.delay-5 {
  animation-delay: 0.4s;
}

/* ==========================================================================
   GEOMETRIC BACKGROUND PARALLAX
   ========================================================================== */
.geometric-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-cream);
}

.geo-shape {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.035;
  /* Subtle */
  will-change: transform;
}

/* Ambient radial glow in top right */
.geo-shape.shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(47, 180, 229, 0.25) 0%, rgba(126, 18, 87, 0.06) 70%, transparent 100%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.4;
  transform: translate3d(calc(var(--scroll-y, 0) * -0.06px),
      calc(var(--scroll-y, 0) * 0.04px),
      0);
  animation: floatSlowly 24s infinite ease-in-out;
}

/* Dashed rounded square in mid left */
.geo-shape.shape-2 {
  width: 320px;
  height: 320px;
  border: 2px dashed var(--primary-wine);
  border-radius: 40px;
  top: 35%;
  left: -80px;
  transform: translate3d(0,
      calc(var(--scroll-y, 0) * -0.12px),
      0) rotate(calc(45deg + var(--scroll-y, 0) * 0.04deg));
  animation: spinSlowly 45s infinite linear;
}

/* Concentric circular lines in bottom right */
.geo-shape.shape-3 {
  width: 480px;
  height: 480px;
  border: 1.5px solid var(--accent-gold);
  border-radius: 50%;
  bottom: -100px;
  right: 8%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(calc(var(--scroll-y, 0) * -0.05px),
      calc(var(--scroll-y, 0) * -0.08px),
      0);
}

.geo-shape.shape-3::before {
  content: '';
  width: 320px;
  height: 320px;
  border: 1px dashed var(--primary-wine-light);
  border-radius: 50%;
  position: absolute;
  animation: spinSlowlyReverse 55s infinite linear;
}

/* Modern dots grid pattern in top left */
.geo-shape.shape-4 {
  width: 260px;
  height: 260px;
  background-image: radial-gradient(var(--primary-wine-dark) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  top: 12%;
  left: 10%;
  opacity: 0.05;
  transform: translate3d(0,
      calc(var(--scroll-y, 0) * -0.18px),
      0);
}
.wpcf7 .wpcf7-submit:disabled {
    background: #ccc;
    box-shadow: none;
}
.cf7-asociaciones .wpcf7-submit:disabled:hover {
    transform: unset;
    box-shadow: unset;
}
/* (Cabecera .events-page-header consolidada en el bloque canónico de arriba) */
/* Continuous background animations */
@keyframes floatSlowly {

  0%,
  100% {
    transform: translate3d(calc(var(--scroll-y, 0) * -0.06px), calc(var(--scroll-y, 0) * 0.04px), 0) scale(1);
  }

  50% {
    transform: translate3d(calc(var(--scroll-y, 0) * -0.06px - 25px), calc(var(--scroll-y, 0) * 0.04px + 15px), 0) scale(1.06);
  }
}

@keyframes spinSlowly {
  0% {
    transform: translate3d(0, calc(var(--scroll-y, 0) * -0.12px), 0) rotate(calc(var(--scroll-y, 0) * 0.04deg));
  }

  100% {
    transform: translate3d(0, calc(var(--scroll-y, 0) * -0.12px), 0) rotate(calc(360deg + var(--scroll-y, 0) * 0.04deg));
  }
}

@keyframes spinSlowlyReverse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* Scroll-driven animations overrides (Modern Browsers) */
@supports (animation-timeline: scroll()) {
  .geo-shape {
    transform: none !important;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root);
  }

  .geo-shape.shape-1 {
    animation-name: parallax-native-shape-1;
  }

  .geo-shape.shape-2 {
    animation-name: parallax-native-shape-2;
  }

  .geo-shape.shape-3 {
    animation-name: parallax-native-shape-3;
  }

  .geo-shape.shape-3::before {
    animation: spinSlowlyReverse 55s infinite linear;
  }

  .geo-shape.shape-4 {
    animation-name: parallax-native-shape-4;
  }

  @keyframes parallax-native-shape-1 {
    from {
      transform: translate3d(0, 0, 0);
    }

    to {
      transform: translate3d(-100px, 120px, 0);
    }
  }

  @keyframes parallax-native-shape-2 {
    from {
      transform: translate3d(0, 0, 0) rotate(45deg);
    }

    to {
      transform: translate3d(0, -320px, 0) rotate(165deg);
    }
  }

  @keyframes parallax-native-shape-3 {
    from {
      transform: translate3d(0, 0, 0);
    }

    to {
      transform: translate3d(-100px, -220px, 0);
    }
  }

  @keyframes parallax-native-shape-4 {
    from {
      transform: translate3d(0, 0, 0);
    }

    to {
      transform: translate3d(0, -420px, 0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .geo-shape {
    animation: none !important;
    transform: none !important;
  }

  .fade-in-up {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===========================================================================
   PÁGINAS ESTÁTICAS (snippets) — clases que sustituyen al CSS inline
   que antes vivía en /snippets-paginas/*.html. Todo el estilo se gobierna
   aquí para mantener el HTML libre de atributos style=.
   =========================================================================== */

/* Utilidad de espaciado vertical entre secciones */
.section-spaced { margin-bottom: 56px; }

/* --- CONTACTO: layout split formulario + información --- */
.contact-split { margin-bottom: 56px; }

.contact-form-col {
  flex: 1.3 1 400px;
  min-width: 320px;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03);
}

.contact-form-title {
  color: var(--primary-wine);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.contact-info-col {
  flex: 0.7 1 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03);
}

.contact-info-card-title {
  color: var(--primary-wine);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(47, 180, 229, 0.06);
  padding-bottom: 10px;
}

.contact-info-list {
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 !important;
    margin: 0 !important;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-icon {
  font-size: 1.4rem;
  background: rgba(47, 180, 229, 0.06);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--primary-wine);
  flex-shrink: 0;
}

.contact-info-label {
  margin: 0 0 4px !important;
  color: var(--primary-wine);
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-info-text {
  margin: 0 !important;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-info-text strong,
.contact-info-text a {
  color: var(--primary-wine-light);
}

.contact-cta-card {
  background: linear-gradient(135deg, var(--primary-wine-dark) 0%, var(--primary-wine) 100%);
  color: var(--text-light);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: none;
}

.contact-cta-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px !important;
    font-family: var(--font-title);
}

.contact-cta-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(241, 245, 249, 0.85);
  margin-bottom: 20px;
}

.contact-cta-card .btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: var(--radius-sm);
}

/* --- CONTACTO: mapa de localización --- */
.contact-map-section { margin-bottom: 56px; }

.contact-map-title {
  color: var(--primary-wine);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-title);
}

.contact-map-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.contact-map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(47, 180, 229, 0.08);
  height: 350px;
}

.contact-map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

/* --- CONTACTO: acordeón de preguntas frecuentes --- */
.faq-section {
  margin-bottom: 56px;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.03);
}

.faq-title {
  color: var(--primary-wine);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  font-family: var(--font-title);
}

.faq-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(47, 180, 229, 0.08);
  border-radius: var(--radius-md);
  background: var(--bg-cream);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  color: var(--primary-wine);
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent-gold-dark);
}

.faq-answer {
  padding: 20px 24px ;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  background: var(--bg-white);
  border-top: 1px solid rgba(47, 180, 229, 0.04);
}

/* --- AGENDA: tarjeta informativa de sincronización en vivo --- */
.sync-info-card {
  text-align: left;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(47, 180, 229, 0.04);
  border-left: 4px solid var(--accent-gold);
  margin-bottom: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.sync-info-icon {
  font-size: 2.2rem;
  background: rgba(6, 182, 212, 0.08);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--accent-gold-dark);
}

.sync-info-body {
  flex: 1;
  min-width: 250px;
}

.sync-info-title {
  margin-bottom: 6px;
  color: var(--primary-wine);
  font-size: 1.15rem;
  font-weight: 700;
}

.sync-info-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- CASA DE LAS ASOCIACIONES: ajustes de la sección de calendario --- */
.casa-reservations-box .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.calendar-embed-header h3 {
  font-weight: 800;
  font-family: var(--font-title);
}

.calendar-embed-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.calendar-embed-instructions {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* --- GUÍA DE INSCRIPCIÓN: pasos --- */
.step-label {
  color: var(--primary-wine-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.step-action { margin-bottom: 24px; }

.info-guide-container .guide-step-card:last-of-type { margin-bottom: 0; }

.alert-box--accent { border-left-color: var(--accent-gold-dark); }

.alert-contact {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: var(--primary-wine);
}

.alert-contact a {
  color: var(--primary-wine);
  text-decoration: underline;
}

/* --- CONTACTO: formulario de Contact Form 7 (.cf7-asociaciones) ---
   Estilos antes incrustados en /snippets-paginas/contacto-cf7-formulario.html.
   Se conservan valores literales de respaldo por si las variables :root no
   estuvieran disponibles en el contexto donde CF7 renderice el formulario. */
.wpcf7 form.cf7-asociaciones { display: flex; flex-direction: column; gap: 20px; }
.cf7-asociaciones .cf7-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cf7-asociaciones .cf7-field { display: flex; flex-direction: column; gap: 6px; }
.cf7-asociaciones label { font-size: 0.85rem; font-weight: 600; color: var(--text-main, #0f172a); }
.cf7-asociaciones input[type="text"],
.cf7-asociaciones input[type="email"],
.cf7-asociaciones select,
.cf7-asociaciones textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(47, 180, 229, 0.18);
  border-radius: var(--radius-sm, 8px);
  outline: none;
  background: var(--bg-cream, #f4faff);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main, #0f172a);
  transition: border-color .2s ease, background-color .2s ease;
  box-sizing: border-box;
}
.cf7-asociaciones input[type="text"]:focus,
.cf7-asociaciones input[type="email"]:focus,
.cf7-asociaciones select:focus,
.cf7-asociaciones textarea:focus {
  border-color: var(--primary-wine, #2fb4e5);
  background: #ffffff;
}
.cf7-asociaciones textarea { resize: vertical; min-height: 120px; }
.cf7-asociaciones .cf7-privacy {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 5px;
  font-size: 0.85rem; color: var(--text-muted, #475569); line-height: 1.4;
}
.cf7-asociaciones .cf7-privacy .wpcf7-list-item { margin: 0; }
.cf7-asociaciones .cf7-privacy input[type="checkbox"] { margin-top: 4px; }
.cf7-asociaciones .wpcf7-submit {
  margin-top: 10px; width: 100%; padding: 14px; font-size: 1rem; font-weight: 700;
  color: #ffffff; cursor: pointer; border: none;
  border-radius: var(--radius-sm, 8px);
  background: linear-gradient(135deg, var(--primary-wine-dark, #189fcf) 0%, var(--primary-wine, #2fb4e5) 100%);
  box-shadow: 0 8px 20px rgba(47, 180, 229, 0.18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cf7-asociaciones .wpcf7-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(47, 180, 229, 0.28); }
.cf7-asociaciones .wpcf7-spinner { margin: 12px auto 0; display: block; }
.cf7-asociaciones .wpcf7-form-control-wrap { display: block; width: 100%; }
@media (max-width: 600px) {
  .cf7-asociaciones .cf7-row { grid-template-columns: 1fr; }
}

/* ============================================================
   GALERÍAS DE IMÁGENES  ([gallery] clásico + bloque Gutenberg)
   ============================================================ */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 32px 0;
  width: 100%;
}

.gallery-item {
  margin: 0 !important;
  padding: 0;
  text-align: center;
  flex: 0 0 auto;
}

/* Anchos por número de columnas (descontando los huecos del gap de 16px). */
.gallery-columns-1 .gallery-item { width: 100%; }
.gallery-columns-2 .gallery-item { width: calc((100% - 16px) / 2); }
.gallery-columns-3 .gallery-item { width: calc((100% - 32px) / 3); }
.gallery-columns-4 .gallery-item { width: calc((100% - 48px) / 4); }
.gallery-columns-5 .gallery-item { width: calc((100% - 64px) / 5); }
.gallery-columns-6 .gallery-item { width: calc((100% - 80px) / 6); }
.gallery-columns-7 .gallery-item { width: calc((100% - 96px) / 7); }
.gallery-columns-8 .gallery-item { width: calc((100% - 112px) / 8); }
.gallery-columns-9 .gallery-item { width: calc((100% - 128px) / 9); }

.gallery-icon {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md, 16px);
  box-shadow: var(--shadow-md, 0 8px 20px rgba(47, 180, 229, 0.05));
  background: var(--bg-cream, #f4faff);
}

.gallery-icon a {
  display: block;
  line-height: 0;
}

.gallery-icon img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0;
  border: none !important;
  border-radius: 0;
  cursor: zoom-in;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}

.gallery-icon:hover img {
  transform: scale(1.06);
}

.gallery-caption,
.gallery .wp-caption-text {
  margin: 8px 2px 0;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted, #475569);
}

/* Bloque de galería de Gutenberg: imágenes redondeadas coherentes. */
.wp-block-gallery .wp-block-image img,
.wp-block-image img {
  border-radius: var(--radius-md, 16px);
}
.wp-block-image a { display: inline-block; line-height: 0; }
.wp-block-image img { cursor: zoom-in; }

/* En móvil, máximo 2 columnas para legibilidad. */
@media (max-width: 600px) {
  .gallery { gap: 10px; }
  .gallery-columns-3 .gallery-item,
  .gallery-columns-4 .gallery-item,
  .gallery-columns-5 .gallery-item,
  .gallery-columns-6 .gallery-item,
  .gallery-columns-7 .gallery-item,
  .gallery-columns-8 .gallery-item,
  .gallery-columns-9 .gallery-item {
    width: calc((100% - 10px) / 2);
  }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
body.aa-lightbox-open { overflow: hidden; }

.aa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: rgba(8, 19, 33, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.aa-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.aa-lightbox__figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.aa-lightbox__img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md, 16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #fff;
  transform: scale(.96);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.aa-lightbox.is-open .aa-lightbox__img {
  transform: scale(1);
}

.aa-lightbox__caption {
  color: var(--text-light, #f1f5f9);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.95rem;
  text-align: center;
  max-width: 80vw;
}

.aa-lightbox__counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(241, 245, 249, 0.85);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.85rem;
  letter-spacing: .04em;
}

.aa-lightbox__close,
.aa-lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full, 9999px);
  transition: background-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.aa-lightbox__close:hover,
.aa-lightbox__nav:hover {
  background: var(--primary-wine, #2fb4e5);
  transform: scale(1.08);
}

.aa-lightbox__close {
  top: 16px;
  right: 16px;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
  padding-bottom: 10px;
}

.aa-lightbox__nav {
  top: 50%;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  font-size: 2.2rem;
  line-height: 1;
  padding-bottom: 4px;
}

.aa-lightbox__prev { left: 18px; }
.aa-lightbox__next { right: 18px; }

@media (max-width: 600px) {
  .aa-lightbox__nav { width: 44px; height: 44px; margin-top: -22px; font-size: 1.8rem; }
  .aa-lightbox__prev { left: 8px; }
  .aa-lightbox__next { right: 8px; }
  .aa-lightbox__close { width: 40px; height: 40px; font-size: 1.5rem; }
}
p.mailfooter {
    display: flex;
    align-items: center;
    gap: 10px;
}
p.mailfooter svg.icon-svg {
    width: 1.5em;
    height: 1.5em;
}
.footer-widget-col-3 a:hover{
  text-decoration: underline;
}

.hero-text-block h2{
  font-size: 1.8em;
}