/*
Theme Name: Fabrica Template
Theme URI: http://localhost:8888
Description: Plantilla de WordPress a medida, súper rápida, responsiva y con SEO optimizado para la Fábrica Mágica de Chocolate.
Author: Antigravity
Author URI: https://google.com
Version: 0.1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fabrica-template
*/

/* -------------------------------------------------------------
   VARIABLES & DESIGN SYSTEM
------------------------------------------------------------- */
:root {
  --color-bg-light: #fffcf7;
  --color-primary: #ce9b2e;
  --color-primary-hover: #b48523;
  --color-primary-glow: rgba(206, 155, 46, 0.25);
  --color-secondary: #281d19;
  --color-dark: #110400;
  --color-text-main: #3a2e2a;
  --color-text-light: #ffffff;
  --color-gray-bg: #faf8f5;
  --color-border: #ede8e2;
  --color-accent: #d4a843;
  
  --font-title: 'Merienda', Georgia, serif;
  --font-subtitle: 'Caveat', cursive, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --box-shadow-premium: 0 8px 32px rgba(40, 29, 25, 0.06);
  --box-shadow-hover: 0 20px 48px rgba(40, 29, 25, 0.12);
  --box-shadow-glow: 0 0 40px rgba(206, 155, 46, 0.15);
  --border-radius-standard: 16px;
  --border-radius-lg: 24px;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg-light);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  margin-top: 0;
  line-height: 1.3;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 70px 0;
  }
}

/* -------------------------------------------------------------
   TYPOGRAPHY & SECTIONS HEADER
------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-subtitle);
  font-size: 30px;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: 600;
  display: block;
}

.section-title {
  font-size: 40px;
  color: var(--color-secondary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
  margin-bottom: 0;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 3px;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 3px;
}

/* For dark sections */
.section-dark {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

.section-dark .section-title {
  color: var(--color-text-light);
}

.section-dark .section-title::before {
  background-color: var(--color-text-light);
}

/* -------------------------------------------------------------
   BUTTONS
------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-dark);
  box-shadow: 0 4px 20px rgba(206, 155, 46, 0.35);
}

.btn-primary:hover {
  color: var(--color-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(206, 155, 46, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  border: 2px solid rgba(206, 155, 46, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: var(--color-dark);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(206, 155, 46, 0.4);
}

/* -------------------------------------------------------------
   HEADER & NAVIGATION
------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.site-header.sticky {
  position: fixed;
  background-color: rgba(17, 4, 0, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.logo img, 
.logo .custom-logo {
  max-height: 45px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  background-color: transparent !important;
}

.logo a {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.main-navigation a {
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 5px 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.main-navigation a:hover::after,
.main-navigation li.current-menu-item a::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-light);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-dark);
    padding: 100px 40px 40px;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 25px;
  }
  
  .main-navigation a {
    font-size: 18px;
  }
  
  /* Hamburger Anim */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* -------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, rgba(17, 4, 0, 0.88) 0%, rgba(17, 4, 0, 0.45) 50%, rgba(17, 4, 0, 0.7) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--color-text-light);
  max-width: 850px;
  padding: 140px 20px 80px;
}

.hero-subtitle {
  font-family: var(--font-subtitle);
  font-size: 36px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
  font-weight: 500;
  animation: heroFadeIn 1s ease 0.2s both;
}

.hero-title {
  font-size: 76px;
  font-weight: 700;
  margin-bottom: 28px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: heroFadeIn 1s ease 0.5s both;
}

.hero-title span.animated-text {
  color: var(--color-primary);
  min-height: 95px;
  text-shadow: 0 2px 20px rgba(206, 155, 46, 0.3);
  filter: drop-shadow(0 0 20px rgba(206, 155, 46, 0.15));
}

