@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --green-leaf: #4A7C3F;
  --green-dark: #3A6632;
  --green-light: #6B9B5F;
  --brown-tobacco: #8B5E3C;
  --brown-dark: #6B4A2E;
  --brown-light: #B08050;
  --cream: #F5F0E8;
  --cream-dark: #E8E0D0;
  --dark: #1A1A1A;
  --dark-soft: #3C3C3C;
  --gold: #C8A96E;
  --gold-light: #DCC38A;
  --gold-dark: #A8863E;
  --white: #FAFAF7;
  --bg: #FAFAF7;
  --bg-alt: #F5F0E8;
  --text: #1A1A1A;
  --text-soft: #3C3C3C;
  --text-muted: #6B6B6B;
  --card-bg: #FFFFFF;
  --nav-bg: rgba(250,250,247,0.82);
  --nav-border: rgba(200,169,110,0.12);
  --border-subtle: rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(44,44,44,0.08);
  --shadow-hover: 0 12px 48px rgba(44,44,44,0.15);
  --shadow-glow: 0 0 40px rgba(200,169,110,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
  --transition-fast: 0.2s ease;
  --nav-height: 64px;
  --max-width: 1280px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

[data-theme="dark"] {
  --green-leaf: #6BB060;
  --green-dark: #4A8C3F;
  --green-light: #8EC884;
  --brown-tobacco: #C4A07A;
  --brown-dark: #A08060;
  --brown-light: #D4B89A;
  --cream: #2A2822;
  --cream-dark: #22201C;
  --dark: #EDE8DD;
  --dark-soft: #B5AD9A;
  --gold: #DCC38A;
  --gold-light: #E8D4A0;
  --gold-dark: #C8A96E;
  --white: #1C1B17;
  --bg: #1C1B17;
  --bg-alt: #24221D;
  --text: #EDE8DD;
  --text-soft: #B5AD9A;
  --text-muted: #8A8270;
  --card-bg: #2A2822;
  --nav-bg: rgba(28,27,23,0.88);
  --nav-border: rgba(200,169,110,0.08);
  --border-subtle: rgba(200,169,110,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 12px 48px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(220,195,138,0.08);
}

body, .section, .equipo-card, .carousel-slide, .carousel-nav, .footer, .nav-links a { transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition); }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  position: relative;
  display: inline-block;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--brown-tobacco);
  margin-bottom: 2.5rem;
  max-width: 680px;
  line-height: 1.8;
  font-weight: 400;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(200,169,110,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1000;
  transition: box-shadow var(--transition), background var(--transition);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(44,44,44,0.08);
  background: var(--nav-bg);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.nav-logo {
  display: flex !important;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-leaf);
  font-family: var(--font-display);
  letter-spacing: 0.3px;
  line-height: 1;
  transform: perspective(1px) translateZ(0);
  transition: transform var(--transition);
}

.nav-logo:hover,
.nav-logo:focus,
.nav-logo:active { transform: scale(1.04); }

.nav-logo img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  padding: 4px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.2), 0 4px 14px rgba(0,0,0,0.18);
  transition: transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.nav-logo:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.3), 0 6px 18px rgba(0,0,0,0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--dark-soft);
  transition: background var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: width var(--transition), left var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--green-leaf); }

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 50%;
  left: 25%;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-soft);
  background: transparent;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  margin-left: 4px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(200,169,110,0.12);
  color: var(--gold);
  transform: rotate(15deg);
}

.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Plasencia-style heritage card */
.plasencia-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15);
  background: var(--cream);
  isolation: isolate;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.plasencia-card--timeline {
  max-width: 980px;
  min-height: 620px;
}

.plasencia-card--timeline .plasencia-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 720px;
}

.plasencia-card--timeline .plasencia-desc {
  font-size: 1rem;
  max-width: 680px;
}

.plasencia-card--timeline .plasencia-year {
  font-size: 3rem;
}

.plasencia-card--timeline .plasencia-logo {
  width: 64px;
  height: 64px;
}

.plasencia-slides {
  position: relative;
  flex: 1;
  min-height: 380px;
}

.plasencia-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.plasencia-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.plasencia-card-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1A1A18;
}

