﻿/*!
Theme Name: Fundación Casa de la Música
Description: Estilos personalizados para la Fundación Casa de la Música
Author: Navega mi Sitio
Version: 1.1.0
*/

/* ========================================
   CSS CUSTOM PROPERTIES - PALETA FUNDACIÓN
======================================== */
:root {
  /* ── Paleta La Casa de la Música ── */
  --color-primary:      #68B392;
  --color-primary-dark: #3D7A62;
  --color-red:          #C4745A;  /* terracota suave */
  --color-secondary:    #4A7C59;
  --color-accent:    #C49A6A;  /* ámbar arena suave */
  --color-sand:      #E8DCC8;
  --color-bg:        #F5F0E8;
  --color-dark:      #1A1A1A;
  --color-muted:     #6B6B6B;
  --color-white:     #FFFFFF;

  /* Aliases backward-compat */
  --contrast:          #1A1A1A;
  --contrast-2:        #4A4A4A;
  --contrast-3:        #6B6B6B;
  --base:              #E8DCC8;
  --base-2:            #F5F0E8;
  --base-3:            #FFFFFF;
  --color-light:       var(--color-sand);
  --color-success:     #4A7C59;
  --color-gray-light:  var(--color-sand);
  --color-gray-medium: var(--color-muted);
  --color-gray-dark:   #4A4A4A;

  /* Gradientes */
  --gradient-primary:   linear-gradient(135deg, #68B392 0%, #3D7A62 100%);
  --gradient-light:     linear-gradient(135deg, #E8DCC8 0%, #d5c9b0 100%);
  --gradient-dark:      linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
  --gradient-hero:      linear-gradient(rgba(26,26,26,0.55), rgba(26,26,26,0.55));

  /* Sombras */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;

  /* Transiciones */
  --transition-fast: all 0.2s ease;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  /* Tipografía */
  --font-primary:   'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Bootstrap overrides */
  --bs-primary:         #68B392;
  --bs-primary-rgb:     104, 179, 146;
  --bs-secondary:       #4A7C59;
  --bs-success:         #4A7C59;
  --bs-warning:         #C49A6A;
  --bs-warning-rgb:     196, 154, 106;
  --bs-body-color:      #1A1A1A;
  --bs-body-bg:         #F5F0E8;
  --bs-box-shadow:      none;
  --bs-box-shadow-sm:   none;
  --bs-box-shadow-lg:   none;
}

/* ========================================
   RESET Y BASE
======================================== */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--base-3);
  color: var(--contrast);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* ========================================
   OBJECT-FIT POLYFILL FALLBACK
======================================== */
.object-fit-cover {
  object-fit: cover;
  font-family: 'object-fit: cover';
}

/* Alternative for browsers without object-fit support */
@supports not (object-fit: cover) {
  .object-fit-cover {
    height: 100%;
    width: 100%;
    object-position: center;
  }
}

/* ========================================
   MOBILE-FIRST BREAKPOINTS
======================================== */

/* Extra small devices (phones, 320px and up) */
@media (min-width: 320px) {
  html {
    font-size: 14px;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  html {
    font-size: 15px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  html {
    font-size: 16px;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  html {
    font-size: 17px;
  }
}

/* ========================================
   SAFE AREA INSETS (notched devices)
======================================== */
@supports (padding: env(safe-area-inset-bottom)) {
  .safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .safe-area-top {
    padding-top: env(safe-area-inset-top);
  }
}

/* ========================================
   TOUCH IMPROVEMENTS
======================================== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects on touch devices */
  .btn:hover,
  .card:hover,
  a:hover {
    transform: none !important;
    transition: none !important;
  }
  
  /* Improve touch targets */
  .btn,
  .nav-link,
  .dropdown-item,
  a.btn {
    min-height: 48px;
    padding: 0.75rem 1rem;
  }
  
  /* Active states for touch */
  .btn:active,
  .card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
}

/* ========================================
   LANDSCAPE ORIENTATION
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-video-section {
    height: auto;
    min-height: 100vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
}

/* ========================================
   HIGH DPI / RETINA DISPLAYS
======================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Serve higher quality images if available */
  .hero-video-section {
    background-size: 200% auto;
  }
}

/* Override Bootstrap primary */
.bg-primary {
  background-color: var(--color-primary) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-dark);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ========================================
   HEADER & NAVIGATION
======================================== */
.header-top {
  background: #DEDAD4 !important;
  border-bottom: 1px solid #C8C3BB;
}

/* Texto e íconos del header-top sobre fondo cemento */
.header-top,
.header-top span,
.header-top .header-location {
  color: #3A3530 !important;
}

.header-top .header-contact-link {
  color: #3A3530 !important;
}

.header-top .header-contact-link:hover {
  color: var(--color-primary) !important;
  opacity: 1;
}

.header-top .social-icon-top {
  color: #5A534C !important;
}

.header-top .social-icon-top:hover {
  color: var(--color-primary) !important;
  background: rgba(0, 0, 0, 0.06);
}

.site-header {
  position: relative;
  z-index: 1000;
}

.main-navigation {
  transition: var(--transition-base);
  background: var(--color-white) !important;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.main-navigation.scrolled {
  box-shadow: none;
}

.navbar-brand .brand-main {
  color: var(--color-primary) !important;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
  .main-navigation {
    background: var(--color-white) !important;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  
  .navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .navbar-nav {
    padding: 1rem 0;
    text-align: center;
    margin-right: auto !important;
  }

  .navbar-nav .nav-link {
    justify-content: center;
  }

  .navbar-nav .dropdown-menu {
    text-align: center;
  }

  .nav-item {
    margin: 0.25rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem;
  }
  
  .nav-link:hover,
  .nav-link:focus {
    background: var(--base-2);
  }
  
  .dropdown-menu {
    border: none;
    background: var(--base-2);
    padding: 0.5rem 0;
    margin: 0;
  }
  
  .dropdown-item {
    padding: 0.75rem 1.5rem;
  }
}

/* Navbar toggler improvements */
.navbar-toggler {
  padding: 0.75rem;
  border: 2px solid var(--color-primary);
  border-radius: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(104, 179, 146, 0.4);
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* Mobile logo sizing */
@media (max-width: 575.98px) {
  .navbar-brand img,
  .custom-logo {
    max-height: 40px;
    width: auto;
  }
  
  .brand-text {
    font-size: 0.9rem;
  }
}

/* ========================================
   HERO VIDEO SECTION
======================================== */
.hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--contrast);
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video-section .hero-video,
.hero-video-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Overlay de color: capa verde clara para contraste con texto blanco */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 26, 0.72) 0%,
    rgba(26, 26, 26, 0.65) 50%,
    rgba(61, 122, 98, 0.68) 100%
  );
  z-index: 1;
}

.hero-content {
  z-index: 2;
}

/* Forzar texto blanco en secciones con fondo oscuro/coloreado */
.hero-content,
.hero-content h1,
.hero-content h2,
.hero-content p,
.hero-content .lead,
.hero-content div,
.proyecto-content,
.proyecto-content h2,
.proyecto-content p,
.proyecto-content .lead,
.proyecto-content div,
.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
.text-white p,
.text-white .lead,
.text-white div,
.bg-gradient-primary .text-white,
.bg-gradient-primary .text-white h2,
.bg-gradient-primary .text-white p,
.bg-primary.text-white h2,
.bg-primary.text-white p,
.bg-primary.text-white .lead {
  color: #ffffff !important;
}

.hero-content h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-content .lead {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Text shadow utilities */
.text-shadow {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.text-shadow-lg {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Hero CTA buttons */
.hero-ctas {
  gap: 1rem;
}

.hero-ctas .btn,
.hero-cta-buttons .btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition-base);
  text-shadow: none;
}

/* Scroll indicator bounce */
.scroll-indicator {
  z-index: 3;
}

.animate-bounce {
  animation: bounce 2s ease-in-out infinite;
}

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

.btn-donar {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
}

.btn-donar:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-proyecto {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-proyecto:hover {
  background: var(--color-white);
  color: var(--contrast);
  transform: translateY(-3px);
}

/* ========================================
   SECTION STYLES
======================================== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-secondary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--contrast-2);
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--base);
}

/* ========================================
   QUIENES SOMOS HOME - STATS BAR
======================================== */
.quienes-somos-home {
  background: var(--base-3);
}

.stats-bar {
  background: var(--gradient-primary);
}

.stat-bar-item {
  min-width: 150px;
  transition: var(--transition-base);
}

.stat-bar-item:hover {
  background: rgba(0, 0, 0, 0.12) !important;
}

.stat-bar-item .stat-number {
  font-family: var(--font-secondary);
  color: #ffffff !important;
}

.stat-bar-item .stat-label {
  color: rgba(255, 255, 255, 0.8) !important;
}

.stat-bar-item i {
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 767px) {
  .stats-bar {
    flex-direction: column;
  }

  .stat-bar-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stat-bar-item:last-child {
    border-bottom: none;
  }
}

/* ========================================
   MIEMBROS GRID
======================================== */
.miembros-section {
  background: var(--base-2);
}

.miembro-card {
  background: var(--base-3);
  border-radius: 1rem;
  overflow: hidden;
  transition: var(--transition-base);
  border: none;
  box-shadow: var(--shadow-sm);
}

.miembro-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.miembro-card .miembro-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.miembro-card:hover .miembro-photo img {
  transform: scale(1.05);
}

.miembro-card .card-body {
  padding: 1.5rem;
}

.miembro-card .miembro-name {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--contrast);
  margin-bottom: 0.5rem;
}

.miembro-card .miembro-cargo {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
}

.grupo-titulo {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--contrast-2);
  text-align: center;
  margin: 3rem 0 2rem;
  position: relative;
}

.grupo-titulo span {
  background: var(--base-2);
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.grupo-titulo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--contrast-3);
}