.hero-desc {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto 45px;
  line-height: 1.75;
  opacity: 0.88;
  animation: heroFadeIn 1s ease 0.8s both;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: heroFadeIn 1s ease 1.1s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero-scroll-indicator {
  margin-top: 50px;
  cursor: pointer;
  animation: heroFadeIn 1s ease 1.4s both;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  margin: 0 auto;
  position: relative;
  transition: var(--transition-smooth);
}

.scroll-mouse:hover {
  border-color: var(--color-primary);
}

.scroll-wheel {
  width: 4px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 90vh;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-title span.animated-text {
    min-height: 62px;
  }
  .hero-subtitle {
    font-size: 26px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .hero-buttons .btn {
    width: 100%;
    max-width: 260px;
  }
  .hero-scroll-indicator {
    display: none;
  }
}

/* -------------------------------------------------------------
   INTERACTIVE CARDS (POR QUÉ VISITARNOS)
------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.interactive-card {
  position: relative;
  height: 420px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow-premium);
  cursor: pointer;
}

.interactive-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17, 4, 0, 0.92) 0%, rgba(17, 4, 0, 0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 35px 24px;
  z-index: 2;
  transition: var(--transition-smooth);
}

.card-title {
  color: var(--color-text-light);
  font-size: 21px;
  margin-bottom: 10px;
  font-family: var(--font-title);
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.card-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  max-height: 0;
  transition: opacity 0.4s ease, max-height 0.5s ease, margin 0.4s ease;
}

/* Hover Effects */
.interactive-card:hover img {
  transform: scale(1.12);
  filter: saturate(1.1) brightness(0.92);
}

.interactive-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(17, 4, 0, 0.97) 0%, rgba(17, 4, 0, 0.5) 70%, rgba(17, 4, 0, 0.1) 100%);
}

.interactive-card:hover .card-title {
  color: var(--color-primary);
}

.interactive-card:hover .card-description {
  opacity: 1;
  max-height: 120px;
  margin-top: 8px;
}

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

@media (max-width: 576px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .interactive-card {
    height: 320px;
  }
}

/* -------------------------------------------------------------
   STATISTICS SECTION
------------------------------------------------------------- */
.stats-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,248,245,0.98) 100%);
  border: 1px solid rgba(206, 155, 46, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 50px 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  box-shadow: 0 20px 60px rgba(40, 29, 25, 0.08);
  margin-top: -40px;
  position: relative;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--border-radius-standard);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 0.4s ease;
  border-radius: 3px;
}

.stat-item:hover::before {
  width: 60%;
}

.stat-item.dark {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #3a2d26 100%);
  color: var(--color-text-light);
  border: 1px solid rgba(206, 155, 46, 0.1);
}

.stat-item.light {
  background: linear-gradient(135deg, #fff 0%, var(--color-gray-bg) 100%);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.stat-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--box-shadow-glow);
}

.stat-number {
  font-family: var(--font-title);
  font-size: 44px;
  color: var(--color-primary);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-title {
  font-family: var(--font-subtitle);
  font-size: 24px;
  margin: 0;
  font-weight: 600;
}

.stat-item.dark .stat-title {
  color: rgba(255,255,255,0.9);
}
.stat-item.light .stat-title {
  color: var(--color-text-main);
}

@media (max-width: 768px) {
  .stats-box {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 0;
    padding: 35px 20px;
  }
}

/* -------------------------------------------------------------
   ACTIVITIES SECTION
------------------------------------------------------------- */
/* Parallax & Overlay for Activities Section */
.activities-section {
  position: relative;
  overflow: hidden;
}

.parallax-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.activities-parallax-overlay {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1 !important;
}

@media (max-width: 1024px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* Slider Layout */
.activities-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.activities-slider {
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}

.activities-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 30px;
}

.activity-card-slide {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  box-sizing: border-box;
}

.activity-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-standard);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.activity-card:hover {
  transform: translateY(-5px);
  border-color: rgba(206, 155, 46, 0.4);
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.activity-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.activity-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.activity-card:hover .activity-img-wrapper img {
  transform: scale(1.05);
}

.activity-content {
  padding: 30px 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.activity-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 15px;
}

.activity-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
  line-height: 1.5;
}

.activity-content .btn {
  margin-top: auto;
  align-self: center;
}

/* Arrows */
.activities-arrow {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition-bounce);
  z-index: 10;
  user-select: none;
  line-height: 1;
}

