/* ═══════════════════════════════════════════════
   ASOCIACIÓN DEL PERRO LOBO ESPAÑOL · style.css
   ═══════════════════════════════════════════════ */

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

:root {
  --forest: #1A1F1A;
  --moss: #2E3D2E;
  --gold: #C8A96E;
  --gold-light: #DFC99A;
  --cream: #F0EDE6;
  --cream-dim: rgba(240,237,230,0.75);
  --cream-muted: rgba(240,237,230,0.55);
  --overlay-dark: rgba(20,25,20,0.65);
  --nav-h: 64px;
}

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--nav-h); }

body {
  background: var(--forest);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

h1, h2, h3, h4 { font-family: 'Cinzel', serif; font-weight: 600; color: var(--cream); line-height: 1.2; }

p { color: rgba(240,237,230,0.75); }

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(20,25,20,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,169,110,0.15);
}

.nav-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 0 1.1rem;
  height: var(--nav-h);
  line-height: var(--nav-h);
  color: rgba(240,237,230,0.65);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--gold); }

/* Foro y Libro de Cría — enlaces especiales del nav */
.nav-menu > li > a.nav-especial {
  color: var(--cream) !important;
  border: 1px solid rgba(200,169,110,0.45);
  border-radius: 2px;
  padding: 0 0.9rem;
  margin-left: 0.4rem;
  height: calc(var(--nav-h) - 22px);
  line-height: calc(var(--nav-h) - 22px);
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-menu > li > a.nav-especial:hover {
  background: var(--gold);
  color: var(--forest) !important;
  border-color: var(--gold);
}
.nav-menu > li > a.nav-especial--libro {
  border-color: rgba(200,169,110,0.25);
  color: rgba(240,237,230,0.75) !important;
}
.nav-menu > li > a.nav-especial--camadas {
  border-color: rgba(200,169,110,0.35);
  color: rgba(240,237,230,0.85) !important;
}

/* Dropdown */
.nav-menu > li:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  min-width: 220px;
  background: rgba(22,28,22,0.97);
  border: 1px solid rgba(200,169,110,0.15);
  border-top: 2px solid var(--gold);
  padding: 0.5rem 0;
  z-index: 300;
}

.dropdown a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.78rem;
  color: rgba(240,237,230,0.6);
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.dropdown a:hover {
  color: var(--gold);
  background: rgba(200,169,110,0.06);
}

.nav-coords {
  font-size: 0.68rem;
  color: rgba(200,169,110,0.35);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-coords-item {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 1rem;
}

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 4rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,25,20,0.3) 0%, rgba(20,25,20,0.85) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  width: 100%;
}

.page-hero-content .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.page-hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--cream);
}

/* ─── SECTION UTILITIES ─── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.section-inner.narrow {
  max-width: 820px;
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--cream);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.gold-rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 1.25rem 0 2rem;
}

.section-alt { background: var(--moss); }
.section-dark { background: rgba(12,16,12,0.6); }

/* ─── PROSE ─── */
.prose p {
  color: rgba(240,237,230,0.72);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.85;
}

.prose p:last-child { margin-bottom: 0; }

.prose strong { color: var(--gold-light); font-weight: 500; }
.prose em { color: var(--gold-light); font-style: italic; }

/* ─── TWO-COL GRID ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col.text-right { direction: rtl; }
.two-col.text-right > * { direction: ltr; }

/* ─── IMAGE FRAME ─── */
.img-frame {
  position: relative;
}

.img-frame img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.img-frame::before {
  content: '';
  position: absolute;
  top: -18px; left: -18px;
  right: 18px; bottom: 18px;
  border: 1px solid rgba(200,169,110,0.28);
  pointer-events: none;
  z-index: 0;
}

.img-frame img { position: relative; z-index: 1; }

.img-caption {
  font-size: 0.72rem;
  color: rgba(200,169,110,0.45);
  margin-top: 0.85rem;
  letter-spacing: 0.05em;
}

/* ─── CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: rgba(20,25,20,0.55);
  border: 1px solid rgba(200,169,110,0.14);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s;
}

.card:hover { border-color: rgba(200,169,110,0.4); }

.card-num {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  color: rgba(200,169,110,0.1);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.card-meta {
  font-size: 0.72rem;
  color: rgba(200,169,110,0.45);
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.card p { font-size: 0.9rem; color: rgba(240,237,230,0.62); line-height: 1.7; }

.card-stats {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(200,169,110,0.1);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-val {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: var(--gold);
  display: block;
}

.stat-label {
  font-size: 0.66rem;
  color: rgba(240,237,230,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── CALLOUT ─── */
.callout {
  border-left: 3px solid var(--gold);
  padding: 1.75rem 2.25rem;
  background: rgba(200,169,110,0.05);
  margin: 3rem 0;
}

