/* ============ TOKENS ============ */
:root {
  --navy: #012839;
  --navy-light: #053a50;
  --navy-lighter: #0b4a64;
  --gold: #e4a244;
  --gold-light: #f6cd7b;
  --cream: #fef6eb;
  --ink: #0f1c24;
  --ink-soft: #4a5a63;
  --bg: #fbf9f5;
  --bg-alt: #eef2f3;
  --border: #d9e1e4;
  --shadow: 0 12px 30px -12px rgba(1, 40, 57, 0.3);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 88px; }

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; color: var(--navy); line-height: 1.2; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}
.btn--gold:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn--outline {
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--cream); }

.btn--cta {
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  font-size: 0.88rem;
}
.btn--cta:hover { background: var(--gold-light); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 20px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  min-width: 0;
}
.nav__logo {
  height: 68px;
  width: auto;
  flex-shrink: 0;
}
.nav__name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  color: var(--cream);
  font-size: 0.92rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
  padding: 4px 0;
}
.nav__links a:hover { opacity: 1; color: var(--gold-light); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 156px 0 90px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 60%, var(--navy-lighter) 100%);
  color: var(--cream);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg::before,
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
}
.hero__bg::before {
  background: url('../assets/hero-santiago.jpg') center 25% / cover no-repeat;
  filter: blur(4px) saturate(0.9);
  transform: scale(1.08);
}
.hero__bg::after {
  background: linear-gradient(100deg, rgba(1,40,57,0.92) 0%, rgba(1,40,57,0.72) 50%, rgba(1,40,57,0.5) 100%);
}
.hero__glow {
  z-index: 1;
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.22;
  animation: heroGlowDrift 22s ease-in-out infinite alternate;
}
.hero__glow--a {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}
.hero__glow--b {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  bottom: -18%;
  right: -6%;
  background: radial-gradient(circle, var(--navy-lighter) 0%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}
@keyframes heroGlowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, 6%) scale(1.08); }
  100% { transform: translate(-3%, -4%) scale(0.98); }
}
.hero__inner {
  position: relative;
  z-index: 2;
}
.hero__text { max-width: 720px; }

@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; }
}
.hero__eyebrow {
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: var(--cream);
  margin-bottom: 22px;
}
.amp {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--gold);
}
.hero__tagline {
  font-size: 1.1rem;
  color: rgba(254,246,235, 0.82);
  max-width: 58ch;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}
.hero .btn--outline { border-color: rgba(254,246,235,0.4); color: var(--cream); }
.hero .btn--outline:hover { background: var(--cream); color: var(--navy); }

.hero__areas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid rgba(254,246,235,0.16);
  padding-top: 22px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254,246,235,0.7);
}
.hero__areas li { position: relative; padding-left: 16px; }
.hero__areas li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}


/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--navy);
  color: var(--cream);
}

.section__eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.6rem, 3.5vw, 40px);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 16px;
}
.section__eyebrow--light { color: var(--gold-light); }
.section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}
.section__title--light { color: var(--cream); }
.section__title--lg { font-size: clamp(2rem, 5vw, 50px); }
.section__note {
  max-width: 60ch;
  margin: 0 auto 40px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section--tight { padding: 70px 0; }

/* ============ ABOUT ============ */
.about { max-width: 820px; }
.about__content p { margin-bottom: 18px; color: var(--ink-soft); }
.about__content .section__eyebrow { color: var(--gold); margin-bottom: 16px; }
.about__subtitle {
  font-size: 1.15rem;
  margin: 28px 0 14px;
}
.about__list {
  display: grid;
  gap: 10px;
}
.about__list li {
  padding-left: 22px;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.about__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--border);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* ============ SERVICIOS ============ */
.section--services { padding: 72px 0 40px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 16px;
}
.service-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 28px;
}
.service-group__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.service-group__header .card__icon { margin-bottom: 0; flex-shrink: 0; }
.service-group__header h3 { font-size: 1.1rem; }
.service-list { display: grid; gap: 11px; }
.service-list li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.services-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.services-note a { color: var(--gold); font-weight: 600; }
.services-note a:hover { color: var(--navy); }

/* ============ CARDS / ÁREAS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; }

/* ============ TIMELINE (Cómo trabajo) ============ */
.accent { color: var(--gold-light); }

.timeline__row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  margin-bottom: 24px;
}
.timeline__line {
  position: absolute;
  top: 50%;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: rgba(254,246,235, 0.25);
  transform: translateY(-50%);
  z-index: 0;
}
.timeline__number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--navy);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.timeline__labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.timeline__labels h3 {
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.timeline__labels p {
  color: rgba(254,246,235, 0.68);
  font-size: 0.88rem;
}

.timeline--3 .timeline__row,
.timeline--3 .timeline__labels { grid-template-columns: repeat(3, 1fr); }
.timeline--3 .timeline__line { left: 16.666%; right: 16.666%; }

@media (max-width: 760px) {
  .timeline__row, .timeline__labels { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .timeline__line { display: none; }
  .timeline--3 .timeline__row,
  .timeline--3 .timeline__labels { grid-template-columns: 1fr; }
}

/* ============ TESTIMONIALS ============ */
.cards--testimonials .testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 30px 26px;
}
.testimonial p {
  font-style: italic;
  color: var(--ink);
  margin-bottom: 16px;
  font-size: 0.96rem;
}
.testimonial cite {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 600;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(254,246,235,0.14);
  border-radius: 8px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.contact-card:hover { background: rgba(228,162,68,0.12); transform: translateY(-3px); }
.contact-card svg { color: var(--gold-light); }
.contact-card span { font-weight: 600; }
.contact-card small { color: rgba(254,246,235,0.65); font-size: 0.82rem; }

.contact-extra {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  border-top: 1px solid rgba(254,246,235,0.14);
  padding-top: 36px;
}
.contact-extra h3 {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.contact-extra p { color: rgba(254,246,235,0.78); font-size: 0.92rem; }
.contact-extra__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
}
.contact-extra__link:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.footer {
  background: #011d2a;
  color: rgba(254,246,235,0.6);
  padding: 28px 0;
  font-size: 0.85rem;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(254,246,235,0.2);
  border-radius: 50%;
  color: var(--gold-light);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ============ WHATSAPP FAB ============ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* ============ REVEAL ON SCROLL ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    top: 88px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }

  .hero { padding: 124px 0 70px; }
  .section { padding: 70px 0; }
  .section--services { padding: 56px 0 32px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