.activities-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.activities-arrow:active {
  transform: scale(0.95);
}

.activities-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.activities-slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.activities-slider-dots .dot.active {
  background: var(--color-primary);
  transform: scale(1.2);
}

@media (max-width: 992px) {
  .activity-card-slide {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .activity-card-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .activities-arrow {
    display: none;
  }
}

/* -------------------------------------------------------------
   CHOCOLATE MEDICINAL
------------------------------------------------------------- */
.medicinal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
}

.medicinal-quote {
  font-size: 18px;
  color: var(--color-text-main);
  padding-left: 25px;
  border-left: 4px solid var(--color-primary);
  margin: 30px 0 0;
  line-height: 1.6;
}

.floating-image-container {
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-image {
  max-width: 90%;
  border-radius: var(--border-radius-standard);
  box-shadow: 8px 8px 0 var(--color-primary);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 768px) {
  .medicinal-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .floating-image-container {
    height: 300px;
  }
}

/* -------------------------------------------------------------
   CACAO CON PROPÓSITO
------------------------------------------------------------- */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
}

.purpose-image-wrapper {
  display: flex;
  justify-content: center;
}

.purpose-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.purpose-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .purpose-image {
    width: 250px;
    height: 250px;
  }
}

/* -------------------------------------------------------------
   TESTIMONIALS SLIDER
------------------------------------------------------------- */
.testimonials-section {
  background: linear-gradient(180deg, var(--color-gray-bg) 0%, #fff 100%);
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(206, 155, 46, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(206, 155, 46, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.testimonial-slide {
  text-align: center;
  display: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide.active {
  display: block;
}

.testimonial-quote-icon {
  font-size: 56px;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 15px;
  font-family: Georgia, serif;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 20px;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 28px;
  font-weight: 400;
}

.testimonial-author {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
  padding-top: 15px;
}

.testimonial-author::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 35px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(206, 155, 46, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.dot:hover {
  background-color: rgba(206, 155, 46, 0.4);
}

.dot.active {
  background-color: var(--color-primary);
  transform: scale(1.3);
  box-shadow: 0 0 12px rgba(206, 155, 46, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   BLOG SECTION
------------------------------------------------------------- */
.blog-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-standard);
  overflow: hidden;
  box-shadow: var(--box-shadow-premium);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

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

.blog-img-link {
  height: 200px;
  overflow: hidden;
  display: block;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.blog-info {
  padding: 25px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 13px;
  color: #888888;
  margin-bottom: 10px;
}

.blog-post-title {
  font-size: 18px;
  color: var(--color-secondary);
  margin-bottom: 15px;
}

.blog-excerpt {
  font-size: 14px;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
}

.blog-readmore {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.blog-readmore:hover {
  color: var(--color-primary-hover);
}

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

@media (max-width: 768px) {
  .blog-slider {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   GALLERY (MASONRY)
------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.gallery-item {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius-standard);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 4, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--color-text-light);
  font-size: 24px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item {
    height: 150px;
  }
}

/* -------------------------------------------------------------
   CONTACT SECTION
------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 50px;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-quote {
  font-size: 18px;
  color: var(--color-text-main);
  padding-left: 20px;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 20px;
  font-weight: 500;
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-dark);
}

.contact-text h4 {
  font-size: 16px;
  margin: 0 0 5px 0;
  color: var(--color-secondary);
}

.contact-text p {
  margin: 0;
  font-size: 14px;
  color: #555555;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius-standard);
  overflow: hidden;
  box-shadow: var(--box-shadow-premium);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .map-container {
    height: 300px;
  }
}

/* -------------------------------------------------------------
   FOOTER
------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--color-primary);
  font-size: 22px;
  margin-bottom: 15px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links h4 {
  color: var(--color-text-light);
  font-size: 16px;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   PAGES / BLOG LISTINGS FALLBACKS
------------------------------------------------------------- */
.page-header {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 180px 0 100px;
  text-align: center;
  color: var(--color-text-light);
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(40, 29, 25, 0.75);
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: 48px;
  margin: 0;
}

.page-content-area {
  padding: 80px 0;
}

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

.content-wysiwyg p {
  margin-bottom: 28px;
  font-size: 18.5px;
  line-height: 1.9;
  text-align: justify;
  text-justify: inter-word;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.content-wysiwyg h1,
.content-wysiwyg h2,
.content-wysiwyg h3,
.content-wysiwyg h4,
.content-wysiwyg h5,
.content-wysiwyg h6 {
  font-family: var(--font-title);
  color: #5c3e35;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 45px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.content-wysiwyg h1 { font-size: 38px; }
.content-wysiwyg h2 { font-size: 32px; }
.content-wysiwyg h3 { font-size: 26px; }
.content-wysiwyg h4 { font-size: 22px; }
.content-wysiwyg h5 { font-size: 19px; }
.content-wysiwyg h6 { font-size: 17px; }

.content-wysiwyg a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 2px dashed rgba(206, 155, 46, 0.4);
  transition: var(--transition-smooth);
  font-weight: 600;
  padding: 0 2px;
}

.content-wysiwyg a:hover {
  color: var(--color-primary-hover);
  border-bottom: 2px solid var(--color-primary-hover);
  background-color: rgba(206, 155, 46, 0.06);
  border-radius: 4px;
}

/* Listas estilizadas */
.content-wysiwyg ul,
.content-wysiwyg ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

.content-wysiwyg li {
  font-size: 18.5px;
  line-height: 1.85;
  margin-bottom: 12px;
  text-align: justify;
  text-justify: inter-word;
  color: var(--color-text-main);
}

.content-wysiwyg ul li {
  list-style-type: none;
  position: relative;
  padding-left: 10px;
}

.content-wysiwyg ul li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.content-wysiwyg img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(40, 29, 25, 0.08);
  margin: 30px 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: zoom-in;
}

.content-wysiwyg img:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 40px rgba(40, 29, 25, 0.15);
}

.content-wysiwyg figcaption,
.content-wysiwyg .wp-caption-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: #7c6a65;
  text-align: center;
  margin-top: -15px;
  margin-bottom: 30px;
  font-style: italic;
  line-height: 1.5;
}

.content-wysiwyg iframe,
.content-wysiwyg video,
.content-wysiwyg .wp-block-embed,
.content-wysiwyg .wp-block-video {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(40, 29, 25, 0.1);
  margin: 35px 0;
  border: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

/* LIGHTBOX PREMIUM STYLING */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 4, 0, 0.95); /* Deep chocolate-black */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-out;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-content img.fade-out {
  transform: scale(0.95);
  opacity: 0;
}

/* Lightbox Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(40, 29, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.1);
  color: #ffffff;
}

.lightbox-close {
  top: 30px;
  right: 30px;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.1);
}
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Image Counter */
.lightbox-counter {
  position: absolute;
  top: 30px;
  left: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  background: rgba(40, 29, 25, 0.6);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

/* Image Caption */
.lightbox-caption {
  margin-top: 15px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 15px;
  text-align: center;
  background: rgba(17, 4, 0, 0.8);
  padding: 10px 24px;
  border-radius: 30px;
  max-width: 600px;
  line-height: 1.5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-caption {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 15px;
    width: 40px;
    height: 40px;
  }
  .lightbox-next {
    right: 15px;
    width: 40px;
    height: 40px;
  }
  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .lightbox-counter {
    top: 20px;
    left: 20px;
    font-size: 13px;
    padding: 4px 12px;
  }
  .lightbox-caption {
    font-size: 13px;
    padding: 8px 18px;
    max-width: 90%;
  }
}

/* -------------------------------------------------------------
   PÁGINA: ACTIVIDADES (LISTADO ALTERNADO DE LUJO)
------------------------------------------------------------- */
.activities-list-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.activity-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(206, 155, 46, 0.1);
  box-shadow: 0 10px 40px rgba(40, 29, 25, 0.03);
  transition: var(--transition-smooth);
}

.activity-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(40, 29, 25, 0.08);
  border-color: rgba(206, 155, 46, 0.3);
}

.activity-row:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
  direction: rtl;
}

.activity-row:nth-child(even) .activity-row-content {
  direction: ltr;
}

.activity-row-img-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  height: 420px;
  position: relative;
}

.activity-row-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(26,17,14,0.3) 100%);
  z-index: 2;
}

.activity-row-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.activity-row:hover .activity-row-img-wrapper img {
  transform: scale(1.06);
}

.activity-row-content {
  padding: 20px 0;
}

.activity-row-content h3 {
  font-size: 36px;
  color: var(--color-secondary);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.activity-row-content p {
  font-size: 16px;
  color: #665b57;
  line-height: 1.8;
  margin-bottom: 35px;
}

@media (max-width: 992px) {
  .activity-row,
  .activity-row:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }
  .activity-row-img-wrapper {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .activity-row {
    padding: 20px;
  }
  .activity-row-content h3 {
    font-size: 28px;
  }
}

/* -------------------------------------------------------------
   PÁGINA: VISÍTANOS (FORMULARIO PREMIUM GLASSMORPHISM)
------------------------------------------------------------- */
.visitanos-page-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}

.contact-card-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(206, 155, 46, 0.2);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 20px 50px rgba(40, 29, 25, 0.05);
  position: relative;
  overflow: hidden;
}

.contact-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #ecd08c 100%);
}