.plasencia-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85) contrast(1.05) saturate(0.9);
  opacity: 0.95;
  transform: scale(1.03);
}

@keyframes plasenciaKenBurns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.13); }
}

.plasencia-slide.active .plasencia-card-bg img {
  animation: plasenciaKenBurns 11s ease-in-out forwards;
}

.plasencia-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(245,240,232,0.02) 3px, rgba(245,240,232,0.02) 4px),
    radial-gradient(circle, rgba(245,240,232,0.05) 1px, transparent 1px);
  background-size: auto, 4px 4px;
  pointer-events: none;
  z-index: 1;
}

.plasencia-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 65%, rgba(245,240,232,0.96) 88%, var(--cream) 100%);
  z-index: 2;
}

[data-theme="dark"] .plasencia-card-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(36,34,29,0.97) 88%, var(--bg) 100%);
}

.plasencia-card-content {
  position: relative;
  z-index: 3;
  padding: 20px 36px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  background: transparent;
  margin-top: auto;
  flex-shrink: 0;
}

.plasencia-logo {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(250,250,247,0.6);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 4;
}

.plasencia-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.25);
  padding: 4px 10px;
  border-radius: 3px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.plasencia-title, .plasencia-desc, .plasencia-year {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.plasencia-card-content.content-fade .plasencia-tag,
.plasencia-card-content.content-fade .plasencia-title,
.plasencia-card-content.content-fade .plasencia-desc {
  opacity: 0;
  transform: translateY(10px);
}

.plasencia-info-bar.content-fade .plasencia-year {
  opacity: 0;
  transform: translateY(6px);
}

.plasencia-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #3A3A3A;
  margin: 0;
}

[data-theme="dark"] .plasencia-title { color: var(--cream); }

.plasencia-title span { color: var(--brown-tobacco); font-style: italic; }
[data-theme="dark"] .plasencia-title span { color: #D4B89A; }

.plasencia-desc {
  font-size: 0.92rem;
  color: #5E5E5E;
  line-height: 1.65;
  margin: 0;
  max-width: 560px;
}

[data-theme="dark"] .plasencia-desc { color: rgba(237,232,221,0.75); }

.plasencia-info-bar {
  position: relative;
  z-index: 3;
  background: var(--cream);
  padding: 22px 36px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(200,169,110,0.15);
}

[data-theme="dark"] .plasencia-info-bar { background: var(--bg); }

.plasencia-year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1;
}

.plasencia-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid #999999;
  color: #5E5E5E;
  font-size: 1.5rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}

.plasencia-nav:hover {
  background: rgba(255,255,255,0.95);
  border-color: #666;
  transform: translateY(-50%) scale(1.08);
}

.plasencia-prev { left: 18px; }
.plasencia-next { right: 18px; }

.plasencia-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.plasencia-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.plasencia-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(200,169,110,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), width var(--transition), transform var(--transition);
}

.plasencia-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .plasencia-card { min-height: 480px; }
  .plasencia-slides { min-height: 320px; }
  .plasencia-card-content { padding: 18px 24px 0; }
  .plasencia-info-bar { padding: 18px 24px 20px; }
  .plasencia-logo { width: 44px; height: 44px; top: 16px; right: 16px; }
  .plasencia-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .plasencia-prev { left: 8px; }
  .plasencia-next { right: 8px; }
  .plasencia-year { font-size: 1.7rem; }
}

/* Featured slide (Plasencia-style hero) */
.carousel-slide--featured {
  background: #1A1A18;
  border: 1px solid rgba(200,169,110,0.15);
  padding: 0;
  min-height: 420px;
}

.carousel-slide--featured > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: brightness(0.65) contrast(1.05) saturate(0.75);
  z-index: 0;
}

.carousel-slide--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28,27,23,0.9) 0%, rgba(28,27,23,0.4) 60%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.carousel-slide--featured .featured-content {
  position: relative;
  z-index: 2;
  padding: 36px 32px;
  text-align: left;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: flex-start;
}

.featured-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  border: 2px solid rgba(200,169,110,0.3);
  flex-shrink: 0;
}

.featured-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,169,110,0.12);
  padding: 4px 10px;
  border-radius: 4px;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}

