﻿/* --- Reset & Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Default: Dark Mode (Luna) */
  --bg-primary: #080808;
  --bg-surface: #111111;
  --text-primary: #F2F2F2;
  --text-secondary: #9A9A9E;
  --accent: #C5A059;
  --accent-hover: #DDB774;
  --border: #222225;
  --accent-rgb: 197, 160, 89;
  
  --font-headings: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-speed: 0.4s;
  --transition-cubic: cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-premium: 0 10px 40px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(8, 8, 8, 0.85);
}

body.light-mode {
  /* Light Mode (Sol) */
  --bg-primary: #F9F9FB;
  --bg-surface: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #55555A;
  --accent: #A6823F;
  --accent-hover: #C29B56;
  --border: #E2E2E6;
  --accent-rgb: 166, 130, 63;
  --shadow-premium: 0 10px 40px rgba(166, 130, 63, 0.08);
  --header-bg: rgba(249, 249, 251, 0.85);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

/* --- Section Settings --- */
.section {
  padding: 100px 6%;
  position: relative;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 60px auto;
  text-align: center;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text-primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-speed) var(--transition-cubic);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.pf-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  background-color: var(--header-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  transition: all var(--transition-speed) ease;
}

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

.pf-logo-img {
  height: 85px;
  width: auto;
  transition: filter var(--transition-speed) ease, height var(--transition-speed) ease;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Logo turns white in dark mode */
}

/* Automatic logo contrast adjustment */
body.light-mode .pf-logo-img {
  filter: none; /* Shows original dark colors in light mode */
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-speed) ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Switcher */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.05);
}

.nav-cta {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.2);
}

.nav-cta:hover {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.mobile-menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 110px;
  left: 0;
  width: 100%;
  height: calc(100vh - 110px);
  background-color: var(--bg-primary);
  z-index: 99;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  padding: 40px 6%;
  gap: 30px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-family: var(--font-headings);
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.mobile-nav-divider {
  height: 1px;
  background-color: var(--border);
}

.mobile-nav-cta {
  background-color: var(--accent);
  color: #FFFFFF;
  padding: 16px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- SECTION 1: Hero --- */
.hero-section {
  min-height: 100vh;
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.4) 0%, var(--bg-primary) 98%);
  z-index: 1;
  pointer-events: none;
}

body.light-mode .hero-overlay {
  background: linear-gradient(to bottom, rgba(249, 249, 251, 0.3) 0%, var(--bg-primary) 98%);
}

.hero-content {
  max-width: 950px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6%;
}

.hero-headline {
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.15;
  margin-bottom: 24px;
  color: #FFFFFF;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.light-mode .hero-headline {
  color: #111111;
  text-shadow: none;
}

.hero-subheadline {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 750px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.light-mode .hero-subheadline {
  color: #444449;
  text-shadow: none;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  z-index: 10;
}

/* Floating news cards (Parallax) */
.hero-floating-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}

.news-card {
  position: absolute;
  background-color: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 16px 20px;
  width: 280px;
  box-shadow: var(--shadow-premium);
  pointer-events: auto;
  opacity: 0.75;
  transition: transform 0.1s ease-out, opacity 0.3s;
}

body.light-mode .news-card {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  opacity: 0.95;
  transform: scale(1.02);
}

.news-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.news-title {
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.news-meta {
  font-size: 10px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

/* Parallax Positioning */
.nc-1 { top: 22%; left: 5%; }
.nc-2 { bottom: 18%; left: 8%; }
.nc-3 { top: 20%; right: 5%; }
.nc-4 { bottom: 20%; right: 7%; }

.scroll-down-btn {
  position: absolute;
  bottom: 30px;
  z-index: 5;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: pulse-arrow 2s infinite ease-in-out;
  transition: all 0.3s;
}

.scroll-down-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.05);
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* --- SECTION 2: Trust & Authority --- */
.trust-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-speed) ease;
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.trust-quote {
  font-family: var(--font-headings);
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.3;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.trust-subtext {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.trust-badge-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

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

.stat-item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.stat-item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-premium);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* --- SECTION 3: FOMO & Urgency --- */
.fomo-section {
  position: relative;
  background-color: #0c0d10;
  color: #FFFFFF;
  padding: 80px 6%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

body.light-mode .fomo-section {
  background-color: #f0ecdf;
  color: #111111;
}

.fomo-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.12) 0%, transparent 70%);
  z-index: 1;
}

.fomo-container {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.fomo-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  display: block;
}

.fomo-headline {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  margin-bottom: 18px;
  font-weight: 600;
}

.fomo-paragraph {
  font-size: 15px;
  color: #afb1b6;
  line-height: 1.6;
  margin-bottom: 30px;
}

