/* =========================================
   Variables y reset
   ========================================= */
:root {
  --bg: #f6f4ef;
  --bg-dark: #14171c;
  --bg-soft: #ecebe5;
  --ink: #1a1d23;
  --ink-soft: #4a4e57;
  --ink-mute: #8a8d94;
  --line: #d9d6cd;
  --line-dark: #2a2e36;
  --accent: #8a6a3b;
  --accent-light: #b89868;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1240px;
  --gap: clamp(20px, 4vw, 48px);

  --easing: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--easing); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

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

/* =========================================
   Header
   ========================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(246, 244, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all .3s var(--easing);
}

.site-header.scrolled {
  padding: 14px 0;
  border-bottom-color: var(--line);
  background: rgba(246, 244, 239, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-mute);
  margin-top: 2px;
}

.nav ul {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--ink);
  transition: width .3s var(--easing);
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all .3s var(--easing);
}

/* =========================================
   Botones
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s var(--easing);
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding: 16px 0;
}
.btn-ghost:hover { color: var(--accent); }

/* =========================================
   Hero
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(138, 106, 59, 0.08), transparent 50%),
    var(--bg);
}

.hero-inner {
  max-width: 920px;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--ink-mute);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 40px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================
   Sections genéricas
   ========================================= */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--bg);
  border-top: none;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 8vw, 100px);
}

.col-meta { position: sticky; top: 120px; align-self: start; }

.section-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-mute);
  font-weight: 500;
}
.section-tag.light { color: var(--accent-light); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-top: 16px;
  margin-bottom: 32px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 80px;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-mute);
  line-height: 1.6;
}
.section-dark .section-sub { color: rgba(246, 244, 239, 0.7); }

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.col-body p { color: var(--ink-soft); margin-bottom: 16px; }

/* =========================================
   Estudio (con retrato)
   ========================================= */
.estudio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.estudio-portrait {
  position: sticky;
  top: 110px;
}

.estudio-portrait figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
}

.estudio-portrait figure::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--accent);
  z-index: -1;
}

.estudio-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15) contrast(1.02);
  transition: filter .5s var(--easing), transform .8s var(--easing);
  display: block;
}

.estudio-portrait figure:hover img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.02);
}

.estudio-portrait figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(20, 23, 28, 0.92) 0%, rgba(20, 23, 28, 0.6) 60%, transparent 100%);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portrait-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.portrait-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(246, 244, 239, 0.75);
}

.estudio-content { padding-top: 8px; }
.estudio-content .section-title { margin-top: 16px; }

/* =========================================
   Stats
   ========================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.stats.stats-single { grid-template-columns: 1fr; max-width: 320px; }

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* =========================================
   Areas grid
   ========================================= */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.area-card {
  padding: 48px 36px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  transition: background .35s var(--easing);
  cursor: default;
}
.area-card:hover { background: rgba(184, 152, 104, 0.06); }

.area-num {
  font-size: 12px;
  color: var(--accent-light);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 32px;
  font-weight: 500;
}

.area-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--bg);
}

.area-card p {
  font-size: 15px;
  color: rgba(246, 244, 239, 0.65);
  line-height: 1.6;
}

/* =========================================
   Process
   ========================================= */
.process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.process li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.process li:last-child { border-bottom: 1px solid var(--line); }

.process-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.process h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}
.process p { color: var(--ink-soft); font-size: 15px; }

/* =========================================
   Quote
   ========================================= */
.quote-section {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--bg-soft);
  text-align: center;
}

.quote-section blockquote {
  max-width: 920px;
  margin: 0 auto;
}
.quote-section blockquote p {
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 32px;
}
.quote-section blockquote footer {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ink-mute);
}

/* =========================================
   Contacto
   ========================================= */
.section-contact { background: var(--bg-soft); }

.contact-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: none; }

.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-mute);
}
.contact-list a:hover { color: var(--accent); }

/* WhatsApp card */
.whatsapp-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.whatsapp-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.08), transparent 70%);
  transform: translate(40%, -40%);
  pointer-events: none;
}

.whatsapp-icon {
  color: #25D366;
  background: rgba(37, 211, 102, 0.1);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.whatsapp-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

.whatsapp-text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 480px;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  margin-top: 12px;
  padding: 18px 32px;
  font-weight: 500;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  color: #fff;
}
.btn-whatsapp svg { flex-shrink: 0; }

.whatsapp-number {
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: 0.5px;
  font-weight: 500;
}

.whatsapp-quick {
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.whatsapp-quick-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.whatsapp-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all .2s var(--easing);
  cursor: pointer;
}
.chip:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* FAB flotante */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 90;
  transition: transform .25s var(--easing), box-shadow .25s var(--easing);
  animation: fabPulse 2.4s ease-in-out infinite;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.12);
}
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 0 0 14px rgba(37, 211, 102, 0); }
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-name { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.footer-sub { font-size: 12px; color: rgba(246, 244, 239, 0.6); margin-top: 2px; }

.footer-nav { display: flex; gap: 28px; }
.footer-nav a {
  font-size: 13px;
  color: rgba(246, 244, 239, 0.7);
  transition: color .2s var(--easing);
}
.footer-nav a:hover { color: var(--bg); }

.footer-meta {
  text-align: right;
  font-size: 12px;
  color: rgba(246, 244, 239, 0.5);
  letter-spacing: 0.3px;
}

/* =========================================
   Animaciones de entrada
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 960px) {
  .nav { display: none; }
  .nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 24px var(--gap);
  }
  .nav.open ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .col-meta { position: static; }
  .estudio-grid { grid-template-columns: 1fr; gap: 48px; }
  .estudio-portrait { position: static; max-width: 420px; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 32px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
  .footer-meta { text-align: center; }
}

@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .hero-actions .btn { width: 100%; }
  .process li { grid-template-columns: 1fr; gap: 12px; }
  .whatsapp-fab { width: 54px; height: 54px; bottom: 20px; right: 20px; }
}