/* ========================================
   PROYECCIÓN DE OBRA - VIDEO SECTION
======================================== */
.proyecto-video-section {
  position: relative;
  background: var(--contrast);
  padding: 0;
  overflow: hidden;
  min-height: 70vh;
}

.proyecto-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.proyecto-video-section .proyecto-video,
.proyecto-video-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.proyecto-placeholder {
  min-height: 70vh;
}

/* Overlay oscuro sobre video del proyecto */
.proyecto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(26, 26, 26, 0.80) 0%,
    rgba(26, 26, 26, 0.55) 60%,
    rgba(26, 26, 26, 0.25) 100%
  );
  z-index: 1;
}

.proyecto-content {
  z-index: 2;
  color: var(--color-white);
}

.proyecto-content h2 {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.proyecto-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.proyecto-content .lead {
  font-size: 1.25rem;
}

.proyecto-badge {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.proyecto-ctas .btn {
  text-shadow: none;
}

/* Secciones con fondo verde/primario que necesitan texto blanco */
.bg-gradient-primary,
.bg-primary,
.como-ayudar,
.donaciones-section.bg-gradient-primary {
  color: #ffffff !important;
}

.bg-gradient-primary h2,
.bg-gradient-primary h3,
.bg-gradient-primary h4,
.bg-gradient-primary p,
.bg-gradient-primary .lead,
.bg-gradient-primary div,
.bg-primary h2,
.bg-primary h3,
.bg-primary p,
.bg-primary .lead,
.como-ayudar h2,
.como-ayudar h4,
.como-ayudar p,
.como-ayudar div {
  color: #ffffff !important;
}

/* ========================================
   DONACIONES SECTION
======================================== */
.donaciones-section {
  background: linear-gradient(135deg, var(--base) 0%, var(--base-2) 100%);
  padding: 5rem 0;
}

.donaciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.donacion-card {
  background: var(--base-3);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 2px solid transparent;
}

.donacion-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.donacion-card.destacado {
  border-color: var(--color-primary);
  position: relative;
}

.donacion-card.destacado::before {
  content: 'Recomendado';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.donacion-card h3 {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--contrast);
  margin-bottom: 1rem;
}

.donacion-card p {
  color: var(--contrast-2);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* QR Code */
.qr-container {
  background: var(--base-3);
  padding: 1.5rem;
  border-radius: 1rem;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

.qr-container img {
  max-width: 200px;
  height: auto;
}

/* Datos bancarios */
.datos-bancarios {
  background: var(--base);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: left;
}

.dato-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--base-2);
}

.dato-item:last-child {
  border-bottom: none;
}

.dato-label {
  font-size: 0.85rem;
  color: var(--contrast-3);
  font-weight: 500;
}

.dato-valor {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--contrast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copiar {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copiar:hover {
  background: var(--color-secondary);
}

.btn-copiar.copiado {
  background: var(--color-success);
}

/* Iframe donación */
.iframe-donacion {
  width: 100%;
  border: none;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  background: var(--base-3);
}

/* ========================================
   QUIENES SOMOS SECTION
======================================== */
.quienes-somos-section {
  background: var(--base-3);
}

.quienes-content {
  max-width: 800px;
  margin: 0 auto;
}

.quienes-content p {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--contrast-2);
  margin-bottom: 1.5rem;
}

.quienes-content .lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--contrast);
}

.quote-box {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 2.5rem;
  border-radius: 1rem;
  margin: 3rem 0;
  position: relative;
}

.quote-box::before {
  content: '"';
  font-size: 6rem;
  font-family: Georgia, serif;
  position: absolute;
  top: -20px;
  left: 20px;
  opacity: 0.3;
  line-height: 1;
}

.quote-box p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-white);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
  background: #DEDAD4;
  color: #3A3530;
  padding: 4rem 0 0;
  border-top: 1px solid #C8C3BB;
}