body.light-mode .fomo-paragraph {
  color: #55555e;
}

.fomo-counter-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 20px;
  max-width: 500px;
}

body.light-mode .fomo-counter-box {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.fomo-counter-text {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.fomo-counter-text strong {
  color: var(--accent);
  font-size: 16px;
}

.fomo-progress-bar-container {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

body.light-mode .fomo-progress-bar-container {
  background-color: rgba(0, 0, 0, 0.1);
}

.fomo-progress-bar {
  height: 100%;
  background-color: var(--accent);
  border-radius: 4px;
  transition: width 1s ease-in-out;
}

.fomo-timer-wrapper {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(10px);
}

body.light-mode .fomo-timer-wrapper {
  background-color: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.08);
}

.timer-title {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 600;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.timer-item {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 12px 6px;
}

body.light-mode .timer-item {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.02);
}

.timer-num {
  font-family: var(--font-headings);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1.2;
}

.timer-lbl {
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.timer-cta {
  width: 100%;
}

/* --- SECTION 4: Catalog & Fichas --- */
.catalog-section {
  background-color: var(--bg-primary);
}

.catalog-grid {
  display: flex;
  overflow-x: auto;
  flex-wrap: nowrap;
  gap: 30px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 10px 40px 10px;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-primary);
  width: 100%;
  max-width: 1200px;
  min-width: 0;
}

.catalog-grid::-webkit-scrollbar {
  height: 8px;
}

.catalog-grid::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-radius: 4px;
}

.catalog-grid::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.catalog-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.horse-card {
  flex: 0 0 380px;
  width: 380px;
  scroll-snap-align: start;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-speed) var(--transition-cubic);
}

.horse-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-premium);
}

.horse-gallery-container {
  height: 320px;
  position: relative;
  overflow: hidden;
  background-color: #000;
}

