@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;1,400&family=Josefin+Sans:wght@300;400;600&display=swap');

:root {
  --parchment: #F5EDD6;
  --parchment2: #EDE0C4;
  --parchment3: #E2D0A8;
  --brown:     #2C1810;
  --brown2:    #3D2314;
  --sepia:     #5C3D2E;
  --gold:      #C9A227;
  --gold2:     #A8851E;
  --muted:     #8B7355;
  --ink:       #1A0F0A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--brown);
  font-family: 'Lora', Georgia, serif;
  overflow-x: hidden;
}

/* Textura de papel */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── ORNAMENTOS ── */
.ornament {
  text-align: center;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 8px;
  margin: 0 auto 28px;
  opacity: 0.7;
}

.divider-vintage {
  display: flex; align-items: center; gap: 14px;
  margin: 0 auto 40px;
  max-width: 300px;
}
.divider-vintage::before, .divider-vintage::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider-vintage span {
  color: var(--gold);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 3px;
  text-transform: uppercase; white-space: nowrap;
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
}
#nav.scrolled {
  background: rgba(44,24,16,0.97);
  border-bottom-color: rgba(201,162,39,0.25);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center;
  height: 68px; padding: 0 24px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-style: italic;
  color: var(--parchment); text-decoration: none;
  letter-spacing: 1px;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  list-style: none; display: flex; gap: 36px;
  margin-left: auto;
}
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem; letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245,237,214,0.5); text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: auto; }
.burger span { display: block; width: 22px; height: 1px; background: var(--parchment); }

/* ── HERO ── */
#hero {
  min-height: 100dvh;
  background:
    linear-gradient(to bottom, rgba(26,15,10,0.75) 0%, rgba(44,24,16,0.5) 60%, rgba(92,61,46,0.3) 100%),
    radial-gradient(ellipse at 30% 40%, #3D2314 0%, #1A0F0A 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 60px;
  position: relative; overflow: hidden;
}

/* Mapa vintage SVG de fondo */
.hero-map {
  position: absolute; inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 500'%3E%3Ccircle cx='500' cy='250' r='240' stroke='%23C9A227' stroke-width='1' fill='none'/%3E%3Ccircle cx='500' cy='250' r='180' stroke='%23C9A227' stroke-width='0.5' fill='none'/%3E%3Ccircle cx='500' cy='250' r='120' stroke='%23C9A227' stroke-width='0.5' fill='none'/%3E%3Cline x1='260' y1='250' x2='740' y2='250' stroke='%23C9A227' stroke-width='0.5'/%3E%3Cline x1='500' y1='10' x2='500' y2='490' stroke='%23C9A227' stroke-width='0.5'/%3E%3Cline x1='320' y1='95' x2='680' y2='405' stroke='%23C9A227' stroke-width='0.3'/%3E%3Cline x1='680' y1='95' x2='320' y2='405' stroke='%23C9A227' stroke-width='0.3'/%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}

.hero-stamp {
  position: relative; z-index: 1;
  border: 2px solid rgba(201,162,39,0.5);
  padding: 3px 22px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 32px; opacity: 0.8;
}

.hero-title {
  position: relative; z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900; font-style: italic;
  color: var(--parchment); line-height: 0.95;
  margin-bottom: 6px;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.5);
}
.hero-title span { color: var(--gold); display: block; font-size: 0.45em; font-style: normal; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; margin-bottom: 8px; }

.hero-rule {
  width: 100px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 24px auto;
  position: relative; z-index: 1;
}

.hero-sub {
  position: relative; z-index: 1;
  font-family: 'Lora', serif;
  font-style: italic; font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(245,237,214,0.6);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  position: relative; z-index: 1;
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}