.site-footer,
.site-footer p,
.site-footer div,
.site-footer span,
.site-footer li,
.site-footer h4,
.site-footer h5 {
  color: #3A3530 !important;
}

.site-footer .widget-title {
  color: var(--color-primary-dark) !important;
  font-family: var(--font-secondary);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.site-footer a {
  color: #3A3530;
  transition: var(--transition-fast);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.site-footer a,
.site-footer a.nav-link,
.site-footer a.dropdown-item,
.site-footer .footer-menu a,
.footer-link {
  color: #3A3530 !important;
  text-decoration-color: #C8C3BB;
}

.site-footer a:hover,
.site-footer a.nav-link:hover,
.site-footer a.dropdown-item:hover,
.site-footer .footer-menu a:hover,
.footer-link:hover {
  color: var(--color-primary-dark) !important;
  text-decoration-color: var(--color-primary-dark);
}

.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.07);
  border: 1px solid #C8C3BB;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: var(--transition-base);
  text-decoration: none;
  color: #5A534C;
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  color: var(--color-dark);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.06);
  border-top: 1px solid #C8C3BB;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ========================================
   SCROLL TO TOP
======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

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

.scroll-to-top:hover {
  background: var(--color-secondary);
  transform: translateY(-5px);
}

/* ========================================
   SIDEBAR WIDGETS
======================================== */
.sidebar .widget {
  background: var(--base-3);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.sidebar .widget-title {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.sidebar .widget-content {
  padding: 1.5rem;
}

.sidebar .widget-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget-content ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--base);
}

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