.horse-gallery-wrapper {
  height: 100%;
  width: 100%;
  position: relative;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.gallery-image.active {
  opacity: 1;
  z-index: 2;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.gallery-arrow:hover {
  background: var(--accent);
}

.arrow-left { left: 16px; }
.arrow-right { right: 16px; }

.gallery-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

.horse-status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 5;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-available {
  background-color: var(--accent);
  color: #FFFFFF;
}

.status-reserved {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .status-reserved {
  background-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.15);
}

.horse-info {
  padding: 30px;
}

.horse-name {
  font-size: 26px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.horse-breed {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  display: block;
}

.horse-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  height: 70px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.horse-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin-bottom: 24px;
}

.spec-item {
  text-align: center;
}

.spec-label {
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.spec-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-cta {
  width: 100%;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #FFFFFF;
  font-size: 44px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 210;
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 225;
  transition: all 0.3s;
}

.lightbox-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-content-wrapper .arrow-left { left: -70px; }
.lightbox-content-wrapper .arrow-right { right: -70px; }

/* --- SECTION 5: Wizard Qualifier --- */
.wizard-section {
  background-color: var(--bg-surface);
  position: relative;
  transition: background-color var(--transition-speed) ease;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.wizard-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(var(--accent-rgb), 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 1;
}

.wizard-container {
  position: relative;
  z-index: 5;
  max-width: 850px;
  margin: 0 auto;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 50px;
  box-shadow: var(--shadow-premium);
  transition: all var(--transition-speed) ease;
}

.wizard-progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.wizard-progress-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
}

.step-indicator {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.step-indicator.active .step-num {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.4);
}

.step-indicator.active .step-label {
  color: var(--text-primary);
}

.step-indicator.completed .step-num {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

/* Steps block */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeInStep 0.4s ease;
}

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

.step-title {
  font-size: 20px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-primary);
  font-weight: 500;
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.wizard-options-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wizard-option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.wizard-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.option-content {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.px-sm .option-content {
  padding: 16px 12px;
}

.option-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.option-title {
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.option-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.wizard-option-card input[type="radio"]:checked + .option-content {
  border-color: var(--accent);
  background-color: rgba(var(--accent-rgb), 0.05);
  box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.15);
}

.wizard-option-card:hover .option-content {
  border-color: var(--accent);
}

.wizard-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid var(--border);
  padding-top: 30px;
}

.btn-back {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-back:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Wizard Form Elements */
.wizard-form-fields {
  max-width: 650px;
  margin: 0 auto 30px auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.wizard-input-field,
.wizard-select-field,
.wizard-textarea-field {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  transition: all 0.3s;
  width: 100%;
}

.wizard-input-field:focus,
.wizard-select-field:focus,
.wizard-textarea-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.2);
}

.wizard-select-field {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23C5A059' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 40px;
}

/* Success State */
.wizard-success-state {
  display: none;
  text-align: center;
  padding: 30px 10px;
  animation: fadeInStep 0.5s ease;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(var(--accent-rgb), 0.15);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.2);
}

.wizard-success-state h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.wizard-success-state p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.success-summary-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 30px;
  max-width: 450px;
  margin: 0 auto 35px auto;
  text-align: left;
}

.success-summary-box p {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.success-summary-box p:last-child {
  margin-bottom: 0;
}

.success-summary-box strong {
  font-weight: 500;
  color: var(--text-secondary);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.whatsapp-submit-btn {
  background-color: #25D366;
  border-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-submit-btn:hover {
  background-color: #20ba59;
  border-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* --- SECTION 6: Blog de Autoridad --- */
.blog-section {
  background-color: var(--bg-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-speed) ease;
}

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

.blog-img-wrapper {
  height: 200px;
  overflow: hidden;
  background-color: #000;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition-cubic);
  opacity: 0.85;
}

.blog-card:hover .blog-img {
  transform: scale(1.06);
  opacity: 1;
}

.blog-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}

.blog-meta span:last-child {
  color: var(--text-secondary);
}

.blog-title {
  font-family: var(--font-headings);
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-primary);
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.blog-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  height: 58px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.blog-link:hover {
  color: var(--accent-hover);
}

/* --- ACTIVE UX: INACTIVITY POPUP --- */
.inactivity-popup {
  position: fixed;
  bottom: -400px;
  right: 30px;
  width: 350px;
  background-color: var(--bg-surface);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 30px 24px;
  z-index: 150;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: bottom 0.6s var(--transition-cubic);
}

.inactivity-popup.active {
  bottom: 30px;
}

.popup-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
}

.popup-close-btn:hover {
  color: var(--text-primary);
}

.popup-icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 15px;
  text-align: center;
}

.popup-title {
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.popup-text {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 20px;
}

.popup-actions {
  display: flex;
  justify-content: center;
}

.popup-cta {
  width: 100%;
  font-size: 11px;
  padding: 12px 20px;
}

/* --- FLOATING WHATSAPP BUTTON --- */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25D366;
  color: #FFFFFF;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  transition: all 0.3s;
  animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #22c05b;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- FOOTER & LEGAL --- */
.pf-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 80px 6% 30px 6%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 85px;
  align-self: flex-start;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.footer-socials a:hover {
  background-color: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 25px;
}

.contact-list,
.legal-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.contact-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-list a:hover {
  color: var(--accent);
}

.legal-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s var(--transition-cubic), transform 0.8s var(--transition-cubic);
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
  .pf-header {
    height: 95px;
    padding: 0 4%;
  }
  .mobile-nav-overlay {
    top: 95px;
    height: calc(100vh - 95px);
  }
  .nav-menu {
    display: none;
  }
  .nav-actions .nav-cta {
    display: none;
  }
  .mobile-menu-toggle-btn {
    display: block;
  }
  .hero-floating-container {
    display: none; /* Hide floating news on tablet/mobile for performance and UX */
  }
  .trust-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fomo-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pf-logo-img {
    height: 70px;
  }
  .catalog-grid {
    max-width: 100%;
    padding-bottom: 25px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 500px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 4%;
  }
  .hero-section {
    padding-top: 140px; /* Spacing for the larger header */
  }
  .hero-headline {
    margin-bottom: 16px;
  }
  .hero-subheadline {
    margin-bottom: 30px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog-grid {
    gap: 20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .horse-card {
    flex: 0 0 84vw; /* Adaptive card width on mobile screens */
    width: 84vw;
    max-width: 360px;
    scroll-snap-align: center; /* Snaps to center for swipe prompt */
  }
  .horse-gallery-container {
    height: 260px; /* Reduced gallery height on mobile */
  }
  .wizard-container {
    padding: 30px 20px;
  }
  .wizard-options-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .wizard-options-grid.cols-3 {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .wizard-input-field,
  .wizard-select-field,
  .wizard-textarea-field {
    font-size: 16px; /* Prevents auto-zoom on iOS focus */
  }
  .success-actions {
    flex-direction: column;
  }
  .success-actions .btn {
    width: 100%;
  }
  .lightbox-content-wrapper .arrow-left { left: 10px; }
  .lightbox-content-wrapper .arrow-right { right: 10px; }
  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .floating-whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }
}

/* Extra small mobile adjustments */
@media (max-width: 480px) {
  .inactivity-popup {
    width: calc(100% - 40px);
    right: 20px;
    left: 20px;
    bottom: -500px;
    padding: 24px 20px;
  }
  .inactivity-popup.active {
    bottom: 20px;
  }
}

