/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --bg: #f8f6f2;
  --bg-alt: #f0ece4;
  --ink: #1a1714;
  --ink-light: #6b6258;
  --gold: #b8966a;
  --gold-dark: #9e7d52;
  --border: #ddd8cf;
  --white: #ffffff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* ============================================================
   LABEL (eyebrow text)
   ============================================================ */
.label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ============================================================
   NAVBAR — logo centrado, links a los lados
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(248, 246, 242, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  height: 72px;
}

.nav-left {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-right {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: flex-end;
}

.nav-left a,
.nav-right a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #fff;
}

#navbar.scrolled .nav-left a,
#navbar.scrolled .nav-right a {
  color: var(--ink-light);
}

#navbar.scrolled .nav-left a:hover,
#navbar.scrolled .nav-right a:hover {
  color: var(--ink);
}

.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  color: #fff;
  transition: color 0.3s;
}

#navbar.scrolled .logo {
  color: var(--ink);
}

/* Hamburger — mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}

#navbar.scrolled .hamburger span { background: var(--ink); }

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(248, 246, 242, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 8px 0 20px;
}

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

.nav-mobile a {
  padding: 14px 40px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--ink); }

/* ============================================================
   HERO — split screen
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding-top: 72px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 72px;
  background: var(--bg);
}

.hero-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 48px;
  font-weight: 300;
}

.btn-hero {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-hero:hover {
  color: var(--gold);
}

.hero-image {
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-image-caption {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--ink);
  overflow: hidden;
  padding: 14px 0;
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  padding-right: 0;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   PROYECTOS — layout editorial
   ============================================================ */
#proyectos {
  padding: 96px 0 0;
  background: var(--bg);
}

.projects-header {
  padding: 0 64px 56px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.projects-header .label {
  margin-bottom: 0;
}

.projects-header h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
}

.projects-row {
  display: grid;
  border-bottom: 1px solid var(--border);
}

.row-featured {
  grid-template-columns: 2fr 1fr;
}

.row-three {
  grid-template-columns: repeat(3, 1fr);
}

.project-item {
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.project-item:last-child { border-right: none; }

.project-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.project-large .project-img-wrap {
  aspect-ratio: 16/9;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: saturate(0.85) brightness(0.97);
}

.project-item:hover .project-img-wrap img {
  transform: scale(1.04);
  filter: saturate(1) brightness(1);
}

.project-meta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 28px 24px;
  border-top: 1px solid var(--border);
}

.project-num {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 3px;
}

.project-meta h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.project-meta p {
  font-size: 0.78rem;
  color: var(--ink-light);
  letter-spacing: 0.5px;
}

/* ============================================================
   SERVICIOS — lista numerada tipográfica
   ============================================================ */
.services-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.services-left {
  padding: 80px 48px 80px 64px;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 72px;
  align-self: start;
}

.services-left h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 20px;
}

.services-left p {
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.8;
  font-weight: 300;
}

.services-list {
  padding: 0;
}

.services-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 44px 64px 44px 0;
  margin-left: 48px;
  transition: background 0.2s;
}

.services-list li:first-child {
  border-top: none;
}

.svc-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  padding-top: 4px;
}

.svc-body h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.svc-body p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--ink-light);
  max-width: 500px;
  font-weight: 300;
}

/* ============================================================
   ESTUDIO — imagen panorámica + stats
   ============================================================ */
.studio-section {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}

.studio-image {
  width: 100%;
  height: 640px;
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.studio-text-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.studio-text {
  padding: 0 72px;
  max-width: 640px;
}

.studio-text .label { color: var(--gold); }

.studio-text h2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 28px;
}

.studio-text > p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  margin-bottom: 48px;
  max-width: 440px;
}

.studio-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
}

.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}

.btn-dark {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 14px 28px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================================
   CITA + TESTIMONIOS
   ============================================================ */
.quote-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 96px 64px;
}

.quote-section blockquote {
  max-width: 800px;
  margin: 0 auto 72px;
  text-align: center;
}

.quote-section blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 24px;
}

.quote-section blockquote cite {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

.testimonials-more {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
}

.testi-item {
  background: var(--bg);
  padding: 40px 44px;
}

.testi-item p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
}

.testi-item cite {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
  font-style: normal;
}

/* ============================================================
   TARIFAS — tabla
   ============================================================ */
.pricing-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 96px 64px;
}

