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

:root {
  --navy: #12204d;
  --navy2: #1a2a5e;
  --gold: #b8963e;
  --gold2: #d4af6a;
  --cream: #f8f6f0;
  --white: #ffffff;
  --text: #2c2c2c;
  --muted: #7a7a7a;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 82px;
  border-bottom: 1px solid rgba(184, 150, 62, 0.2);
}

.nav-logo img {
  height: 72px;
  display: block;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
  transition: color .25s;
}

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

.nav-cta {
  background: transparent;
  border: 1px solid var(--gold);
  text-decoration: none;
  color: var(--gold);
  padding: 9px 22px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

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

.nav-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #25D366;
  border-radius: 50%;
  margin-right: 15px;
  transition: transform 0.25s, filter 0.25s;
}

.nav-whatsapp:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.nav-whatsapp svg {
  width: 20px;
  height: 20px;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  /* Let mouse interact with spline in background */
}

.hero-content>* {
  pointer-events: auto;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(184, 150, 62, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 150, 62, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(184, 150, 62, 0.4);
  color: var(--gold2);
  padding: 6px 18px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  margin-bottom: 2.5rem;
  position: relative;
  background: rgba(18, 32, 77, 0.7);
  backdrop-filter: blur(4px);
}

.hero-badge::before,
.hero-badge::after {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  position: relative;
  letter-spacing: -1px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero h1 em {
  color: var(--gold2);
  font-style: normal;
  font-weight: 400;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto 3rem;
  position: relative;
  background: rgba(18, 32, 77, 0.5);
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  border: none;
  padding: 14px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  display: inline-block;
}

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

.btn-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(184, 150, 62, 0.15);
  position: relative;
  flex-wrap: wrap;
  background: rgba(18, 32, 77, 0.5);
  padding-bottom: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  padding-left: 2rem;
  padding-right: 2rem;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: var(--gold2);
  line-height: 1;
}

.stat-lbl {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  font-weight: 300;
}

/* DIVIDER */
.divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), var(--gold), transparent);
}

/* SECTIONS */
section {
  padding: 6rem 3rem;
}

.section-cream {
  background: var(--cream);
}

.section-navy {
  background: var(--navy);
}

.sec-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
  font-weight: 400;
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy2);
  margin-bottom: 3rem;
}

.sec-title-light {
  color: var(--white);
}

.sec-header {
  text-align: center;
}

/* ─── SERVICES — GRID 3x2 IMMERSIVE ─── */
#servicios {
  background: var(--navy);
  padding: 6rem 3rem;
}

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

/* Base card */
.book-card {
  position: relative;
  background: #7a5c1e;
  border-top: 3px solid #ffe08a;
  padding: 2.2rem 1.75rem 2rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.book-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.book-card:nth-child(1) {
  transition-delay: 0.1s;
}

.book-card:nth-child(2) {
  transition-delay: 0.2s;
}

.book-card:nth-child(3) {
  transition-delay: 0.3s;
}

.book-card:nth-child(4) {
  transition-delay: 0.4s;
}

.book-card:nth-child(5) {
  transition-delay: 0.5s;
}

.book-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Number watermark */
.book-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-weight: 300;
  color: rgba(255, 224, 138, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

/* Content */
.book-card__title {
  font-family: 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #fff8e7;
  margin-bottom: 0.9rem;
}

.book-card__desc {
  font-size: 13px;
  color: rgba(248, 246, 240, 0.8);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.4rem;
}

/* Stamp tag */
.book-card__tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff8e7;
  border: 1px solid #ffe08a;
  padding: 4px 12px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
}

/* Variant 06 */
.book-card--artisan {
  background: #5c4010;
}

/* Responsive */
@media (max-width: 960px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  #servicios {
    padding: 4rem 1.5rem;
  }
}

/* keep legacy .svc-tag for other pages */
.svc-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184, 150, 62, 0.3);
  padding: 3px 10px;
  font-weight: 400;
}

/* GALLERY */
.gallery {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 6px;
}

.gallery-grid .g0 {
  grid-column: 1;
  grid-row: 1/3;
}

.gitem {
  background: var(--navy2);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}