.contact-card-box h3 {
  font-size: 28px;
  color: var(--color-secondary);
  margin-bottom: 30px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.contact-card-box h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.visitanos-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border: 1px solid rgba(40, 29, 25, 0.15);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  background-color: #fffcf9;
  color: var(--color-text-main);
  transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a09590;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(206, 155, 46, 0.15);
}

.form-success-msg {
  display: none;
  background-color: #e8f7ee;
  color: #1b5e20;
  padding: 20px;
  border-radius: 12px;
  font-size: 15px;
  border-left: 4px solid #2e7d32;
  box-shadow: 0 4px 15px rgba(46,125,50,0.08);
}

@media (max-width: 992px) {
  .visitanos-page-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 576px) {
  .contact-card-box {
    padding: 30px 20px;
  }
}

/* -------------------------------------------------------------
   PÁGINA: SOBRE NOSOTROS (ESTILO PREMIUM)
------------------------------------------------------------- */
.about-history-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.about-history-content p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 25px;
  color: #554a46;
}

.about-history-img-wrapper {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  height: 480px;
  border: 4px solid #ffffff;
  outline: 1px solid rgba(206, 155, 46, 0.2);
}

.about-history-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.value-card {
  text-align: center;
  padding: 45px 30px;
  background-color: #ffffff;
  border: 1px solid rgba(206, 155, 46, 0.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(40, 29, 25, 0.02);
  transition: var(--transition-smooth);
  position: relative;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(40, 29, 25, 0.08);
  border-color: rgba(206, 155, 46, 0.3);
}

.value-card:hover::after {
  width: 40%;
}

.value-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(206, 155, 46, 0.12);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 25px;
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
  background-color: var(--color-primary);
  transform: scale(1.1) rotate(5deg);
}