.featured-desc {
  font-size: 0.84rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-slide--featured .carousel-slide-caption { display: none; }
.carousel-slide--featured .slide-tag { display: none; }
.carousel-slide--featured .slide-view-btn { display: none; }

.carousel-slide--featured.active {
  filter: brightness(1) saturate(1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  opacity: 1;
}

.carousel-slide--featured:not(.active) {
  transform: scale(0.7);
  filter: brightness(0.4) saturate(0.3);
  opacity: 0.5;
}

.carousel-slide--featured:not(.active) .featured-content {
  opacity: 0.6;
  filter: blur(2px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  background: linear-gradient(165deg, var(--bg-alt) 0%, var(--bg) 40%, var(--bg-alt) 100%);
  position: relative;
  overflow: hidden;
}

/* Hero background slider — Plasencia card as full-bleed rotating backdrop */
.hero--bg-slider {
  background: #0E1410;
  color: #FFFFFF;
  isolation: isolate;
}

.hero--bg-slider .plasencia-card--hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0E1410;
  z-index: 0;
}

.hero--bg-slider .plasencia-slides {
  min-height: 0;
  height: 100%;
}

.hero--bg-slider .plasencia-slide {
  inset: 0;
}

.hero--bg-slider .plasencia-card-bg img {
  transform: scale(1.08);
  animation-duration: 14s;
}

.hero--bg-slider .plasencia-card-content,
.hero--bg-slider .plasencia-info-bar,
.hero--bg-slider .plasencia-nav,
.hero--bg-slider .plasencia-logo,
.hero--bg-slider .plasencia-card-overlay { display: none !important; }

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at center, rgba(14,20,16,0.72) 0%, rgba(14,20,16,0.85) 55%, rgba(14,20,16,0.94) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,16,0.3) 35%, rgba(0,0,0,0.72) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero--bg-slider .hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.hero--bg-slider .hero-logo {
  background: #FFFFFF;
  padding: 6px;
  border: 2px solid rgba(220,195,138,0.6);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 6px rgba(255,255,255,0.25);
}

.hero--bg-slider .hero h1 {
  color: #FFFFFF !important;
  text-shadow: 0 2px 22px rgba(0,0,0,0.85), 0 1px 2px rgba(0,0,0,0.5);
}

.hero--bg-slider .hero h1 span { color: #DCC38A !important; }

.hero--bg-slider .hero p {
  color: #FFFFFF !important;
  font-weight: 500;
  background: rgba(0,0,0,0.65);
  padding: 14px 22px;
  border-radius: 14px;
  max-width: 660px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  animation: none !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero--bg-slider .hero-down { color: #DCC38A !important; }
.hero--bg-slider .hero-down svg { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.6)); }

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -25%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--green-leaf) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
  animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.05;
  border-radius: 50%;
  animation: heroGlow 14s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.1) translate(-30px, 20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle-leaf {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  animation: leafDrift linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.particle-leaf img { width: 100%; height: 100%; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; }

@keyframes leafDrift {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.5; }
  85% { opacity: 0.35; }
  100% { transform: translateY(-115vh) rotate(220deg); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-particles { display: none; }
}

.hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 40px rgba(74,124,63,0.18), var(--shadow-glow);
  animation: heroLogoIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

[data-theme="dark"] .hero-logo { box-shadow: 0 12px 40px rgba(107,176,96,0.25), var(--shadow-glow); }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--green-leaf);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  animation: heroSlideUp 0.9s 0.15s ease-out both;
  text-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

[data-theme="dark"] .hero h1 { text-shadow: 0 2px 20px rgba(107,176,96,0.15); }

.hero h1 span { color: var(--brown-tobacco); font-style: italic; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--dark-soft);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  font-weight: 400;
  animation: heroSlideUp 0.9s 0.35s ease-out both;
}

.hero-down {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  animation: heroSlideUp 0.9s 0.55s ease-out both, float 3s 1.8s ease-in-out infinite;
}

.hero-down svg { width: 22px; height: 22px; }