.gitem:hover {
  transform: scale(1.02);
  z-index: 10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gitem-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(184, 150, 62, 0.35);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
  padding: 1rem;
}

.gitem-ph svg {
  opacity: .4;
}

.gitem-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(8, 14, 32, .9));
  color: rgba(255, 255, 255, .75);
  font-size: 11px;
  letter-spacing: .5px;
  padding: 1.5rem .75rem .6rem;
  font-weight: 300;
}

/* WHY */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.why-line {
  width: 30px;
  height: 2px;
  background: var(--gold);
}

.why-item h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}

.why-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  font-weight: 300;
}

/* REVIEWS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.review {
  background: var(--white);
  border: 1px solid rgba(26, 42, 94, 0.08);
  padding: 1.75rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.review:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.review::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: rgba(184, 150, 62, 0.1);
  position: absolute;
  top: 10px;
  right: 20px;
  line-height: 1;
  font-weight: 300;
}

.review-stars {
  color: #d4a017;
  font-size: 13px;
  margin-bottom: .75rem;
  letter-spacing: 2px;
}

.review-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1rem;
}

.review-author {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy2);
  letter-spacing: .5px;
}

.review-src {
  font-size: 11px;
  color: var(--muted);
}

/* CONTACT */
.contact-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.8;
  font-weight: 300;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ccard {
  border: 1px solid rgba(184, 150, 62, 0.2);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color .25s, transform 0.2s, background 0.2s;
}

.ccard:hover {
  border-color: var(--gold);
  transform: translateX(5px);
  background: rgba(184, 150, 62, 0.05);
}

.ccard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.ccard-lbl {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 300;
}

.ccard-val {
  font-size: 14px;
  color: var(--white);
  font-weight: 300;
  margin-top: 2px;
}

/* FOOTER */
footer {
  background: #080e20;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(184, 150, 62, 0.1);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-left img {
  height: 36px;
  opacity: .7;
  mix-blend-mode: screen;
}

.footer-copy {
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  letter-spacing: .5px;
}

.footer-artisan {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(184, 150, 62, .5);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, .5);
}

/* SCROLL ANIMATION */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* HEADER PADDING FOR NON-INDEX PAGES */
.page-header {
  padding-top: 120px;
  padding-bottom: 3rem;
  background: var(--navy);
  text-align: center;
}

.page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  font-weight: 300;
}

.page-header p {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 10px;
}

@media(max-width: 768px) {
  nav {
    padding: 0 1.25rem;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-grid .g0 {
    grid-column: 1/3;
    grid-row: auto;
    height: 200px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* CONTACT FORM */
.contact-form-wrapper {
  background: var(--navy2);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid rgba(184, 150, 62, 0.2);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-form label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  border-radius: 4px;
  transition: border-color 0.25s, background 0.25s;
}

.contact-form input::placeholder,
.contact-form select::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form select option {
  background: var(--navy2);
  color: var(--white);
}

/* TALLER NUEVO LAYOUT NARRATIVO */
.taller-container {
  max-width: 1100px;
  margin: 0 auto;
}

.taller-hero-img {
  background-color: var(--cream);
  width: 100%;
  height: 520px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.taller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.taller-item {
  display: flex;
  flex-direction: column;
}

.taller-img {
  background-color: var(--cream);
  height: 450px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.taller-caption {
  text-align: center;
  margin-top: 1.5rem;
}

.taller-caption h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.taller-caption p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
}

.taller-item-premium {
  background: var(--white);
  padding: 1.5rem;
  border: 1px solid rgba(184, 150, 62, 0.5);
  /* borde sutil gold */
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(18, 32, 77, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.taller-item-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(18, 32, 77, 0.15);
}

.taller-item-premium .taller-img {
  background-color: var(--cream);
  height: 280px;
  border-radius: 2px;
}

@media(max-width: 960px) {
  .taller-hero-img {
    height: 380px;
  }
  .taller-img {
    height: 380px;
  }
}

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

@media(max-width: 560px) {
  .taller-hero-img {
    height: 260px;
  }
  .taller-img {
    height: 320px;
  }
}

#servicios .sec-title { color: #FFFFFF !important; }
#servicios .sec-label { color: #FFFFFF !important; }