.value-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-primary);
  transition: var(--transition-smooth);
}

.value-card:hover .value-icon svg {
  fill: var(--color-dark);
}

.value-card h3 {
  font-size: 22px;
  color: var(--color-secondary);
  margin-bottom: 15px;
  font-weight: 700;
}

.value-card p {
  font-size: 14.5px;
  color: #665b57;
  line-height: 1.7;
  margin: 0;
}

/* -------------------------------------------------------------
   DISEÑO PREMIUM DEL BLOG (CARDS & ZOOM)
------------------------------------------------------------- */
.blog-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

@media (max-width: 992px) {
  .blog-slider {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .blog-slider {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.blog-card {
  background-color: #ffffff;
  border: 1px solid rgba(206, 155, 46, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(40, 29, 25, 0.03);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(40, 29, 25, 0.08);
  border-color: rgba(206, 155, 46, 0.3);
}

.blog-img-link {
  height: 230px;
  overflow: hidden;
  display: block;
  position: relative;
}

.blog-img-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26,17,14,0.4) 0%, transparent 60%);
  z-index: 2;
  opacity: 0;
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-img-link::after {
  opacity: 1;
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.5s ease;
}

.blog-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.15) brightness(0.95);
}

.blog-info {
  padding: 30px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-post-title {
  font-size: 20px;
  color: var(--color-secondary);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: var(--transition-smooth);
}

.blog-post-title a {
  color: var(--color-secondary);
}

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

.blog-excerpt {
  font-size: 14.5px;
  color: #665b57;
  line-height: 1.7;
  margin-bottom: 25px;
}

.blog-readmore {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  align-self: flex-start;
  padding-bottom: 2px;
}

.blog-readmore::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.blog-card:hover .blog-readmore {
  color: var(--color-primary);
}

.blog-card:hover .blog-readmore::after {
  width: 100%;
}

.blog-readmore svg {
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-readmore svg {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   PAGINACIÓN REDISEÑADA (ESTILO OVALADO PREMIUM)
------------------------------------------------------------- */
.pagination-links {
  margin-top: 60px;
  text-align: center;
}

.pagination-links .nav-links {
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.pagination-links .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid rgba(206, 155, 46, 0.2);
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border-radius: 50%;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(40, 29, 25, 0.02);
}

.pagination-links a.page-numbers:hover {
  background-color: rgba(206, 155, 46, 0.1);
  color: var(--color-primary-hover);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(206, 155, 46, 0.15);
}

.pagination-links .page-numbers.current {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ecd08c 100%);
  border-color: var(--color-primary);
  color: var(--color-dark);
  box-shadow: 0 6px 18px rgba(206, 155, 46, 0.35);
  transform: scale(1.05);
}

.pagination-links .page-numbers.prev,
.pagination-links .page-numbers.next {
  width: auto;
  padding: 0 20px;
  border-radius: 22px;
}

.pagination-links .page-numbers.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background-color: #f7f5f2;
  border-color: rgba(206, 155, 46, 0.1);
  color: #a09590;
  box-shadow: none;
  pointer-events: none;
}

.pagination-links .screen-reader-text {
  display: none;
}

/* WYSIWYG STYLING FOR BLOG / SINGLE POSTS */
.content-wysiwyg blockquote {
  font-family: var(--font-title);
  font-size: 22px;
  font-style: italic;
  color: var(--color-secondary);
  border-left: 4px solid var(--color-primary);
  padding-left: 25px;
  margin: 40px 0;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   BACK TO TOP BUTTON WITH PROGRESS RING
------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(40, 29, 25, 0.12);
  padding: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  box-shadow: 0 8px 30px rgba(206, 155, 46, 0.3);
  transform: translateY(-3px);
}

.back-to-top .progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

.back-to-top .arrow-icon {
  color: var(--color-secondary);
  transition: var(--transition-smooth);
}

.back-to-top:hover .arrow-icon {
  color: var(--color-primary);
}

/* -------------------------------------------------------------
   ENHANCED SELECTION & FOCUS
------------------------------------------------------------- */
::selection {
  background-color: rgba(206, 155, 46, 0.2);
  color: var(--color-secondary);
}

::-moz-selection {
  background-color: rgba(206, 155, 46, 0.2);
  color: var(--color-secondary);
}

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

/* -------------------------------------------------------------
   SMOOTH IMAGE LOADING PLACEHOLDER
------------------------------------------------------------- */
img {
  background-color: var(--color-gray-bg);
  transition: opacity 0.3s ease;
}

/* Subtle grain texture overlay on dark sections */
.section-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.section-dark {
  position: relative;
}

.section-dark > * {
  position: relative;
  z-index: 1;
}

/* Header transition smoothness */
.site-header {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* -------------------------------------------------------------
   SOCIAL WIDGETS (WHATSAPP & COMPARTIR)
------------------------------------------------------------- */
.fabrica-social-widgets {
  position: relative;
  z-index: 9999;
}

/* WhatsApp Floating Button (Bottom-Left) */
.whatsapp-float-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  z-index: 9999;
}

.whatsapp-float-widget::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0;
  animation: waPulse 2s infinite;
}