.sidebar .widget-content ul li a {
  color: var(--contrast-2);
  text-decoration: none;
  transition: var(--transition-fast);
}

.sidebar .widget-content ul li a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

/* WhatsApp button in sidebar */
.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--color-white) !important;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-base);
}

.whatsapp-btn:hover {
  background: #128C7E;
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 991px) {
  .hero-video-section {
    height: 80vh;
    min-height: 500px;
  }

  .proyecto-video-section {
    min-height: 60vh;
  }

  /* En tablet overlay verde uniforme */
  .proyecto-overlay {
    background: rgba(61, 122, 98, 0.85);
  }

  .donaciones-grid {
    grid-template-columns: 1fr;
  }
  
  /* Footer responsive */
  .site-footer {
    padding: 3rem 0 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 0;
  }

  .hero-video-section {
    height: 100vh;
    min-height: 500px;
  }

  /* En móvil overlay verde más intenso para legibilidad */
  .hero-overlay {
    background: rgba(26, 26, 26, 0.75);
  }

  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content .lead {
    font-size: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn,
  .hero-cta-buttons .btn {
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .proyecto-video-section {
    min-height: 50vh;
  }

  .proyecto-overlay {
    background: rgba(26, 26, 26, 0.55);
  }
  
  .proyecto-content h2 {
    font-size: 1.75rem;
  }
  
  .proyecto-content p,
  .proyecto-content .lead {
    font-size: 1rem;
  }

  .grupo-titulo {
    font-size: 1.2rem;
  }
  
  /* Cards responsive */
  .miembro-card,
  .donacion-card,
  .evento-card,
  .video-card {
    margin-bottom: 1.5rem;
  }
  
  /* Footer mobile */
  .site-footer {
    text-align: center;
  }
  
  .footer-widget {
    margin-bottom: 2rem;
  }
  
  .footer-social {
    justify-content: center;
    display: flex;
    gap: 0.5rem;
  }
  
  .footer-bottom .col-md-6 {
    text-align: center !important;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 2rem 0;
  }
  
  .hero-video-section {
    height: 100vh;
    min-height: 100svh;
  }
  
  .hero-content {
    padding: 1rem;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content .lead {
    font-size: 0.95rem;
  }
  
  .btn-donar,
  .btn-proyecto {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Proyección de obra mobile */
  .proyecto-video-section {
    min-height: 100svh;
  }
  
  .proyecto-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  
  .proyecto-content {
    padding: 1.5rem;
  }
  
  .proyecto-ctas .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  /* Cards compactadas */
  .card-body {
    padding: 1rem;
  }
  
  /* Stats bar mobile */
  .stats-bar {
    flex-direction: column;
    padding: 1rem;
  }
  
  .stat-bar-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    text-align: center;
  }
  
  /* Scroll to top mobile */
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.rounded-xl {
  border-radius: 1.5rem;
}

.shadow-hover {
  transition: var(--transition-base);
}

.shadow-hover:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

/* ========================================
   VIDEOS YOUTUBE SECTION
======================================== */
.videos-section {
  background: var(--base-2);
}

.videos-archive-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Carousel wrapper */
.videos-carousel-wrapper {
  padding: 0 50px;
}

.videos-swiper {
  padding-bottom: 50px;
}

/* Video Card */
.video-card {
  background: var(--base-3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  cursor: pointer;
}

.video-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Thumbnail */
.video-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail {
  transform: scale(1.06);
}

/* Play button overlay */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 64px;
  height: 64px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  z-index: 2;
}

.video-play-btn i {
  color: #fff;
  font-size: 1.3rem;
  margin-left: 4px;
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255, 0, 0, 0.95);
}

/* Dark overlay on hover */
.video-thumbnail-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: var(--transition-base);
  z-index: 1;
}

.video-card:hover .video-thumbnail-wrapper::after {
  background: rgba(0, 0, 0, 0.15);
}

/* Duration badge */
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 3;
  font-family: var(--font-secondary);
}

/* Video info */
.video-info {
  padding: 1rem 1.2rem;
}

.video-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--contrast);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.video-author,
.video-tipo {
  font-size: 0.8rem;
  color: var(--contrast-3);
}

.video-tipo {
  color: var(--color-primary);
  font-weight: 600;
}