.callout p {
  color: rgba(240,237,230,0.8);
  font-size: 1.05rem;
  line-height: 1.85;
}

.callout p strong { color: var(--gold-light); font-weight: 500; }

/* ─── TIMELINE ─── */
.timeline { margin-top: 2.5rem; }

.tl-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(200,169,110,0.1);
}

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

.tl-year {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  padding-top: 3px;
}

.tl-desc {
  color: rgba(240,237,230,0.65);
  font-size: 0.92rem;
  line-height: 1.65;
}

.tl-desc strong { color: var(--cream-dim); font-weight: 500; }

/* ─── GALLERY GRID ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
}

.g-item {
  overflow: hidden;
  background: var(--moss);
  cursor: pointer;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s;
  filter: grayscale(15%);
}

.g-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.g-xl   { grid-column: span 5; min-height: 420px; }
.g-lg   { grid-column: span 4; min-height: 420px; }
.g-md   { grid-column: span 4; min-height: 240px; }
.g-sm   { grid-column: span 3; min-height: 240px; }
.g-wide { grid-column: span 7; min-height: 240px; }
.g-half { grid-column: span 6; min-height: 300px; }
.g-full { grid-column: span 12; min-height: 320px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,13,10,0.96);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 2rem;
  font-size: 2rem;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.25);
  color: var(--gold);
  font-size: 1.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(200,169,110,0.25); }

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid rgba(200,169,110,0.12);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q span.arrow {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-q span.arrow { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 0 1.5rem;
  color: rgba(240,237,230,0.65);
  font-size: 0.96rem;
  line-height: 1.8;
}

.faq-item.open .faq-a { display: block; }

/* ─── CONTACT FORM ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form-panel {
  background: var(--moss);
  padding: 2.75rem;
}

.form-field { margin-bottom: 1.1rem; }

.form-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,169,110,0.55);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  background: rgba(20,25,20,0.65);
  border: 1px solid rgba(200,169,110,0.2);
  color: var(--cream);
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: rgba(200,169,110,0.5); }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(240,237,230,0.2); }

.form-field textarea { min-height: 130px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--forest);
  width: 100%;
  margin-top: 0.5rem;
}

.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-outline:hover { background: var(--gold); color: var(--forest); }

/* ─── META LIST ─── */
.meta-list { margin-top: 2rem; }

.meta-row {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(200,169,110,0.1);
  font-size: 0.92rem;
}

.meta-row:first-child { border-top: 1px solid rgba(200,169,110,0.1); }

.meta-key {
  color: var(--gold);
  min-width: 140px;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding-top: 1px;
}

.meta-val { color: rgba(240,237,230,0.6); }

/* ─── "PRÓXIMAMENTE" BLOCK ─── */
.coming-soon {
  text-align: center;
  padding: 5rem 2rem;
  border: 1px dashed rgba(200,169,110,0.2);
}

.coming-soon .cs-icon {
  font-size: 2.5rem;
  color: rgba(200,169,110,0.2);
  margin-bottom: 1.5rem;
}

.coming-soon h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: rgba(240,237,230,0.4);
  margin-bottom: 0.75rem;
}

.coming-soon p { font-size: 0.9rem; color: rgba(240,237,230,0.3); }

/* ─── FOOTER ─── */
footer {
  background: rgba(8,11,8,0.95);
  border-top: 1px solid rgba(200,169,110,0.1);
  padding: 2.5rem 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  justify-content: center;
}

.footer-links a {
  font-size: 0.72rem;
  color: rgba(240,237,230,0.35);
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--gold); }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(240,237,230,0.25);
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ─── HAMBURGER (mobile) ─── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ─── MOBILE ─── */
@media (max-width: 960px) {
  nav { padding: 0 1.5rem; }
  .nav-coords, .nav-coords-item { display: none; }
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: rgba(18,23,18,0.98);
    flex-direction: column;
    padding: 1rem 0 2rem;
    border-bottom: 1px solid rgba(200,169,110,0.15);
    gap: 0;
  }

  .nav-menu.open { display: flex; }

  .nav-menu > li > a {
    height: auto;
    line-height: 1;
    padding: 0.85rem 2rem;
  }

  .dropdown {
    display: block;
    position: static;
    border: none;
    border-top: none;
    background: rgba(200,169,110,0.04);
    padding: 0;
  }

  .dropdown a { padding-left: 3rem; }

  .section-inner { padding: 4rem 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .two-col.text-right { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .g-xl, .g-lg, .g-wide, .g-half { grid-column: span 12; min-height: 260px; }
  .g-md, .g-sm { grid-column: span 6; min-height: 200px; }

  footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

@media (max-width: 540px) {
  .g-md, .g-sm { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .g-item img { transition: none; }
}