.whatsapp-float-widget:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-widget:hover .whatsapp-float-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.whatsapp-float-tooltip {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(-10px);
  background-color: rgba(17, 4, 0, 0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}

.whatsapp-float-tooltip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: rgba(17, 4, 0, 0.95);
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Responsiveness for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .whatsapp-float-widget {
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float-tooltip {
    display: none;
  }
}

/* -------------------------------------------------------------
   SOCIAL LINKS LIST (HEADER / FOOTER)
------------------------------------------------------------- */
.social-links-list {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links-list .social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-light);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.social-links-list .social-icon:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: rgba(206, 155, 46, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(206, 155, 46, 0.2);
}

/* Remove hover underline for social links inside navigation */
.main-navigation .social-icon::after {
  display: none !important;
}

/* Header Specific Socials Styling */
.header-socials {
  margin: 0;
  display: flex;
  gap: 8px;
}

.header-socials .social-icon {
  width: 24px;
  height: 24px;
}

.header-socials .social-icon svg {
  width: 12px;
  height: 12px;
}

/* Hide header socials on mobile to prevent clutter */
@media (max-width: 768px) {
  .header-socials {
    display: none;
  }
}

/* Hide header socials when header is sticky (scrolled) */
.site-header.sticky .header-socials {
  display: none !important;
}

@media (min-width: 769px) {
  .main-navigation {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }
}

/* Footer Specific Socials Styling */
.footer-socials {
  margin-top: 20px;
}

/* -------------------------------------------------------------
   INLINE SOCIAL SHARING BUTTONS (POSTS, HOME, CATEGORIES)
------------------------------------------------------------- */
.share-post-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  padding: 15px 0;
  border-top: 1px dashed rgba(17, 4, 0, 0.15);
  border-bottom: 1px dashed rgba(17, 4, 0, 0.15);
  max-width: 620px;
}

.share-post-label {
  font-family: var(--font-title);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #5c3e35;
  font-weight: 600;
}

.share-post-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-post-buttons .share-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: none !important;
  color: #ffffff !important;
}

.share-post-buttons .share-btn.facebook { background-color: #1877F2 !important; }
.share-post-buttons .share-btn.x { background-color: #111111 !important; }
.share-post-buttons .share-btn.whatsapp { background-color: #25D366 !important; }
.share-post-buttons .share-btn.copy-link { background-color: #ce9b2e !important; }

.share-post-buttons .share-btn svg {
  display: block;
  fill: currentColor;
  width: 14px;
  height: 14px;
}

.share-post-buttons .share-btn span {
  display: inline-block;
  line-height: 1;
}

.share-post-buttons .share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Toast Notification for Clipboard Copy */
.share-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: rgba(17, 4, 0, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  font-size: 14px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  font-weight: 500;
}

.share-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .share-post-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
}