/* Swiper navigation */
.videos-carousel-wrapper .swiper-button-prev,
.videos-carousel-wrapper .swiper-button-next {
  width: 42px;
  height: 42px;
  background: var(--base-3);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.videos-carousel-wrapper .swiper-button-prev::after,
.videos-carousel-wrapper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.videos-carousel-wrapper .swiper-button-prev:hover,
.videos-carousel-wrapper .swiper-button-next:hover {
  background: var(--color-primary);
}

.videos-carousel-wrapper .swiper-button-prev:hover::after,
.videos-carousel-wrapper .swiper-button-next:hover::after {
  color: #fff;
}

.videos-carousel-wrapper .swiper-button-prev {
  left: 0;
}

.videos-carousel-wrapper .swiper-button-next {
  right: 0;
}

/* Swiper pagination dots */
.videos-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--contrast-3);
  opacity: 0.4;
  transition: var(--transition-fast);
}

.videos-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-primary);
  width: 28px;
  border-radius: 5px;
}

/* Video Modal */
#videoModal .modal-content {
  border-radius: 12px;
  overflow: hidden;
}

#videoModal .modal-header {
  padding: 0.75rem 1rem;
}

#videoModal .modal-title {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Archive filters */
.video-filters .btn {
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
  .videos-carousel-wrapper {
    padding: 0 40px;
  }
}

@media (max-width: 767px) {
  .videos-carousel-wrapper {
    padding: 0 10px;
  }

  .videos-carousel-wrapper .swiper-button-prev,
  .videos-carousel-wrapper .swiper-button-next {
    display: none;
  }

  .video-play-btn {
    width: 52px;
    height: 52px;
  }

  .video-play-btn i {
    font-size: 1.1rem;
  }

  .video-info {
    padding: 0.8rem 1rem;
  }
}

/* ========================================
   FOOTER STYLES
======================================== */
.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu li a {
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    color: #3A3530 !important;
    text-decoration: none !important;
}

.footer-menu li a:hover {
    padding-left: 10px;
    color: var(--color-primary-dark) !important;
}

.footer-contact .contact-item {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.toast {
    min-width: 300px;
}

@media (max-width: 767.98px) {
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }

    .footer-bottom .col-md-6:last-child {
        margin-bottom: 0;
    }

    .quick-contact .btn {
        font-size: 0.875rem;
    }

    .footer-menu {
        text-align: center;
    }

    .footer-menu li a {
        justify-content: center;
    }

    .footer-menu li a:hover {
        padding-left: 0;
    }
}

/* ========================================
   PAGE HERO STYLES
======================================== */
.page-hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.page-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 3;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin: 0;
    justify-content: center;
}

.page-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-breadcrumb .breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.page-breadcrumb .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.page-breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

/* ========================================
   PAGE CONTENT STYLES
======================================== */
.page-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.page-content h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.page-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.page-content p {
    margin-bottom: 1.5rem;
}

.page-content blockquote {
    border-left: 4px solid var(--color-primary);
    background: rgba(63, 165, 77, 0.05);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    position: relative;
}

.page-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.page-content ul,
.page-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.page-content ul li,
.page-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.page-content ul li::marker {
    color: var(--color-primary);
}