.btn-vintage {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem; letter-spacing: 3px;
  text-transform: uppercase; text-decoration: none;
  padding: 12px 32px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all 0.3s;
}
.btn-vintage:hover { background: var(--gold); color: var(--brown); }
.btn-vintage.filled { background: var(--gold); color: var(--brown); }
.btn-vintage.filled:hover { background: var(--gold2); }

/* Compass decoration */
.hero-compass {
  position: absolute; bottom: 36px; right: 60px;
  width: 70px; height: 70px;
  border: 1px solid rgba(201,162,39,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(201,162,39,0.4); font-size: 2.5rem;
  animation: compass-spin 20s linear infinite;
}
@keyframes compass-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── SECTIONS ── */
section { padding: 90px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold2);
  display: block; margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--brown);
}
.section-header h2 em { font-style: italic; color: var(--gold2); }

/* ── FEATURED STORY ── */
#destacado { background: var(--parchment); }

.featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--parchment3);
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--parchment3);
}
.featured-img {
  background: linear-gradient(135deg, #3D2314 0%, #2C1810 100%);
  min-height: 420px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.featured-img-ph {
  font-size: 6rem; opacity: 0.15;
}
.featured-img-label {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--gold); color: var(--brown);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 12px;
}
.featured-info {
  background: var(--parchment2);
  padding: 48px 44px;
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--parchment3);
}
.featured-meta {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 3px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.featured-meta span { color: var(--gold2); margin: 0 8px; }
.featured-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; line-height: 1.2;
  color: var(--brown); margin-bottom: 18px;
}
.featured-info h2 em { font-style: italic; color: var(--gold2); }
.featured-info p {
  color: var(--sepia); line-height: 1.9; font-size: 0.95rem;
  margin-bottom: 28px;
}
.read-more {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold2);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: gap 0.3s;
}
.read-more:hover { gap: 14px; }
.read-more::after { content: '→'; }

