/* ═══════════════════════════════════════════
   GESTING — Estilos principales
   Mobile-first | Vanilla CSS
═══════════════════════════════════════════ */

/* ─── Variables ─────────────────────────── */
:root {
  --bg-main:       #FAFAF7;
  --bg-beige:      #F2EDE6;
  --bg-warm:       #EDE8E0;
  --bg-dark:       #2C2420;
  --bg-footer:     #1C1C1C;

  --accent:        #C9A97A;
  --accent-light:  #E8D9C0;

  --text-primary:  #1C1C1C;
  --text-secondary:#6B6360;
  --text-light:    #F5F0E8;
  --text-muted:    #A09590;

  --btn-dark:      #2C2420;
  --btn-dark-text: #FFFFFF;

  --serif:         'Playfair Display', Georgia, serif;
  --sans:          'Inter', system-ui, sans-serif;

  --radius:        4px;
  --radius-md:     8px;

  --section-pad:   80px 0;
  --container:     1180px;
  --gap:           24px;

  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { display: block; }
button { border: none; cursor: pointer; background: none; font: inherit; }

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

.section {
  padding: var(--section-pad);
}
.section--light  { background: var(--bg-main); }
.section--beige  { background: var(--bg-beige); }
.section--warm   { background: var(--bg-warm); }
.section--dark   { background: var(--bg-dark); }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.section__lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.section__lead + .section__lead {
  margin-top: 12px;
}
.section__lead--accent {
  font-style: italic;
  color: var(--accent);
  font-size: 16px;
}
.section__cta {
  text-align: center;
  margin-top: 48px;
}

/* ─── Reveal Animation ─────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--transition), transform 0.65s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn__icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--btn-dark);
  color: var(--btn-dark-text);
  border: 1.5px solid var(--btn-dark);
}
.btn--primary:hover {
  background: #3d3330;
  border-color: #3d3330;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}
.btn--outline:hover {
  background: var(--text-primary);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid transparent;
  padding: 10px 18px;
}
.btn--ghost:hover {
  border-color: var(--text-primary);
}

.btn--light {
  background: var(--bg-main);
  color: var(--btn-dark);
  border: 1.5px solid var(--bg-main);
}
.btn--light:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* ─── NAV ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
.nav.scrolled .nav__logo-img {
  filter: brightness(0);
}
.nav__logo-text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.nav.scrolled .nav__logo-text {
  color: var(--text-primary);
}
.nav__cta {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  font-size: 14px;
}
.nav.scrolled .nav__cta {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* ─── HERO ────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28,20,16,0.55) 0%,
    rgba(28,20,16,0.35) 50%,
    rgba(28,20,16,0.65) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(42px, 9vw, 80px);
  font-weight: 500;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
  max-width: 700px;
}
.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  max-width: 460px;
  line-height: 1.6;
}
.br-desktop { display: none; }
.hero__btn {
  font-size: 15px;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  width: 28px;
  height: 28px;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero__scroll svg { width: 28px; height: 28px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── PILLARS ──────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 8px;
}
.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 32px;
  background: var(--bg-beige);
  border-radius: var(--radius-md);
}
.pillar__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar__icon svg { width: 26px; height: 26px; }
.pillar__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
}
.pillar__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── SERVICES GRID ───────────────────── */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: var(--bg-main);
  transition: background var(--transition);
}
.service-card:hover {
  background: #fff;
}
.service-card__icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon svg { width: 22px; height: 22px; }
.service-card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
}
.service-card__text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ─── DIFFERENTIALS ───────────────────── */
.differentials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}
.diff-card {
  padding: 36px 32px;
  background: var(--bg-beige);
  border-radius: var(--radius);
  position: relative;
  transition: background var(--transition);
}
.diff-card:hover {
  background: var(--accent-light);
}
.diff-card__num {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.6;
  line-height: 1;
  margin-bottom: 16px;
}
.diff-card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.diff-card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 360px;
}

/* ─── STEPS ───────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
}
.step__connector {
  width: 2px;
  height: 32px;
  background: var(--accent);
  opacity: 0.3;
  margin-left: 18px;
}
.step__num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  min-width: 52px;
  flex-shrink: 0;
}
.step__body { padding-top: 4px; }
.step__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 440px;
}

/* ─── CONTACT ─────────────────────────── */
.contact {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.contact__title {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 20px;
}
.contact__subtitle {
  font-size: 16px;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.contact__alt {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(245, 240, 232, 0.5);
}
.contact__mail {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact__mail:hover { color: var(--accent-light); }
.contact__note {
  margin-top: 16px;
  font-size: 13px;
  font-style: italic;
  color: rgba(245, 240, 232, 0.35);
}

/* ─── FOOTER ──────────────────────────── */
.footer {
  background: var(--bg-footer);
  padding: 56px 0 32px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__logo-img { height: 28px; width: auto; }
.footer__logo-text {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}
.footer__tagline {
  font-size: 13px;
  color: var(--text-muted);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--accent); }
.footer__link-icon { width: 16px; height: 16px; flex-shrink: 0; }
.footer__copy {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(160, 149, 144, 0.5);
  text-align: center;
}

/* ─── WHATSAPP FLOTANTE ────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float svg {
  width: 28px;
  height: 28px;
  color: #fff;
  fill: #fff;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ─── ACORDEÓN MOBILE (generado por JS) ── */
@media (max-width: 639px) {
  .acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 24px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    text-align: left;
  }
  .acc-title {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
  }
  .acc-icon {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    transition: transform var(--transition);
    display: inline-block;
  }
  .acc-content {
    padding: 24px;
  }
  .section {
    padding: 0;
  }
  .section .container {
    padding: 0;
  }
}

/* ═══════════════════════════════════════════
   TABLET — 640px+
═══════════════════════════════════════════ */
@media (min-width: 640px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .pillars {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }
  .differentials {
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP — 900px+
═══════════════════════════════════════════ */
@media (min-width: 900px) {
  :root {
    --section-pad: 112px 0;
  }

  .br-desktop { display: inline; }

  /* Nav */
  .nav__inner { padding: 22px 40px; }

  /* Hero */
  .hero__content { padding: 140px 40px 100px; }

  /* Services */
  .services {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }
  .service-card {
    padding: 32px 20px;
  }

  /* Differentials */
  .differentials {
    grid-template-columns: 1fr 1fr;
    gap: 3px;
  }
  .diff-card { padding: 48px 40px; }

  /* Steps */
  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
  .step {
    flex-direction: column;
    flex: 1;
    gap: 16px;
    padding: 0;
    align-items: flex-start;
  }
  .step__connector {
    width: auto;
    flex: 1;
    height: 2px;
    margin: 0;
    margin-top: 22px;
  }
  .step__num { font-size: 52px; }
  .step__text { max-width: none; }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer__links {
    flex-direction: row;
    gap: 28px;
    align-items: center;
  }
  .footer__copy { text-align: left; }

  .container { padding: 0 40px; }
}

/* ═══════════════════════════════════════════
   LARGE DESKTOP — 1200px+
═══════════════════════════════════════════ */
@media (min-width: 1200px) {
  .services {
    grid-template-columns: repeat(5, 1fr);
  }
  .service-card { padding: 36px 24px; }
}
