/* ─── RESET & TOKENS ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:   #221b14;
  --paper: #faf5ea;
  --gold:  #e8b923;
  --gold2: #f5d16a;
  --gray:  #6b6b6b;
  --card:  #ffffff;
  --teal:   #1E9AA8;
  --green:  #6FB93C;
  --purple: #A44FC7;
  --orange: #E8822E;
  --navbg:  #221b14;
  --serif: 'Bebas Neue', sans-serif;
  --body:  'DM Sans', sans-serif;
  --ease:  cubic-bezier(.25,.8,.25,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── CURSOR ─────────────────────────────────────────── */
.cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: multiply;
}
.cursor.big { width: 40px; height: 40px; background: var(--gold2); opacity: .5; }

/* ─── NAVBAR ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 5vw;
  background: var(--navbg);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: box-shadow .4s;
}
nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.9rem;
  letter-spacing: .06em;
  color: var(--gold);
  text-decoration: none;
}
.nav-logo span { color: #fff; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: .45rem 1.2rem !important;
  border-radius: 2px;
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 2px; background: #fff; transition: .3s; }

/* ─── SECTION BASE ───────────────────────────────────── */
section { padding: 7rem 5vw; }

.section-tag {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; display: block; margin-bottom: .6rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--gray); font-size: 1rem; line-height: 1.7; max-width: 50ch;
  margin-bottom: 0;
}

/* ─── BOTONES ────────────────────────────────────────── */
.btn-primary {
  background: var(--gold); color: var(--ink);
  padding: .8rem 2rem; font-weight: 700;
  text-decoration: none; letter-spacing: .04em;
  border: 2px solid var(--gold);
  display: inline-block;
  transition: background .25s, color .25s;
}
.btn-primary:hover { background: var(--ink); color: var(--gold); }