.page-content ol li::marker {
    color: var(--color-primary);
    font-weight: 600;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.page-content .wp-block-image {
    text-align: center;
}

.page-content .wp-block-image figcaption {
    font-style: italic;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-content table th {
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.page-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.page-content table tr:nth-child(even) {
    background: #f8f9fa;
}

.page-links {
    text-align: center;
    margin: 3rem 0;
}

.page-links-title {
    color: var(--color-primary);
}

.related-page-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-page-thumbnail {
    overflow: hidden;
}

.related-page-thumbnail img {
    transition: transform 0.3s ease;
    height: 200px;
    object-fit: cover;
}

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

.related-page-title a:hover {
    color: var(--color-primary) !important;
}

.page-share-section .social-share-buttons {
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .page-hero-section {
        min-height: 50vh;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .page-content {
        font-size: 1rem;
        padding: 2rem !important;
    }
    
    .related-pages-section .row {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .page-hero-section {
        min-height: 40vh;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-content {
        padding: 1.5rem !important;
        font-size: 0.95rem;
    }
    
    .page-breadcrumb .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .page-cta-section .row {
        text-align: center;
    }
    
    .page-cta-section .col-lg-4 {
        margin-top: 1rem;
    }
    
    .page-share-section .row {
        text-align: center;
    }
    
    .page-share-section .social-share-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media print {
    .page-hero-section,
    .page-cta-section,
    .page-share-section,
    .related-pages-section,
    .page-comments-section {
        display: none;
    }
    
    .page-content {
        box-shadow: none;
        padding: 0 !important;
    }
    
    .page-content h1,
    .page-content h2,
    .page-content h3 {
        color: #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-dot {
        animation: none;
    }
    
    .related-page-card {
        transition: none;
    }
    
    .related-page-thumbnail img {
        transition: none;
    }
}

@media (prefers-contrast: high) {
    .page-content {
        border: 2px solid #000;
    }
    
    .page-breadcrumb .breadcrumb {
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid white;
    }
}

/* ========================================
   TIMELINE STYLES
======================================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--bs-primary), var(--bs-info));
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px currentColor;
}

/* ========================================
   404 & SEARCH STYLES
======================================== */
.error-hero,
.search-hero {
    background: var(--gradient-primary);
}

.error-icon,
.search-icon {
    opacity: 0.8;
}

.search-form-inline .input-group {
    max-width: 400px;
    margin: 0 auto;
}

.suggestion-item {
    transition: var(--transition-base);
}

.suggestion-item:hover {
    background: var(--base-2);
    border-radius: 0.5rem;
}

.suggestion-icon i {
    transition: var(--transition-base);
}

.suggestion-item:hover .suggestion-icon i {
    transform: scale(1.1);
}

.result-item {
    transition: var(--transition-base);
}

.result-item:hover {
    transform: translateY(-3px);
}

.no-results,
.no-events {
    animation: fadeInUp 0.5s ease-out;
}

/* ========================================
   SINGLE POST STYLES
======================================== */
.single-post-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.post-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.post-hero-content {
    position: relative;
    z-index: 3;
}

.post-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.post-excerpt {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.post-categories .post-category {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.post-meta-items {
    font-size: 0.95rem;
}

.meta-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.post-breadcrumb .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    margin: 0;
    justify-content: center;
}

.post-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.post-breadcrumb .breadcrumb-item a {
    color: white;
    text-decoration: none;
}

.post-breadcrumb .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.post-breadcrumb .breadcrumb-item.active {
    color: white;
    font-weight: 500;
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #2c3e50;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--color-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.post-content h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.post-content h3 {
    font-size: 1.8rem;
}

.post-content h4 {
    font-size: 1.5rem;
}

.post-content p {
    margin-bottom: 1.8rem;
}

.post-content blockquote {
    border-left: 5px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(63, 165, 77, 0.05), rgba(63, 165, 77, 0.02));
    padding: 2rem;
    margin: 3rem 0;
    border-radius: 12px;
    font-style: italic;
    position: relative;
    font-size: 1.2rem;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-primary);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.post-content ul,
.post-content ol {
    margin: 2rem 0;
    padding-left: 2rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.post-content ul li::marker {
    color: var(--color-primary);
}

.post-content ol li::marker {
    color: var(--color-primary);
    font-weight: 600;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin: 3rem 0;
}

.post-content .wp-block-image {
    text-align: center;
}

.post-content .wp-block-image figcaption {
    font-style: italic;
    color: #6c757d;
    font-size: 0.95rem;
    margin-top: 1rem;
    padding: 0 2rem;
}

.post-footer {
    border-top: 2px solid #e9ecef;
}

.tag-list a {
    transition: all 0.3s ease;
}

.tag-list a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.author-bio-section {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
    border-radius: 12px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.related-post-card {
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.related-post-thumbnail {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.related-post-thumbnail img {
    transition: transform 0.3s ease;
    height: 180px;
    object-fit: cover;
}

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

.related-post-title a:hover {
    color: var(--color-primary) !important;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

.widget-header {
    border-radius: 8px 8px 0 0;
}

.recent-post-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.recent-post-thumb img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.recent-post-title a:hover {
    color: var(--color-primary) !important;
}

.category-item a:hover {
    background: rgba(63, 165, 77, 0.1) !important;
    color: var(--color-primary) !important;
}

.hover-bg-light:hover {
    background: #f8f9fa !important;
}

.newsletter-form-sidebar .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #2c3e50;
}

.newsletter-form-sidebar .form-control:focus {
    background: white;
    border-color: white;
    box-shadow: none;
}

.newsletter-form-sidebar .form-control::placeholder {
    color: rgba(44, 62, 80, 0.7);
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    position: relative;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
    0% { transform: translate(-50%, 0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

@media (max-width: 991.98px) {
    .single-post-hero {
        min-height: 60vh;
    }
    
    .post-title {
        font-size: 2.5rem;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .post-content {
        font-size: 1.1rem;
        padding: 2rem !important;
    }
    
    .post-meta-items {
        justify-content: center !important;
        gap: 1rem !important;
    }
    
    .meta-item {
        font-size: 0.9rem;
    }
    
    .post-sidebar {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .single-post-hero {
        min-height: 50vh;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
        padding: 1.5rem !important;
    }
    
    .post-meta-items {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem !important;
    }
    
    .post-breadcrumb .breadcrumb {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .post-content h2 {
        font-size: 1.8rem;
    }
    
    .post-content h3 {
        font-size: 1.5rem;
    }
    
    .post-content blockquote {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    
    .author-bio-section .row {
        text-align: center;
    }
    
    .author-bio-section .col-auto,
    .author-bio-section .col {
        flex: none;
        width: 100%;
    }
    
    .author-bio-section .col-auto {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .single-post-hero {
        min-height: 40vh;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 0.95rem;
        padding: 1rem !important;
    }
    
    .post-categories .post-category {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.3rem;
    }
    
    .post-content blockquote {
        padding: 1rem;
        font-size: 1rem;
        margin: 2rem 0;
    }
    
    .post-content blockquote::before {
        font-size: 3rem;
        left: 15px;
    }
    
    .related-posts-section .row {
        flex-direction: column;
    }
    
    .post-share-section .row,
    .author-bio-section .row {
        text-align: center;
    }
    
    .post-share-section .social-share-buttons {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media print {
    .single-post-hero,
    .post-share-section,
    .author-bio-section,
    .related-posts-section,
    .post-comments-section,
    .post-sidebar {
        display: none;
    }
    
    .post-content-wrapper {
        box-shadow: none;
        padding: 0 !important;
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3 {
        color: #000;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-dot {
        animation: none;
    }
    
    .related-post-card,
    .related-post-thumbnail img,
    .tag-list a {
        transition: none;
    }
}

@media (prefers-color-scheme: dark) {
    .post-content-wrapper,
    .sidebar-widget .bg-white {
        background: #2d2d2d !important;
        color: white;
    }
    
    .post-content {
        color: #e9ecef;
    }
    
    .post-content h2,
    .post-content h3,
    .post-content h4 {
        color: #6cd18e;
    }
    
    .recent-post-title a,
    .related-post-title a {
        color: white !important;
    }
    
    .recent-post-title a:hover,
    .related-post-title a:hover {
        color: #6cd18e !important;
    }
}

.post-content a:focus,
.tag-list a:focus,
.recent-post-title a:focus,
.related-post-title a:focus,
.category-item a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.newsletter-form-sidebar button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.post-content ::selection {
    background: var(--color-primary);
    color: white;
}

.post-content ::-moz-selection {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   ACCESSIBILITY - WCAG 2.1
======================================== */

/* Skip link visible on focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Focus visible styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(104, 179, 146, 0.5);
}

/* High contrast focus for keyboard navigation */
*:focus {
    outline: 3px solid var(--color-primary) !important;
    outline-offset: 2px !important;
}

*:focus:not(:focus-visible) {
    outline: none !important;
}

/* Screen reader only text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Links with adequate contrast - visited state */
a:visited {
    color: inherit;
}

/* Required field indicators */
label .required,
.form-required {
    color: #dc3545;
}

/* Error states */
.is-invalid,
.was-validated .invalid-feedback {
    border-color: #dc3545;
}

/* Valid states */
.is-valid,
.was-validated .valid-feedback {
    border-color: var(--color-success);
}

/* Ensure minimum touch target size (44x44) */
.btn,
a.btn,
button,
input[type="submit"],
input[type="button"],
.nav-link,
.dropdown-item {
    min-height: 44px;
    min-width: 44px;
}

/* Ensure images have alt text indication when missing */
img:not([alt]) {
    border: 5px dashed #dc3545;
}

/* Print accessibility */
@media print {
    .skip-link,
    .navbar,
    .footer,
    .btn,
    video,
    audio {
        display: none !important;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* ========================================
   VIDEO PLAYER MOBILE
======================================== */
@media (max-width: 575.98px) {
    /* Video modal responsive */
    #videoModal .modal-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }
    
    #videoModal .modal-content {
        border-radius: 0.75rem;
    }
    
    #videoModal iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    #videoModal .modal-body {
        padding: 0.5rem;
    }
    
    #videoModal .btn-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 10;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Video thumbnail responsive */
    .video-thumbnail-wrapper {
        aspect-ratio: 16 / 9;
    }
    
    .video-card {
        margin-bottom: 1rem;
    }
}

/* ========================================
   SWIPER CAROUSEL MOBILE
======================================== */
@media (max-width: 575.98px) {
    .videos-carousel-wrapper {
        padding: 0 0.5rem;
    }
    
    .videos-carousel-wrapper .swiper-button-prev,
    .videos-carousel-wrapper .swiper-button-next {
        display: none;
    }
    
    .videos-pagination {
        margin-top: 1rem;
    }
    
    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   FORM MOBILE
======================================== */
@media (max-width: 575.98px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    .form-control,
    .form-select {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    .btn {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
    }
}

/* ========================================
   WHATSAPP FLOATING BUTTON MOBILE
======================================== */
@media (max-width: 575.98px) {
    .whatsapp-float,
    .whatsapp-floating-btn {
        bottom: 20px !important;
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 1.75rem !important;
    }
    
    .whatsapp-float::before {
        font-size: 1.75rem !important;
    }
}

/* ========================================
   DONACIONES — CARDS
======================================== */

/* Forzar color oscuro dentro de las cards (evita herencia de color:white de la sección) */
.donacion-card,
.donacion-card * {
    color: var(--color-dark);
}
.donacion-card .text-muted,
.donacion-card label {
    color: var(--color-muted) !important;
}

/* Ícono: dorado/bronce, sin círculo */
.donacion-icon {
    text-align: center;
    margin-bottom: 1rem;
}
.donacion-icon i {
    color: var(--color-primary-dark) !important;
    font-size: 2rem;
}

/* Alias / CBU / código: tamaño controlado sin desborde */
.donacion-card code {
    font-size: 0.8rem !important;
    font-weight: 600;
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    display: block;
    color: var(--color-dark) !important;
}

/* Contenedor del dato: evitar overflow */
.dato-item .d-flex,
.datos-bancarios .d-flex,
.datos-mp .d-flex {
    min-width: 0;
    overflow: hidden;
}
.dato-item .d-flex > span,
.dato-item .d-flex > code {
    flex: 1 1 0;
    min-width: 0;
}

/* Botón copiar */
.btn-copiar.btn {
    background: var(--color-accent) !important;
    color: #fff !important;
    border-color: var(--color-accent) !important;
    flex-shrink: 0;
    padding: 0.25rem 0.5rem;
}
.btn-copiar.btn:hover {
    background: #A87845 !important;
    border-color: #A87845 !important;
}

/* ========================================
   CONTACT FORM 7 — ESTILOS FUNDACIÓN
======================================== */

/* Contenedor general */
.wpcf7 {
    width: 100%;
}

/* Párrafos del formulario */
.wpcf7 p {
    margin-bottom: 1.25rem;
}

/* Labels */
.wpcf7 label {
    display: block;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

/* Inputs y textarea */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 1rem;
    color: var(--color-dark);
    background-color: #fff;
    border: 1.5px solid var(--color-sand);
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(104, 179, 146, 0.25);
}

.wpcf7-form-control.wpcf7-textarea {
    resize: vertical;
    min-height: 140px;
}

/* Estado inválido */
.wpcf7-form-control.wpcf7-not-valid {
    border-color: #C4745A;
    background-color: #fdf6f6;
}

.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #C4745A;
    font-style: italic;
}

/* Botón submit */
.wpcf7-form-control.wpcf7-submit {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    font-family: var(--font-body, 'Nunito Sans', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-dark);
    background-color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.wpcf7-form-control.wpcf7-submit:active {
    transform: translateY(0);
}

/* Spinner */
.wpcf7-spinner {
    margin-left: 0.75rem;
    vertical-align: middle;
}

/* Mensaje de respuesta */
.wpcf7-response-output {
    margin-top: 1.25rem !important;
    padding: 0.85rem 1.25rem !important;
    border-radius: 6px !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
    background-color: #fdf6f6;
    border: 1.5px solid #C4745A !important;
    color: #C4745A;
}

.wpcf7-form.sent .wpcf7-response-output {
    background-color: #f0f7f3;
    border: 1.5px solid var(--color-secondary) !important;
    color: var(--color-secondary);
}

.wpcf7-form.failed .wpcf7-response-output {
    background-color: #fdf6f6;
    border: 1.5px solid #C4745A !important;
    color: #C4745A;
}

/* ========================================
   PALETA #68B392 — OVERRIDES GLOBALES
======================================== */

/* btn-outline-primary: verde con texto verde, hover fondo verde + texto oscuro */
.btn-outline-primary {
    color: var(--color-primary-dark) !important;
    border-color: var(--color-primary) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-dark) !important;
}

/* Badges bg-primary: texto oscuro para contraste */
.badge.bg-primary {
    color: var(--color-dark) !important;
}

/* bg-primary sections: texto blanco para contraste sobre el verde */
.bg-primary,
.bg-gradient-primary,
.donaciones-section,
.hero-quienes.bg-primary,
.proyecto-resumen.bg-primary {
    color: var(--color-white) !important;
}
.bg-primary a:not(.btn),
.bg-gradient-primary a:not(.btn) {
    color: rgba(255,255,255,0.85);
}

/* bg-primary buttons inside sections: ajuste de contraste */
.bg-primary .btn-primary,
.bg-gradient-primary .btn-primary {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-primary-dark);
}
.bg-primary .btn-primary:hover,
.bg-gradient-primary .btn-primary:hover {
    background-color: var(--color-sand);
    border-color: var(--color-sand);
    color: var(--color-primary-dark);
}

/* Íconos text-primary: verde legible sobre blanco */
.text-primary {
    color: var(--color-primary-dark) !important;
}

/* Nav links: usar verde oscuro para contraste sobre blanco */
.main-navigation .nav-link,
.navbar-nav .nav-link {
    color: var(--color-dark) !important;
}
.main-navigation .nav-link:hover,
.navbar-nav .nav-link:hover {
    color: var(--color-primary-dark) !important;
}