.pricing-head {
  margin-bottom: 60px;
}

.pricing-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
}

.pricing-table {
  border: 1px solid var(--border);
  background: var(--white);
}

.pricing-row {
  display: grid;
  grid-template-columns: 240px 1fr 160px 140px;
  gap: 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.pricing-row:last-child { border-bottom: none; }

.pricing-row-header {
  background: var(--ink);
  padding: 14px 28px;
  gap: 0;
}

.pricing-row-header span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.pricing-name,
.pricing-includes,
.pricing-price,
.pricing-action {
  padding: 28px;
  border-right: 1px solid var(--border);
}

.pricing-action { border-right: none; }

.pricing-name strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.pricing-name p {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.5;
}

.badge-inline {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 3px 10px;
  margin-bottom: 6px;
}

.pricing-includes {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.7;
}

.pricing-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

.pricing-row-featured {
  background: #fdf9f4;
}

.btn-table {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 10px 16px;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-table:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-table-accent {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.btn-table-accent:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

/* ============================================================
   CONTACTO — centrado, minimalista
   ============================================================ */
.contact-section {
  background: var(--ink);
  padding: 96px 64px;
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-section .label { color: var(--gold); }

.contact-inner h2 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 48px;
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 12px 0;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact-email {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.contact-email:hover { color: var(--gold); }

.btn-submit {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s;
}

.btn-submit:hover { color: var(--gold); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.form-status {
  margin-top: 20px;
  font-size: 0.85rem;
  min-height: 24px;
}

.form-status.success { color: #7ec8a4; }
.form-status.error   { color: #f08080; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #111;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

footer .logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

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

.footer-contact a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  transition: color 0.2s;
}

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

.footer-contact p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.5px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 24px; }

  .hero { grid-template-columns: 1fr; }

  .hero-image {
    height: 55vw;
    order: -1;
  }

  .hero-text {
    padding: 56px 40px;
  }

  .row-featured {
    grid-template-columns: 1fr;
  }

  .row-three {
    grid-template-columns: 1fr 1fr;
  }

  .row-three .project-item:last-child {
    grid-column: 1 / -1;
    border-right: none;
  }

  .projects-header { padding: 0 40px 48px; }

  .services-section {
    grid-template-columns: 1fr;
  }

  .services-left {
    position: static;
    padding: 64px 40px 40px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .services-list li {
    margin-left: 40px;
    padding-right: 40px;
  }

  .pricing-row {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-row-header { display: none; }

  .pricing-name,
  .pricing-includes,
  .pricing-price,
  .pricing-action {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .pricing-action { border-bottom: none; }

  .studio-text { padding: 0 40px; }

  .quote-section { padding: 72px 40px; }

  .testimonials-more { grid-template-columns: 1fr; }

  .pricing-section { padding: 72px 40px; }

  .contact-section { padding: 72px 40px; }

  footer { padding: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }

  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav-left, .nav-right > a { display: none; }
  .hamburger { display: flex; }
  .nav-inner {
    grid-template-columns: 1fr auto;
    padding: 0 24px;
    height: 60px;
  }
  .nav-inner .logo { text-align: left; }

  /* Hero */
  .hero-text { padding: 40px 24px; }
  .hero-text h1 { font-size: 3rem; }

  /* Projects */
  .projects-header {
    flex-direction: column;
    gap: 8px;
    padding: 0 24px 40px;
  }

  .row-featured,
  .row-three {
    grid-template-columns: 1fr;
  }

  .project-item { border-right: none; }

  /* Services */
  .services-left { padding: 56px 24px 32px; }

  .services-list li {
    margin-left: 24px;
    padding-right: 24px;
    grid-template-columns: 40px 1fr;
  }

  /* Studio */
  .studio-image { height: 100%; min-height: 560px; }
  .studio-text { padding: 0 24px; }
  .studio-stats { gap: 28px; flex-wrap: wrap; }

  /* Quote */
  .quote-section { padding: 64px 24px; }
  .testi-item { padding: 28px 24px; }

  /* Pricing */
  .pricing-section { padding: 64px 24px; }

  .pricing-row {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .pricing-name,
  .pricing-includes,
  .pricing-price,
  .pricing-action {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
  }

  /* Contact */
  .contact-section { padding: 64px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; gap: 24px; align-items: flex-start; }

  /* Footer */
  footer { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