.btn-ghost {
  background: transparent; color: var(--ink);
  padding: .8rem 2rem; font-weight: 500;
  text-decoration: none; letter-spacing: .04em;
  border: 2px solid rgba(34,27,20,.25);
  display: inline-block;
  transition: border-color .25s, color .25s;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ─── ANIMATIONS ─────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── HERO ───────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5vw;
  padding-top: 130px;
  gap: 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg-line {
  position: absolute; top: 0; left: 50%; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--green), var(--gold), var(--orange), var(--purple));
  opacity: .5;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5; pointer-events: none;
}
.hero-left { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); border: 1px solid var(--teal);
  padding: .3rem .8rem; margin-bottom: 1.5rem;
  animation: fadeUp .7s .1s both;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: .95;
  color: var(--ink);
  animation: fadeUp .7s .25s both;
}
.hero-title .accent { color: var(--gold); display: block; }
.hero-sub {
  margin-top: 1.2rem;
  color: var(--gray);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 38ch;
  animation: fadeUp .7s .4s both;
}
.hero-btns {
  margin-top: 2.5rem;
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp .7s .55s both;
}
.hero-right {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  animation: fadeUp .8s .3s both;
}
.hero-card {
  background: var(--card);
  border: 1px solid rgba(34,27,20,.08);
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  padding: 1.2rem 1.2rem;
  transition: background .3s, border-color .3s, transform .3s;
  cursor: default;
}
.hero-card:hover {
  background: rgba(232,185,35,.08);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.hero-card .icon { font-size: 2rem; margin-bottom: .6rem; border-radius: 4px; }
.hero-card h3 { font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.hero-card p  { font-size: .78rem; color: var(--gray); line-height: 1.45; }

/* ─── ¿POR QUÉ ELEGIRNOS? ────────────────────────────── */
#porque { background: var(--paper); }
.porque-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.porque-card {
  background: var(--card);
  padding: 2.2rem 1.8rem;
  border-left: 4px solid var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.porque-card:nth-child(1) { border-left-color: var(--teal); }
.porque-card:nth-child(2) { border-left-color: var(--purple); }
.porque-card:nth-child(3) { border-left-color: var(--gold); }
.porque-card:nth-child(4) { border-left-color: var(--orange); }
.porque-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.porque-card .icon { font-size: 2.2rem; margin-bottom: 1rem; }
.porque-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.porque-card p  { font-size: .88rem; color: var(--gray); line-height: 1.65; }

/* ─── SERVICIOS ──────────────────────────────────────── */
#servicios, .servicios-page { background: var(--paper); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: rgba(34,27,20,.08);
  border: 1px solid rgba(34,27,20,.08);
}
.servicio-card {
  background: var(--card);
  padding: 2.2rem 1.8rem;
  transition: background .3s;
  cursor: default;
  display: flex;
  flex-direction: column;
}
.servicio-card:hover { background: #f5efe1; }
.servicio-card .icon { font-size: 2.2rem; margin-bottom: 1rem; }
.servicio-card h3  { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.servicio-card p   { font-size: .82rem; color: var(--gray); margin-bottom: 1rem; }
.servicio-list { list-style: none; margin-top: auto; padding-top: .5rem; }
.servicio-list li {
  font-size: .82rem; color: var(--gray);
  padding: .3rem 0;
  border-bottom: 1px solid rgba(34,27,20,.08);
  display: flex; align-items: center; gap: .5rem;
}
.servicio-list li::before { content: '→'; color: var(--gold); font-size: .8rem; }

/* ─── NOSOTROS ───────────────────────────────────────── */
#nosotros, .nosotros-page { background: var(--paper); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-top: 3.5rem;
}
.nosotros-text h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}
.nosotros-text p {
  color: var(--gray); font-size: .95rem; line-height: 1.75; margin-bottom: 1rem;
}
.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.stat-card {
  background: var(--card); color: var(--ink);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
}
.stat-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
}
.stat-label { font-size: .82rem; color: var(--gray); margin-top: .4rem; }

/* Equipo cards (página nosotros completa) */
.equipo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.equipo-card {
  background: var(--card);
  padding: 2.2rem 1.8rem;
  text-align: center;
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  transition: transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 280px;
}
.equipo-card p { margin-top: auto; padding-top: .5rem; }
.equipo-card:nth-child(4n+1) { border-top-color: var(--teal); }
.equipo-card:nth-child(4n+2) { border-top-color: var(--green); }
.equipo-card:nth-child(4n+3) { border-top-color: var(--purple); }
.equipo-card:nth-child(4n+4) { border-top-color: var(--orange); }
.equipo-card:hover { transform: translateY(-5px); }
.equipo-avatar {
  width: 80px; height: 80px;
  background: var(--paper);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.2rem;
}
.equipo-card h3  { font-size: 1.05rem; font-weight: 700; margin-bottom: .2rem; }
.equipo-card .role { font-size: .82rem; color: var(--gold); font-weight: 600; margin-bottom: .6rem; }
.equipo-card p   { font-size: .82rem; color: var(--gray); line-height: 1.5; }

/* ─── PRÓXIMAMENTE ───────────────────────────────────── */
#proximamente, .prox-page { background: var(--paper); }

.prox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.prox-card {
  background: var(--card);
  border: 1px solid rgba(34,27,20,.08);
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  padding: 2.2rem 1.8rem;
  text-align: center;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.prox-card:nth-child(1) { border-top-color: var(--teal); }
.prox-card:nth-child(2) { border-top-color: var(--green); }
.prox-card:nth-child(3) { border-top-color: var(--purple); }
.prox-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(232,185,35,.08), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.prox-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  z-index: 5;
}
.prox-card:hover::after { opacity: 1; }
.prox-card .icon { font-size: 2.4rem; margin-bottom: 1rem; display: block; }
.prox-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.prox-card p  { font-size: .83rem; color: var(--gray); margin-bottom: 1.2rem; }
.badge {
  display: inline-block;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: .3rem .8rem;
}
.badge-gold { background: var(--gold); color: var(--ink); }
.badge-gray { background: rgba(34,27,20,.08); color: var(--gray); }

/* ─── CONTACTO ───────────────────────────────────────── */
#contacto, .contacto-page { background: var(--paper); }

.contacto-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem;
  margin-top: 3.5rem; align-items: start;
}
.contacto-info h3 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 1.5rem; }
.info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.2rem;
}
.info-item .iicon {
  width: 42px; height: 42px; background: var(--navbg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.info-item .itext p { font-size: .82rem; color: var(--gray); margin: 0; }
.info-item .itext strong { font-size: .95rem; display: block; }

.form-card {
  background: var(--card);
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
.form-group { margin-bottom: 1.3rem; }
.form-group label {
  display: block; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1px solid #e0d9cf;
  background: var(--paper);
  font-family: var(--body); font-size: .9rem; color: var(--ink);
  outline: none;
  transition: border-color .25s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.btn-submit {
  width: 100%; padding: 1rem;
  background: var(--navbg); color: #fff;
  border: 2px solid var(--navbg);
  font-family: var(--body); font-size: .95rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-submit:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ─── PAGE HERO (páginas internas) ───────────────────── */
.page-hero {
  background: var(--paper);
  padding: 10rem 5vw 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .5;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; text-align: center; }
.page-hero .section-tag { color: var(--gold); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--ink);
  line-height: .95;
  margin-bottom: .8rem;
}
.page-hero p { color: var(--gray); font-size: 1.05rem; max-width: 45ch; margin: 0 auto; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: var(--navbg);
  color: rgba(255,255,255,.6);
  padding: 3rem 5vw;
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center;
}
.footer-logo {
  font-family: var(--serif); font-size: 2.2rem;
  color: var(--gold); letter-spacing: .06em;
}
footer p { font-size: .82rem; line-height: 1.7; }
.footer-divider { width: 60px; height: 1px; background: rgba(255,255,255,.15); }

/* ─── PORTAFOLIO ──────────────────────────────────────── */
.portfolio-hero { background: var(--navbg); }
.portfolio-hero .section-tag { color: var(--gold); }
.portfolio-hero h1.portfolio-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  line-height: .9;
  color: #fff;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  margin-bottom: .8rem;
}
.portfolio-o {
  height: .78em; width: auto;
  display: inline-block; vertical-align: middle;
  margin: 0 -.52em;
}
.portfolio-hero p { color: rgba(255,255,255,.55); }
/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; padding-top: 7rem; text-align: center; }
  .hero-bg-line { display: none; }
  .hero-sub { margin: 1rem auto 0; }
  .hero-btns { justify-content: center; }
  .hero-right { display: none; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacto-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #5c3d24; flex-direction: column; align-items: center;
    padding: 1.5rem; gap: 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  nav { flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .equipo-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
  .acompanamiento-grid { grid-template-columns: 1fr; text-align: center; }
  .acompanamiento-grid img { max-width: 160px; margin: 0 auto; }
}