/* ── STORIES GRID ── */
#historias { background: var(--parchment2); }

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.story-card {
  background: var(--parchment);
  border: 1px solid var(--parchment3);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 3px 3px 0 var(--parchment3);
}
.story-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 6px 6px 0 var(--parchment3);
}
.story-img {
  height: 200px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.story-img-1 { background: linear-gradient(135deg, #1a1f3c 0%, #0d1220 100%); }
.story-img-2 { background: linear-gradient(135deg, #1a3c1a 0%, #0d200d 100%); }
.story-img-3 { background: linear-gradient(135deg, #3c1a1a 0%, #200d0d 100%); }
.story-img-4 { background: linear-gradient(135deg, #3c301a 0%, #20180d 100%); }
.story-img-5 { background: linear-gradient(135deg, #1a303c 0%, #0d1820 100%); }
.story-img-6 { background: linear-gradient(135deg, #2a1a3c 0%, #150d20 100%); }
.story-emoji { font-size: 3.5rem; opacity: 0.2; }
.story-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(201,162,39,0.9); color: var(--brown);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 10px;
}
.story-body { padding: 22px 20px; }
.story-meta {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.story-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--brown); line-height: 1.3;
  margin-bottom: 10px;
}
.story-body p {
  font-size: 0.85rem; color: var(--sepia);
  line-height: 1.7; margin-bottom: 16px;
}
.story-read {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold2);
  text-decoration: none;
}
.story-read:hover { text-decoration: underline; }

/* ── GALERÍA ── */
#galeria { background: var(--brown); }
#galeria .section-header h2 { color: var(--parchment); }
#galeria .section-header .section-label { color: var(--gold); }
#galeria .divider-vintage::before, #galeria .divider-vintage::after { opacity: 0.4; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 6px;
}
.g-item {
  overflow: hidden; position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.3s;
}
.g-item:hover { opacity: 0.85; }
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }

.g-ph {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: 0.25;
}
.g-ph-1 { background: #1a2035; }
.g-ph-2 { background: #1a3020; }
.g-ph-3 { background: #2a1515; }
.g-ph-4 { background: #251a30; }
.g-ph-5 { background: #30251a; }
.g-ph-6 { background: #1a2830; }
.g-ph-7 { background: #2a2018; }

.g-overlay {
  position: absolute; inset: 0;
  background: rgba(44,24,16,0);
  display: flex; align-items: flex-end; padding: 14px;
  transition: background 0.3s;
}
.g-item:hover .g-overlay { background: rgba(44,24,16,0.5); }
.g-caption {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 2px;
  color: var(--parchment); text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s;
}
.g-item:hover .g-caption { opacity: 1; }

/* ── SOBRE JAYANT ── */
#sobre { background: var(--parchment); }
.sobre-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: center;
}
.sobre-photo {
  aspect-ratio: 3/4; position: relative;
  background: linear-gradient(160deg, #3D2314 0%, #2C1810 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; opacity: 0.3;
}
.sobre-photo::before {
  content: '';
  position: absolute; top: 12px; left: 12px; right: -12px; bottom: -12px;
  border: 1px solid var(--parchment3); z-index: -1;
}
.sobre-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(201,162,39,0.05) 0%, transparent 60%);
}
.sobre-text .section-label { text-align: left; }
.sobre-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--brown);
  line-height: 1.2; margin-bottom: 20px;
}
.sobre-text h2 em { font-style: italic; color: var(--gold2); }
.sobre-text p {
  color: var(--sepia); line-height: 1.9;
  font-size: 0.95rem; margin-bottom: 14px;
}
.stats-strip {
  display: flex; gap: 0; margin-top: 32px;
  border: 1px solid var(--parchment3);
}
.stat-box {
  flex: 1; padding: 20px;
  text-align: center;
  border-right: 1px solid var(--parchment3);
}
.stat-box:last-child { border-right: none; }
.stat-box strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--gold2);
}
.stat-box span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
}

/* ── CONTACTO ── */
#contacto { background: var(--parchment2); text-align: center; }
.contacto-inner { max-width: 580px; margin: 0 auto; }
.contacto-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; font-style: italic;
  color: var(--brown); margin-bottom: 16px;
}
.contacto-inner p { color: var(--sepia); line-height: 1.8; margin-bottom: 32px; font-size: 0.95rem; }
.contact-form { display: flex; gap: 0; max-width: 440px; margin: 0 auto; }
.contact-form input {
  flex: 1;
  background: var(--parchment);
  border: 1px solid var(--parchment3);
  border-right: none;
  color: var(--brown); padding: 12px 18px;
  font-family: 'Lora', serif; font-size: 0.9rem;
  outline: none;
}
.contact-form input::placeholder { color: var(--muted); }
.contact-form input:focus { border-color: var(--gold); }
.contact-form button {
  background: var(--brown); color: var(--gold);
  border: 1px solid var(--brown);
  padding: 12px 22px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  transition: all 0.3s; white-space: nowrap;
}
.contact-form button:hover { background: var(--gold); color: var(--brown); border-color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(201,162,39,0.2);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 28px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-style: italic;
  color: var(--parchment);
}
.footer-logo span { color: var(--gold); }
.footer-links {
  display: flex; gap: 28px; list-style: none;
}
.footer-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(245,237,214,0.3); text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(245,237,214,0.06);
  padding-top: 20px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 2px;
  color: rgba(245,237,214,0.2); text-align: center;
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 260px; }
  .stories-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre-photo { aspect-ratio: 16/9; }
  .nav-links, .nav-reserve { display: none; }
  .burger { display: flex; }
}
@media (max-width: 600px) {
  section { padding: 70px 18px; }
  .stories-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { flex-direction: column; }
  .stat-box { border-right: none; border-bottom: 1px solid var(--parchment3); }
  .stat-box:last-child { border-bottom: none; }
  .contact-form { flex-direction: column; }
  .contact-form input { border-right: 1px solid var(--parchment3); }
  .hero-compass { display: none; }
}
