/* ============================================
  Hoja de estilos principal
   ============================================ */

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

/* Variables de color */
:root {
  --stone: #f5f2ee;
  --warm-white: #faf9f7;
  --dark: #1c1a17;
  --mid: #5a5650;
  --accent: #8b6f47;
  --accent-light: #c4a882;
  --border: #e0dbd3;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
}


/* ── NAV ─────────────────────────────────── */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--mid);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--dark); }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--dark) !important; color: #fff !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); transition: 0.3s; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  flex-direction: column; gap: 1.25rem;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--dark);
  font-size: 0.9375rem; font-weight: 400;
}


/* ── HERO ────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 64px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 6rem;
  background: var(--warm-white);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--accent);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--dark);
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-desc {
  font-size: 1.0625rem;
  color: var(--mid);
  max-width: 420px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.875rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 2px;
  transition: background 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--dark); }

.btn-secondary {
  color: var(--dark);
  text-decoration: none;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-secondary:hover { border-color: var(--dark); }

.hero-stat-row {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}
.stat-label { font-size: 0.8125rem; color: var(--mid); margin-top: 0.25rem; }

.hero-right {
  background: var(--stone);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-illustration {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.window-svg { width: 260px; opacity: 0.9; }


/* ── SECCIONES GENERALES ─────────────────── */

.section { padding: 6rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-alt { background: var(--stone); }

.section-label {
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--accent);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 3.5rem;
  max-width: 500px;
}


/* ── SERVICIOS ───────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--warm-white);
  padding: 2.5rem;
  transition: background 0.2s;
}
.service-card:hover { background: var(--stone); }

.service-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.service-card p { font-size: 0.9375rem; color: var(--mid); line-height: 1.65; font-weight: 300; }


/* ── PROCESO ─────────────────────────────── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 1.5rem; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), var(--border), transparent);
}

.step { text-align: center; position: relative; }
.step-num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--warm-white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  position: relative; z-index: 1;
}
.step h4 { font-size: 0.9375rem; font-weight: 500; margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--mid); font-weight: 300; }


/* ── POR QUÉ YO ──────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-list { list-style: none; margin-top: 2rem; }
.why-list li {
  display: flex; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.why-list li:first-child { border-top: 1px solid var(--border); }

.why-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.why-text strong { display: block; font-weight: 500; margin-bottom: 0.25rem; }
.why-text span { color: var(--mid); font-weight: 300; font-size: 0.9rem; }

.why-visual {
  background: var(--stone);
  border: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
}

.big-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
  opacity: 0.12;
  display: block;
  margin-bottom: -2rem;
}
.why-visual p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.why-visual small { display: block; color: var(--mid); font-size: 0.875rem; margin-top: 1rem; font-weight: 300; }


/* ── CTA / CONTACTO ──────────────────────── */

.cta-section {
  background: var(--dark);
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
}
.cta-section .section-label { color: var(--accent-light); justify-content: center; }
.cta-section .section-label::before { background: var(--accent-light); }

.cta-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  margin: 0.75rem 0 1.25rem;
  color: #fff;
}
.cta-section p { color: rgba(255,255,255,0.6); font-weight: 300; margin-bottom: 2.5rem; font-size: 1.0625rem; }

.contact-options {
  display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap;
}
.contact-chip {
  display: inline-flex; align-items: center; gap: 0.625rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  text-decoration: none;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  font-size: 0.9375rem;
  transition: background 0.2s;
}
.contact-chip:hover { background: rgba(255,255,255,0.13); }
.contact-chip.primary {
  background: var(--accent);
  border-color: var(--accent);
}
.contact-chip.primary:hover { background: var(--accent-light); border-color: var(--accent-light); }


/* ── FOOTER ──────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
footer p { font-size: 0.8125rem; color: var(--mid); }

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; font-weight: 600;
  color: var(--dark);
}
.footer-logo span { color: var(--accent); }


/* ── ANIMACIONES ─────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: none;
}


/* ── RESPONSIVE ──────────────────────────── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 4rem 2rem 3rem; order: 2; }
  .hero-right { order: 1; min-height: 260px; padding: 2rem; }
  .hero-stat-row { gap: 1.5rem; }
  .window-svg { width: 160px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
}
