﻿:root {
  --bg-dark: #241209;
  --bg-dark-alt: #2c160c;
  --bg-card: #f5f1e8;
  --bg-light: #faf7f0;
  --text-light: #f5f1e8;
  --text-muted-light: #c9c2b3;
  --text-dark: #241d13;
  --text-muted-dark: #6b6355;
  --accent: #d4a94f;
  --accent-dark: #b3873a;
  --border-dark: #4a2e1c;
  --border-light: #e3dcc9;
  --whatsapp: #25D366;
  --radius: 6px;
  --container-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}
h2 { font-size: 2.2rem; margin-bottom: 16px; letter-spacing: .5px; }
h2.light { color: var(--text-light); }
h3 { font-size: 1.25rem; }

.section-eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  border: 2px solid transparent;
  font-size: .95rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #201804; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark { border-color: var(--accent-dark); color: var(--accent-dark); padding: 10px 24px; font-size: .85rem; }
.btn-outline-dark:hover { background: var(--accent); border-color: var(--accent); color: #201804; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: linear-gradient(180deg, #161616 0%, #050505 100%);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  height: 74px;
  width: auto;
  object-fit: contain;
}
.main-nav { display: flex; gap: 30px; margin-left: auto; }
.main-nav a {
  color: var(--text-muted-light);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.nav-cta { padding: 10px 20px; font-size: .85rem; white-space: nowrap; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  color: var(--text-muted-light);
  transition: color .15s ease, border-color .15s ease;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  flex-shrink: 0;
}
.social-icon:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--accent); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,11,5,.75) 0%, rgba(18,11,5,.5) 32%, rgba(18,11,5,.18) 58%, transparent 82%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; padding-top: 96px; }
.hero h1 { font-size: 3.2rem; color: #fff; margin-bottom: 22px; }
.hero h1 .tw-gold { color: var(--accent); }
.hero h1 .tw-line { display: inline-block; min-height: 1em; }
.hero h1 .tw-line.tw-active::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 4px;
  background: currentColor;
  vertical-align: -0.05em;
  animation: tw-blink 0.9s steps(1) infinite;
}
@keyframes tw-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .tw-line.tw-active::after { animation: none; }
}
.hero-text { max-width: 480px; color: var(--text-muted-light); font-size: 1.1rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted-light);
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Features bar */
.features-bar { background: var(--bg-dark); padding: 64px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.feature-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature h3, .why-item h3 { color: var(--text-light); font-size: 1.05rem; margin-bottom: 10px; }
.feature p, .why-item p { color: var(--text-muted-light); font-size: .9rem; }

/* Services */
.services { padding: 100px 0 90px; background: var(--bg-card); }
.services h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.services-lead { max-width: 560px; color: var(--text-muted-dark); margin-top: -4px; margin-bottom: 0; }
.services-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(36,29,19,.12); }
.service-img { background-size: cover; background-position: center; min-height: 160px; }
.service-body { padding: 24px; align-self: center; }
.service-body h3 { margin-bottom: 8px; }
.service-body p { color: var(--text-muted-dark); font-size: .92rem; }
.services-more { text-align: center; margin-top: 40px; color: var(--text-muted-dark); }
.services-more a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.services-more a:hover { text-decoration: underline; }

/* Models */
.models { padding: 110px 0 90px; background: var(--bg-light); }
.models h2 { max-width: 620px; margin-left: auto; margin-right: auto; }
.models-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.model-photo {
  height: 260px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.model-photo:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(36,29,19,.16); }