@keyframes heroLogoIn {
  from { opacity: 0; transform: scale(0.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

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

/* Sections */
.section {
  padding: 70px 0;
}

.section:nth-child(even) { background: var(--bg-alt); }

.section-header {
  margin-bottom: 1.75rem;
  position: relative;
}

.section-desc {
  font-size: 1rem;
  color: var(--dark-soft);
  line-height: 1.8;
  max-width: 680px;
}

/* Institutional story */
.nosotros-section { background: var(--bg-alt); }

.nosotros-principios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 4.5rem;
}

.nosotros-card {
  background: var(--card-bg);
  border: 1px solid var(--nav-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.nosotros-card-label {
  display: inline-block;
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}

.nosotros-card h3,
.nosotros-historia h3 {
  color: var(--green-leaf);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 1rem;
}

.nosotros-card p,
.nosotros-historia-text p {
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.85;
}

.nosotros-historia {
  display: grid;
  grid-template-columns: minmax(190px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.nosotros-historia-heading {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.nosotros-historia-heading .section-tag { margin-bottom: 1.2rem; }
.nosotros-historia-heading h3 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.nosotros-historia-text { max-width: 740px; }
.nosotros-historia-text p + p { margin-top: 1.25rem; }

.nosotros-historia-highlight {
  border-left: 3px solid var(--gold);
  color: var(--text) !important;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem) !important;
  line-height: 1.55 !important;
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.4rem;
}

/* Scroll reveal — staggered, per-section choreography driven by IntersectionObserver (main.js) */
.section-reveal {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header .section-tag,
.section-header .section-title,
.section-header .section-subtitle {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s cubic-bezier(0.4,0,0.2,1), transform 0.75s cubic-bezier(0.4,0,0.2,1);
}

.section-reveal.is-visible .section-header .section-tag { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.section-reveal.is-visible .section-header .section-title { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
.section-reveal.is-visible .section-header .section-subtitle { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }

.section-title::after {
  width: 0;
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1) 0.55s;
}

.section-reveal.is-visible .section-title::after { width: 64px; }

.section-reveal .plasencia-card,
.section-reveal .carousel,
.section-reveal .equipo-card {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.4,0,0.2,1) 0.2s, transform 0.85s cubic-bezier(0.4,0,0.2,1) 0.2s;
}

.section-reveal.is-visible .plasencia-card,
.section-reveal.is-visible .carousel,
.section-reveal.is-visible .equipo-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section-reveal .carousel ~ .carousel,
.section-reveal .equipo-card + .carousel {
  transition-delay: 0.34s;
}

/* Carousel — featured items style with portrait images */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  background-image: radial-gradient(circle, var(--border-subtle) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 0 0;
  border-radius: var(--radius-lg);
  padding: 24px 0 30px;
  perspective: 1200px;
}

[data-theme="dark"] .carousel {
  background-image: radial-gradient(circle, rgba(200,169,110,0.05) 1px, transparent 1px);
}

.carousel-track {
  display: flex;
  gap: 0;
  transition: transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
  will-change: transform;
  padding: 10px 0;
  transform-style: preserve-3d;
  cursor: grab;
}

.carousel-track:active { cursor: grabbing; }
.carousel-track.dragging { transition: none; cursor: grabbing; }

.carousel-slide {
  flex: 0 0 30%;
  min-width: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/5;
  background: var(--cream-dark);
  box-shadow: var(--shadow);
  transition: transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.5s ease, filter 0.7s ease, opacity 0.6s ease;
  transform: scale(0.7);
  filter: brightness(0.3) saturate(0.35) blur(0.5px);
  opacity: 0.45;
  transform-origin: center center;
  margin: 0 6px;
  border: 1px solid rgba(200,169,110,0.08);
}

.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,169,110,0.03), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.carousel-slide.active {
  transform: scale(1) rotateY(0deg);
  filter: brightness(1) saturate(1) blur(0px);
  opacity: 1;
  box-shadow: var(--shadow-hover), var(--shadow-glow);
  z-index: 3;
  border-color: rgba(200,169,110,0.25);
}

.carousel-slide.active::after {
  opacity: 1;
}

.carousel-slide:hover {
  transform: scale(0.56) rotateY(4deg) !important;
  filter: brightness(0.3) saturate(0.35) blur(1px) !important;
  opacity: 0.5 !important;
}

.carousel-slide.active:hover {
  transform: scale(1.03) rotateY(0deg) !important;
  filter: brightness(1.08) saturate(1.05) blur(0px) !important;
  opacity: 1 !important;
  box-shadow: var(--shadow-hover), 0 0 50px rgba(200,169,110,0.15);
  z-index: 4;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}

.carousel-slide.active:hover img {
  animation: none;
  transform: scale(1.08);
}

@keyframes slideKenBurns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.carousel-slide.active img {
  animation: slideKenBurns 9s ease-in-out infinite alternate;
}

.carousel-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(transparent 5%, rgba(10,10,10,0.85) 70%);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.4;
}

.carousel-slide .slide-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1A1A18;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
}

.carousel-slide .slide-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(250,250,247,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.carousel-slide .slide-view-btn:hover {
  background: var(--gold);
  color: #1A1A18;
  border-color: var(--gold);
}

.carousel-slide:hover .carousel-slide-caption,
.carousel-slide.active .carousel-slide-caption {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide:hover .slide-tag,
.carousel-slide.active .slide-tag {
  opacity: 1;
  transform: translateY(0);
}

.carousel-slide:not(.active) .slide-view-btn {
  display: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(250,250,247,0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(200,169,110,0.28);
  color: #2A2822;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  z-index: 10;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
}

[data-theme="dark"] .carousel-nav {
  background: rgba(28,27,23,0.78);
  color: var(--cream);
  border-color: rgba(200,169,110,0.22);
}

.carousel-nav svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

.carousel-nav:hover {
  background: var(--gold);
  color: #1A1A18;
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 28px rgba(200,169,110,0.3);
}

.carousel-nav:active { transform: translateY(-50%) scale(0.92); }

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

/* Story-capsule indicators — merge dot + autoplay progress into one signature element */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.carousel-dot {
  position: relative;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: rgba(200,169,110,0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: width var(--transition), background var(--transition);
}

.carousel-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: inherit;
}

.carousel-dot.active {
  width: 44px;
  background: rgba(200,169,110,0.2);
}

.carousel-dot:not(.active):hover {
  background: rgba(200,169,110,0.4);
}

/* Lightbox */
dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(8,8,8,0.95);
  border: none;
  padding: 0;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

dialog[open] {
  opacity: 1;
  pointer-events: all;
}

dialog::backdrop { background: transparent; }

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 48px;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.88);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

dialog[open] .lightbox-content img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 2001;
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.15);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  z-index: 2001;
  border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 400;
  text-align: center;
  padding: 0 60px;
  max-width: 600px;
}

/* Equipo card */
.equipo-card {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  border: 1px solid var(--nav-border);
  transition: box-shadow var(--transition), background var(--transition);
}

.equipo-card:hover {
  box-shadow: var(--shadow-hover);
}

.equipo-card-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(74,124,63,0.15);
}

[data-theme="dark"] .equipo-card-img { box-shadow: 0 8px 32px rgba(107,176,96,0.2); }

.equipo-card h3 {
  font-size: 1.5rem;
  color: var(--green-leaf);
  margin-bottom: 4px;
  font-family: var(--font-display);
}

.equipo-card .role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.equipo-card p {
  font-size: 0.95rem;
  color: var(--dark-soft);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: #1A1A18;
  color: var(--cream);
  padding: 48px 0 32px;
  text-align: center;
}

[data-theme="dark"] .footer { background: #11110E; }

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  opacity: 0.8;
}

.footer p {
  font-size: 0.88rem;
  opacity: 0.7;
  line-height: 1.8;
}

.footer a { color: var(--gold); transition: opacity var(--transition-fast); }
.footer a:hover { opacity: 0.8; text-decoration: underline; }

/* Keyboard focus should remain visible against every surface. */
:where(a, button, dialog) :focus-visible,
:where(a, button):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Cursor effect - tobacco leaf */
.cursor-leaf {
  width: 36px;
  height: 36px;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translate(-50%, -50%) rotate(0deg);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.cursor-leaf img { width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }

.cursor-leaf.active { opacity: 0.95; }

body.custom-cursor,
body.custom-cursor a,
body.custom-cursor button,
body.custom-cursor .carousel-slide { cursor: none; }

@media (pointer: coarse) {
  .cursor-leaf { display: none; }
  body.custom-cursor,
  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor .carousel-slide { cursor: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .carousel-slide { flex: 0 0 45%; }
  .equipo-card { gap: 24px; padding: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--card-bg);
    padding: calc(var(--nav-height) + 24px) 24px 24px;
    box-shadow: -4px 0 32px rgba(0,0,0,0.12);
    transition: right var(--transition);
    gap: 0;
    align-items: stretch;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover { background: var(--bg-alt); }
  .nav-links a::after { display: none; }

  .nav-toggle { display: flex; }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
  .section-subtitle { font-size: 0.95rem; }

  .nosotros-principios { grid-template-columns: 1fr; gap: 16px; margin-bottom: 3.5rem; }
  .nosotros-card { padding: 26px 24px; }
  .nosotros-historia { grid-template-columns: 1fr; gap: 1.25rem; }
  .nosotros-historia-heading { position: static; }

  .carousel-slide { flex: 0 0 60%; margin: 0 4px; }
  .carousel-slide { transform: scale(0.65); }
  .carousel-slide.active { transform: scale(1); }
  .carousel-slide:hover { transform: scale(0.68) !important; }
  .carousel-slide.active:hover { transform: scale(1.02) !important; }

  .equipo-card {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .equipo-card-img { width: 130px; height: 130px; }

  .lightbox-content { padding: 20px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-counter { bottom: 16px; font-size: 0.75rem; }
  .lightbox-caption { bottom: 16px; font-size: 0.8rem; padding: 0 40px; }
}

@media (max-width: 480px) {
  .carousel-slide { flex: 0 0 75%; transform: scale(0.6); margin: 0 3px; }
  .carousel-slide.active { transform: scale(1); }
  .carousel-slide:hover { transform: scale(0.63) !important; }
  .carousel-slide.active:hover { transform: scale(1.02) !important; }
  .hero { padding-top: calc(var(--nav-height) + 30px); }
  .hero-logo { width: 90px; height: 90px; }
  .container { padding: 0 16px; }
  .nosotros-card p, .nosotros-historia-text p { font-size: 0.92rem; line-height: 1.78; }
  .nosotros-historia-highlight { padding-left: 1rem; }
}

/* Animate.css curated keyframes */
@keyframes fadeInLeft { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInRight { from { opacity:0; transform:translateX(40px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
@keyframes bounceIn { from { opacity:0; transform:scale3d(0.3,0.3,0.3); } 50% { opacity:1; transform:scale3d(1.08,1.08,1.08); } 70% { transform:scale3d(0.95,0.95,0.95); } to { opacity:1; transform:scale3d(1,1,1); } }
@keyframes pulse { from { transform:scale3d(1,1,1); } 50% { transform:scale3d(1.05,1.05,1.05); } to { transform:scale3d(1,1,1); } }
@keyframes slideInUp { from { transform:translate3d(0,60px,0); opacity:0; } to { transform:translate3d(0,0,0); opacity:1; } }
@keyframes zoomIn { from { opacity:0; transform:scale3d(0.4,0.4,0.4); } 50% { opacity:1; } to { opacity:1; transform:scale3d(1,1,1); } }
@keyframes flipInX { from { opacity:0; transform:perspective(400px) rotateX(90deg); } 40% { transform:perspective(400px) rotateX(-20deg); } 60% { opacity:1; transform:perspective(400px) rotateX(10deg); } 80% { transform:perspective(400px) rotateX(-5deg); } to { opacity:1; transform:perspective(400px) rotateX(0); } }
@keyframes lightSpeedInLeft { from { opacity:0; transform:translateX(-100%) skewX(30deg); } 60% { opacity:1; transform:translateX(20px) skewX(-15deg); } 80% { transform:translateX(-5px) skewX(5deg); } to { transform:translateX(0) skewX(0); } }
@keyframes wobble { from { transform:translate3d(0,0,0); } 15% { transform:translate3d(-25%,0,0) rotate3d(0,0,1,-5deg); } 30% { transform:translate3d(20%,0,0) rotate3d(0,0,1,3deg); } 45% { transform:translate3d(-15%,0,0) rotate3d(0,0,1,-3deg); } 60% { transform:translate3d(10%,0,0) rotate3d(0,0,1,2deg); } 75% { transform:translate3d(-5%,0,0) rotate3d(0,0,1,-1deg); } to { transform:translate3d(0,0,0); } }
@keyframes headShake { 0% { transform:translateX(0); } 6.5% { transform:translateX(-6px) rotateY(-9deg); } 18.5% { transform:translateX(5px) rotateY(7deg); } 31.5% { transform:translateX(-3px) rotateY(-5deg); } 43.5% { transform:translateX(2px) rotateY(3deg); } 50% { transform:translateX(0); } }

/* Utility animation classes */
.anim-fade-left { animation:fadeInLeft 0.8s cubic-bezier(0.4,0,0.2,1) both; }
.anim-fade-right { animation:fadeInRight 0.8s cubic-bezier(0.4,0,0.2,1) both; }
.anim-fade-up { animation:fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) both; }
.anim-bounce-in { animation:bounceIn 0.9s cubic-bezier(0.4,0,0.2,1) both; }
.anim-slide-up { animation:slideInUp 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.anim-zoom-in { animation:zoomIn 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.anim-flip-x { animation:flipInX 0.9s cubic-bezier(0.4,0,0.2,1) both; }
.anim-pulse { animation:pulse 2s ease-in-out infinite; }
.anim-wobble { animation:wobble 0.8s ease both; }
.anim-headshake { animation:headShake 0.9s ease both; }

.anim-delay-1 { animation-delay:0.1s; }
.anim-delay-2 { animation-delay:0.2s; }
.anim-delay-3 { animation-delay:0.3s; }
.anim-delay-4 { animation-delay:0.4s; }
.anim-delay-5 { animation-delay:0.5s; }
.anim-delay-6 { animation-delay:0.6s; }
.anim-delay-7 { animation-delay:0.7s; }
.anim-delay-8 { animation-delay:0.8s; }
.anim-delay-9 { animation-delay:0.9s; }
.anim-delay-10 { animation-delay:1.0s; }

/* HoverCSS curated effects */
.hvr-grow { display:inline-block; vertical-align:middle; transform:perspective(1px) translateZ(0); transition:transform var(--transition); }
.hvr-grow:hover, .hvr-grow:focus, .hvr-grow:active { transform:scale(1.06); }

.hvr-float { display:inline-block; vertical-align:middle; transform:perspective(1px) translateZ(0); transition:transform var(--transition); }
.hvr-float:hover, .hvr-float:focus, .hvr-float:active { transform:translateY(-4px); }

.hvr-glow { display:inline-block; vertical-align:middle; transform:perspective(1px) translateZ(0); transition:box-shadow var(--transition); }
.hvr-glow:hover, .hvr-glow:focus, .hvr-glow:active { box-shadow:0 0 16px rgba(200,169,110,0.35); }

.hvr-shadow-radial { display:inline-block; vertical-align:middle; transform:perspective(1px) translateZ(0); position:relative; }
.hvr-shadow-radial::before { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; box-shadow:0 0 0 0 rgba(200,169,110,0); transition:box-shadow 0.3s ease; }
.hvr-shadow-radial:hover::before { box-shadow:0 0 0 12px rgba(200,169,110,0.1); }

.hvr-bounce-in { display:inline-block; vertical-align:middle; transform:perspective(1px) translateZ(0); transition:transform 0.35s cubic-bezier(0.34,1.56,0.64,1); }
.hvr-bounce-in:hover, .hvr-bounce-in:focus, .hvr-bounce-in:active { transform:scale(1.12); }

.hvr-underline-reveal { display:inline-block; vertical-align:middle; transform:perspective(1px) translateZ(0); position:relative; overflow:hidden; }
.hvr-underline-reveal::before { content:''; position:absolute; z-index:-1; left:0; right:100%; bottom:0; background:var(--gold); height:2px; transition:right 0.3s ease-out; }
.hvr-underline-reveal:hover::before, .hvr-underline-reveal:focus::before, .hvr-underline-reveal:active::before { right:0; }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