.models-cta { text-align: center; margin-top: 46px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Page hero (subpages) */
.page-hero {
  position: relative;
  padding: 190px 0 90px;
  background-size: cover;
  background-position: center;
  text-align: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: rgba(28,15,8,.8); }
.page-hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.page-hero-content .section-eyebrow { text-align: center; }
.page-hero-content h1 { color: #fff; font-size: 2.6rem; margin-bottom: 14px; }
.page-hero-content p { color: var(--text-muted-light); font-size: 1.05rem; }

/* Blog */
.blog-grid-page { padding: 70px 0 110px; background: var(--bg-card); }
.blog-list-intro { max-width: 680px; margin: 0 auto 50px; text-align: center; color: var(--text-muted-dark); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(36,29,19,.12); }
.blog-card .locality-tag {
  align-self: flex-start;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .72rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { color: var(--text-muted-dark); font-size: .9rem; margin-bottom: 18px; flex-grow: 1; }
.blog-card a { color: var(--accent-dark); font-weight: 600; text-decoration: none; font-size: .9rem; }
.blog-card a:hover { text-decoration: underline; }

.blog-article { padding: 190px 0 80px; background: var(--bg-card); }
.blog-article-inner { max-width: 720px; margin: 0 auto; }
.blog-article-inner > .section-eyebrow { text-align: left; }
.blog-article-inner h1 { font-size: 2.3rem; margin-bottom: 28px; }
.blog-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--text-dark);
  margin: 34px 0 12px;
}
.blog-body p { color: var(--text-muted-dark); font-size: 1rem; line-height: 1.8; margin-bottom: 16px; }
.blog-back { display: inline-block; margin-top: 40px; color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.blog-back:hover { text-decoration: underline; }

.blog-cta {
  background: var(--bg-dark);
  padding: 50px 0;
  text-align: center;
}
.blog-cta p { color: var(--text-muted-light); margin-bottom: 20px; font-size: 1.05rem; }

/* Gallery filters (galeria.html) */
.gallery-page { padding: 70px 0 110px; background: var(--bg-card); }
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: transparent;
  color: var(--text-muted-dark);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #201804; }
.gallery-grid-full { grid-template-columns: repeat(4, 1fr); }
.gallery-item.filtered-out { display: none; }

/* Gallery / Proyectos */
.gallery { padding: 110px 0; background: var(--bg-card); }
.gallery h2 { max-width: 620px; }
.gallery-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #14100b;
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.06); }
.gallery-item .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(28,15,8,.25);
  pointer-events: none;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,6,4,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 40px 24px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-box { max-width: 900px; max-height: 85vh; }
.lightbox-box img, .lightbox-box video {
  max-width: 100%; max-height: 85vh;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Why choose us */
.why {
  position: relative;
  padding: 110px 0;
  background: var(--bg-dark-alt);
}
.why-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  text-align: center;
}

/* About */
.about { padding: 110px 0; background: var(--bg-card); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text p { color: var(--text-muted-dark); margin-bottom: 18px; }
.about-text .btn { margin-top: 8px; }
.about-img {
  height: 420px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(36,29,19,.18);
}

/* CTA */
.cta {
  position: relative;
  padding: 100px 0;
  background-color: var(--bg-dark);
  background-size: cover;
  background-position: center;
}
.cta-overlay { position: absolute; inset: 0; background: rgba(28,15,8,.78); }
.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-content p { color: var(--text-muted-light); font-size: 1.1rem; margin-bottom: 32px; }

.cta-form {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.cta-form h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-dark);
}
.cta-form label { display: block; margin-bottom: 16px; }
.cta-form label span {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted-dark);
  margin-bottom: 6px;
}
.cta-form input, .cta-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-light);
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  color: var(--text-dark);
  background: #fff;
  resize: vertical;
  transition: border-color .15s ease;
}
.cta-form input:focus, .cta-form textarea:focus { outline: none; border-color: var(--accent); }
.cta-form button { width: 100%; justify-content: center; margin-top: 4px; }

/* Footer */
.site-footer { background: var(--bg-dark); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-logo { height: 120px; width: auto; margin: -12px 0 4px -8px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.footer-brand p { color: var(--text-muted-light); font-size: .9rem; max-width: 240px; }
.footer-col h4 {
  color: var(--text-light);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span {
  color: var(--text-muted-light);
  text-decoration: none;
  font-size: .9rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  color: var(--text-muted-light);
  font-size: .85rem;
}
.footer-bottom a { color: var(--accent); text-decoration: none; }

.credit-bar { background: var(--bg-dark); padding: 16px 0; text-align: center; }
.credit-bar p { font-size: .75rem; color: #6b7280; margin: 0; }
.credit-bar a { color: #d1d5db; font-weight: 600; text-decoration: none; transition: color .15s ease; }
.credit-bar a:hover { color: #fff; }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  z-index: 900;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1.in-view { transition-delay: .08s; }
.reveal-2.in-view { transition-delay: .16s; }
.reveal-3.in-view { transition-delay: .24s; }
.reveal-4.in-view { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue { animation: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .features-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .models-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 1fr; }
  .service-img { height: 180px; }
  .page-hero { padding: 150px 0 70px; }
  .page-hero-content h1 { font-size: 2.1rem; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-article { padding: 150px 0 60px; }
  .blog-article-inner h1 { font-size: 1.9rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { height: 320px; }
  .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-content { text-align: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .main-nav, .nav-cta, .social-icon { display: none; }
  .nav-toggle { display: flex; }
  .logo-mark { height: 60px; }
  .header-inner { height: 80px; }
  .hero-content { padding-top: 80px; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: linear-gradient(180deg, #161616 0%, #050505 100%);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border-dark);
  }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 2.3rem; }
  .models-grid { grid-template-columns: 1fr; }
  .features-grid, .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
