/* ============================================================
   GRANADA Producción y Diseño — Estilos Principales
   Versión: 1.0.0
   Paleta: Oscuro #0D0D0D · Crema #F5EDE0 · Rojo Granada #B5252E · Oro #C9A96E
   Tipografía: Cormorant Garamond (serif) + DM Sans (sans)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Colores principales */
  --dark:          #0D0D0D;
  --dark-2:        #181414;
  --dark-3:        #201B1B;
  --cream:         #F5EDE0;
  --cream-2:       #EDE4D8;
  --cream-3:       #E3D8CB;
  --red:           #B5252E;
  --red-h:         #9A1E26;
  --red-ghost:     rgba(181,37,46,0.10);
  --gold:          #C9A96E;
  --gold-2:        #A8883E;
  --text:          #1A1A1A;
  --text-muted:    #777070;
  --white:         #FFFFFF;
  --border:        rgba(26,26,26,0.09);
  --border-light:  rgba(255,255,255,0.07);

  /* Tipografías */
  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max:    1280px;
  --gap:    24px;

  /* Animaciones */
  --t:      0.3s ease;
  --ts:     0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Sección */
  --py: clamp(80px, 10vw, 140px);
}

/* ── Reset ────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { font-family: var(--sans); color: var(--text); background: var(--cream); line-height: 1.7; overflow-x: hidden; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Tipografía ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--serif); line-height: 1.1; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.3rem); }
p  { font-size: clamp(.95rem, 1.1vw, 1.05rem); }

/* ── Layout ───────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }

/* ── Botones ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px; border-radius: 2px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: all var(--t); cursor: pointer; border: 2px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-h); border-color: var(--red-h); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(181,37,46,.3); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.btn-ghost-dark { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-ghost-dark:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }
.btn-wa { background: #25D366; color: var(--white); border-color: #25D366; }
.btn-wa:hover { background: #1dba57; border-color: #1dba57; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.35); }

/* ── Etiqueta de sección ──────────────────────────────────── */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 18px;
}
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; flex-shrink: 0; }
.label.center { justify-content: center; }
.label.center::before { display: none; }

/* ── Reveal ───────────────────────────────────────────────── */
.rv  { opacity: 0; transform: translateY(36px); transition: opacity .9s ease, transform .9s ease; }
.rvl { opacity: 0; transform: translateX(-36px); transition: opacity .9s ease, transform .9s ease; }
.rvr { opacity: 0; transform: translateX(36px);  transition: opacity .9s ease, transform .9s ease; }
.rv.in, .rvl.in, .rvr.in { opacity: 1; transform: translate(0); }
.rv.d1  { transition-delay: .1s; }
.rv.d2  { transition-delay: .2s; }
.rv.d3  { transition-delay: .3s; }
.rv.d4  { transition-delay: .4s; }
.rv.d5  { transition-delay: .5s; }

/* ======================================================
   HEADER
   ====================================================== */
#hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background var(--t), box-shadow var(--t);
}
#hdr.solid {
  background: rgba(13,13,13,.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border-light);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px var(--gap);
  max-width: var(--max); margin: 0 auto;
  transition: padding var(--t);
}
#hdr.solid .nav-row { padding-top: 14px; padding-bottom: 14px; }

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; object-fit: contain; display: block; }
.logo-txt { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--white); letter-spacing: .04em; }
.logo-sub  { font-size: .56rem; font-weight: 500; color: rgba(255,255,255,.55); letter-spacing: .25em; text-transform: uppercase; margin-top: 3px; }

/* Links */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: .75rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.75); padding: 7px 10px; border-radius: 3px; transition: color var(--t), background var(--t); white-space: nowrap; }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav-cta { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; background: var(--red); color: var(--white); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; transition: all var(--t); white-space: nowrap; }
.nav-cta:hover { background: var(--red-h); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(181,37,46,.4); }

/* Hamburguesa */
.ham { display: none; flex-direction: column; gap: 6px; width: 28px; cursor: pointer; padding: 4px; }
.ham span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--t); }
.ham.on span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ham.on span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ham.on span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú móvil */
#mob-menu {
  position: fixed; inset: 0; z-index: 850;
  background: var(--dark); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden; transition: all var(--ts);
}
#mob-menu.open { opacity: 1; visibility: visible; }
#mob-menu a { font-family: var(--serif); font-size: clamp(2rem, 6vw, 3rem); color: var(--cream); transition: color var(--t); }
#mob-menu a:hover { color: var(--red); }
#mob-menu .mob-cta { font-family: var(--sans); font-size: .9rem; padding: 13px 32px; background: var(--red); border-radius: 2px; margin-top: 16px; }
#mob-menu .mob-cta:hover { font-size: .9rem; color: var(--white); }

@media (max-width: 1024px) { .nav-links { display: none; } .ham { display: flex; } }
@media (max-width: 680px)  { .nav-cta { display: none; } }

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: var(--dark); overflow: hidden;
  padding: 120px var(--gap) 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .28; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(13,13,13,.97) 0%, rgba(13,13,13,.75) 55%, rgba(13,13,13,.28) 100%);
}

/* Decoración inspirada en la granada */
.hero-orb {
  position: absolute; right: 7%; top: 50%; transform: translateY(-50%);
  width: clamp(220px,28vw,420px); height: clamp(220px,28vw,420px);
  border-radius: 50%; z-index: 1; pointer-events: none;
  border: 1px solid rgba(201,169,110,.12);
  animation: orbPulse 8s ease-in-out infinite;
}
.hero-orb::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(181,37,46,.15); }
.hero-orb::after  { content: ''; position: absolute; inset: 30%; border-radius: 50%; background: rgba(181,37,46,.06); border: 1px solid rgba(181,37,46,.12); }
@keyframes orbPulse { 0%,100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-52%) scale(1.03); } }

.hero-body { position: relative; z-index: 2; max-width: 800px; }
.hero-tag { display: inline-flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.hero-tag::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.hero h1 { color: var(--white); margin-bottom: 28px; font-weight: 400; line-height: 1.07; }
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255,255,255,.72); max-width: 560px; margin-bottom: 52px; line-height: 1.75; font-weight: 300; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* Indicador scroll */
.hero-scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.35); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero-scroll-hint::after { content: ''; width: 1px; height: 38px; background: rgba(255,255,255,.25); animation: scrollDrop 2.2s ease-in-out infinite; }
@keyframes scrollDrop { 0%,100% { opacity: .3; transform: scaleY(1); transform-origin: top; } 50% { opacity: .8; transform: scaleY(1.3); } }

/* ======================================================
   MARQUEE CLIENTES
   ====================================================== */
.marquee-bar { background: var(--dark-2); padding: 0; overflow: hidden; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 35s linear infinite;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 0;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.38); white-space: nowrap;
  padding: 22px 40px;
}
.marquee-item .sep { color: var(--red); margin: 0 40px; font-size: .42rem; opacity: .8; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ======================================================
   SOBRE GRANADA
   ====================================================== */
.about { padding: var(--py) var(--gap); background: var(--cream); }
.about-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }

.about-left .label { color: var(--red); }
.about-left h2 { color: var(--dark); margin-bottom: 26px; }
.about-left h2 em { color: var(--red); }
.about-left > p { color: var(--text-muted); margin-bottom: 18px; line-height: 1.85; }

.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.pillar { padding: 24px 20px; border: 1px solid var(--border); background: var(--white); transition: all var(--t); border-radius: 2px; }
.pillar:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.pillar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-bottom: 14px; }
.pillar h4 { font-family: var(--sans); font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--dark); margin-bottom: 6px; }
.pillar p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

.about-visual { position: relative; }
.about-img-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.about-img-over { position: absolute; bottom: -36px; left: -36px; width: 44%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--cream); border-radius: 2px; box-shadow: 0 18px 50px rgba(0,0,0,.14); }
.about-badge { position: absolute; top: 28px; right: -20px; width: 110px; height: 110px; border-radius: 50%; background: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--white); text-align: center; box-shadow: 0 10px 32px rgba(181,37,46,.42); }
.about-badge strong { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.about-badge span   { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .82; margin-top: 4px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-img-over { left: 0; bottom: -20px; width: 36%; }
  .about-badge { right: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

/* ======================================================
   SERVICIOS — GRID
   ====================================================== */
.svc-grid-section { background: var(--dark); padding: var(--py) var(--gap); }
.svc-grid-hdr { max-width: var(--max); margin: 0 auto 72px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.svc-grid-hdr .label { color: var(--gold); }
.svc-grid-hdr h2 { color: var(--cream); max-width: 480px; }
.svc-grid-hdr p  { color: rgba(255,255,255,.5); max-width: 300px; font-size: .95rem; line-height: 1.75; }

.svc-cards { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; }
.svc-card  { position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.svc-card:hover img { transform: scale(1.07); }
.svc-card-ov {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,.92) 0%, rgba(13,13,13,.25) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px 18px;
  transition: background var(--t);
}
.svc-card:hover .svc-card-ov { background: linear-gradient(to top, rgba(181,37,46,.88) 0%, rgba(181,37,46,.35) 60%, transparent 100%); }
.svc-num  { font-size: .62rem; font-weight: 700; letter-spacing: .2em; color: var(--gold); margin-bottom: 6px; }
.svc-card h3 { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.svc-arrow { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); transition: all var(--t); display: inline-flex; align-items: center; gap: 8px; }
.svc-card:hover .svc-arrow { color: var(--white); gap: 14px; }
.svc-arrow::after { content: '→'; }

@media (max-width: 900px)  { .svc-cards { grid-template-columns: repeat(2,1fr); } .svc-grid-hdr { flex-direction: column; align-items: flex-start; } }
@media (max-width: 520px)  { .svc-cards { grid-template-columns: 1fr; } .svc-card { aspect-ratio: 16/9; } }

/* ======================================================
   SERVICIOS — DETALLE (alternado)
   ====================================================== */
.svc-detail { padding: var(--py) var(--gap); }
.svc-detail.bg-cream  { background: var(--cream); }
.svc-detail.bg-cream2 { background: var(--cream-2); }
.svc-detail.bg-dark   { background: var(--dark); }

.svc-detail-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.svc-detail-inner.rev { direction: rtl; }
.svc-detail-inner.rev > * { direction: ltr; }

.svc-detail.bg-cream  .label,
.svc-detail.bg-cream2 .label { color: var(--red); }
.svc-detail.bg-dark   .label { color: var(--gold); }

.svc-detail.bg-cream  h2,
.svc-detail.bg-cream2 h2 { color: var(--dark); }
.svc-detail.bg-dark   h2 { color: var(--cream); }

.svc-detail.bg-cream  p,
.svc-detail.bg-cream2 p { color: var(--text-muted); line-height: 1.85; }
.svc-detail.bg-dark   p { color: rgba(255,255,255,.6); line-height: 1.85; }

.svc-detail h2  { margin-bottom: 22px; }
.svc-detail > .svc-detail-inner > .svc-content p { margin-bottom: 18px; }

.svc-list { margin: 28px 0; }
.svc-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid; font-size: .93rem; }
.svc-detail.bg-cream  .svc-list li,
.svc-detail.bg-cream2 .svc-list li { border-color: var(--border); color: var(--text); }
.svc-detail.bg-dark   .svc-list li { border-color: var(--border-light); color: rgba(255,255,255,.78); }
.svc-list li::before { content: '◆'; color: var(--red); font-size: .45rem; margin-top: 7px; flex-shrink: 0; }

.svc-visual { position: relative; }
.svc-img-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 2px; }
.svc-img-over { position: absolute; bottom: -28px; right: -28px; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.svc-detail.bg-cream  .svc-img-over { border: 5px solid var(--cream); }
.svc-detail.bg-cream2 .svc-img-over { border: 5px solid var(--cream-2); }
.svc-detail.bg-dark   .svc-img-over { border: 5px solid var(--dark); }

@media (max-width: 900px) {
  .svc-detail-inner, .svc-detail-inner.rev { grid-template-columns: 1fr; direction: ltr; gap: 48px; }
  .svc-img-over { display: none; }
}

/* ======================================================
   REDES SOCIALES + SANTIAGO
   ====================================================== */
.social-section { background: var(--dark); padding: var(--py) var(--gap); }
.social-inner { max-width: var(--max); margin: 0 auto; }
.social-hdr { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 72px; }
.social-hdr .label { color: var(--gold); }
.social-hdr h2 { color: var(--cream); }
.social-hdr p  { color: rgba(255,255,255,.58); line-height: 1.85; }

.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag-chip { padding: 7px 14px; border: 1px solid rgba(255,255,255,.14); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.58); border-radius: 2px; transition: all var(--t); }
.tag-chip:hover { border-color: var(--gold); color: var(--gold); }

.svc-social-feats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border-light); margin-bottom: 60px; }
.ssf-item { background: var(--dark-3); padding: 32px 28px; }
.ssf-item h4 { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.ssf-item p  { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.7; }

/* Tarjeta Santiago */
.santiago-card { background: var(--dark-3); border: 1px solid var(--border-light); border-radius: 2px; padding: 44px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.santiago-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top center; border: 2px solid var(--gold); flex-shrink: 0; }
.santiago-info h4 { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); margin-bottom: 4px; }
.santiago-role { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.santiago-info p { color: rgba(255,255,255,.58); font-size: .93rem; line-height: 1.75; }
/* Foto real: coloca la imagen en /assets/images/santiago-sotomayor.jpg
   Si no existe, el tag img no se muestra y se oculta automáticamente. */
.santiago-photo-missing { display: none; }

@media (max-width: 900px) { .social-hdr, .svc-social-feats { grid-template-columns: 1fr; } .svc-social-feats { gap: 2px; } }
@media (max-width: 640px) { .santiago-card { grid-template-columns: 1fr; text-align: center; } .santiago-photo { margin: 0 auto; } }

/* ======================================================
   PLANES
   ====================================================== */
.plans-section { background: var(--cream-2); padding: var(--py) var(--gap); }
.plans-inner { max-width: var(--max); margin: 0 auto; }
.plans-hdr { text-align: center; margin-bottom: 72px; }
.plans-hdr .label { color: var(--red); justify-content: center; }
.plans-hdr .label::before { display: none; }
.plans-hdr h2 { color: var(--dark); margin-bottom: 14px; }
.plans-hdr p  { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

.plans-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }

.plan { background: var(--white); border: 1px solid var(--border); border-radius: 2px; padding: 48px 36px; position: relative; transition: all var(--ts); }
.plan:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.09); }
.plan.feat  { background: var(--dark); border-color: var(--dark); transform: translateY(-18px); }
.plan.feat:hover { transform: translateY(-26px); }

.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--red); color: var(--white); font-size: .62rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: 6px 18px; border-radius: 2px; white-space: nowrap; }

.plan-name    { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.plan.feat .plan-name { color: var(--gold); }
.plan-price   { font-family: var(--serif); font-size: clamp(2rem,3vw,2.8rem); font-weight: 600; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.plan.feat .plan-price { color: var(--cream); }
.plan-period  { font-size: .8rem; color: var(--text-muted); margin-bottom: 28px; }
.plan.feat .plan-period { color: rgba(255,255,255,.45); }
.plan-divider { height: 1px; background: var(--border); margin-bottom: 28px; }
.plan.feat .plan-divider { background: var(--border-light); }
.plan-ideal   { font-size: .88rem; font-style: italic; color: var(--text-muted); margin-bottom: 24px; line-height: 1.65; }
.plan.feat .plan-ideal { color: rgba(255,255,255,.5); }

.plan-feats   { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.plan-feat-item { display: flex; gap: 11px; align-items: flex-start; font-size: .88rem; color: var(--text); line-height: 1.5; }
.plan.feat .plan-feat-item { color: rgba(255,255,255,.78); }
.plan-feat-item::before { content: '✓'; width: 18px; height: 18px; border-radius: 50%; background: var(--red-ghost); color: var(--red); font-size: .62rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; font-weight: 700; }
.plan.feat .plan-feat-item::before { background: rgba(201,169,110,.14); color: var(--gold); }

.plan-btn { display: block; text-align: center; padding: 14px; border-radius: 2px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: all var(--t); cursor: pointer; }
.plan:not(.feat) .plan-btn { border: 2px solid var(--red); color: var(--red); }
.plan:not(.feat) .plan-btn:hover { background: var(--red); color: var(--white); }
.plan.feat .plan-btn { background: var(--red); color: var(--white); border: 2px solid var(--red); }
.plan.feat .plan-btn:hover { background: var(--red-h); border-color: var(--red-h); }

.plans-note { text-align: center; margin-top: 48px; font-size: .88rem; color: var(--text-muted); }

@media (max-width: 960px)  { .plans-row { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } .plan.feat { transform: translateY(0); } .plan.feat:hover { transform: translateY(-8px); } }

/* ======================================================
   PORTFOLIO
   ====================================================== */
.portfolio-section { background: var(--dark-2); padding: var(--py) var(--gap); }
.portfolio-inner { max-width: var(--max); margin: 0 auto; }
.portfolio-inner .label { color: var(--gold); }
.portfolio-inner h2 { color: var(--cream); margin-bottom: 12px; }
.portfolio-inner > p { color: rgba(255,255,255,.5); margin-bottom: 60px; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.port-item { position: relative; overflow: hidden; aspect-ratio: 4/3; border-radius: 2px; cursor: pointer; }
.port-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.port-item:hover img { transform: scale(1.06); }
.port-item-info { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(13,13,13,.9) 0%, transparent 100%); padding: 40px 22px 22px; }
.port-cat  { font-size: .62rem; color: var(--gold); letter-spacing: .15em; text-transform: uppercase; margin-bottom: 5px; }
.port-item-info h4 { color: var(--white); font-family: var(--serif); font-size: 1.05rem; }

/* Estado vacío (sin proyectos aún) */
.port-empty { padding: 60px 40px; border: 1px solid var(--border-light); border-radius: 2px; text-align: center; }
.port-empty p { color: rgba(255,255,255,.4); font-size: .95rem; line-height: 1.7; }
.port-empty strong { color: var(--gold); }

@media (max-width: 768px) { .portfolio-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .portfolio-grid { grid-template-columns: 1fr; } }

/* ======================================================
   CLIENTES
   ====================================================== */
.clients-section { background: var(--cream); padding: var(--py) var(--gap); }
.clients-inner { max-width: var(--max); margin: 0 auto; text-align: center; }
.clients-inner .label { color: var(--red); justify-content: center; }
.clients-inner .label::before { display: none; }
.clients-inner h2 { margin-bottom: 14px; }
.clients-inner > p { color: var(--text-muted); margin-bottom: 56px; }

.clients-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.c-chip { padding: 10px 20px; border: 1px solid var(--border); background: var(--white); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); border-radius: 2px; transition: all var(--t); }
.c-chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.07); }

/* ======================================================
   CTA FINAL
   ====================================================== */
.cta-final { background: var(--dark); padding: clamp(100px,12vw,180px) var(--gap); text-align: center; position: relative; overflow: hidden; }
.cta-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 800px; height: 800px; border-radius: 50%; border: 1px solid rgba(181,37,46,.07); pointer-events: none; }
.cta-ring::before { content: ''; position: absolute; inset: 16%; border-radius: 50%; border: 1px solid rgba(181,37,46,.05); }
.cta-body { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-final .label { color: var(--gold); justify-content: center; }
.cta-final .label::before { display: none; }
.cta-final h2 { color: var(--cream); font-size: clamp(2.4rem,5vw,4.4rem); margin-bottom: 22px; line-height: 1.1; }
.cta-final h2 em { color: var(--red); }
.cta-final p  { color: rgba(255,255,255,.6); font-size: 1.1rem; line-height: 1.82; margin-bottom: 52px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ======================================================
   CONTACTO
   ====================================================== */
.contact-section { background: var(--cream); padding: var(--py) var(--gap); }
.contact-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-info .label { color: var(--red); }
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--text-muted); line-height: 1.85; margin-bottom: 48px; }

.c-item { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.c-icon { width: 44px; height: 44px; background: var(--red-ghost); border-radius: 2px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.c-item-txt h5 { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 3px; }
.c-item-txt a, .c-item-txt p { font-size: .93rem; color: var(--text); transition: color var(--t); }
.c-item-txt a:hover { color: var(--red); }

/* Formulario */
.contact-form { background: var(--white); padding: 52px 48px; border: 1px solid var(--border); border-radius: 2px; }
.form-note { font-size: .78rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; padding: 12px 16px; background: rgba(201,169,110,.08); border-left: 3px solid var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fgroup { margin-bottom: 22px; }
.fgroup label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 7px; }
.fgroup input, .fgroup select, .fgroup textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 2px; font-size: .93rem; color: var(--text); background: var(--white); transition: border-color var(--t), box-shadow var(--t); outline: none; appearance: none; }
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-ghost); }
.fgroup textarea { height: 120px; resize: vertical; }
.fgroup.err input, .fgroup.err select, .fgroup.err textarea { border-color: var(--red); }
.ferr { font-size: .76rem; color: var(--red); margin-top: 5px; display: none; }
.fgroup.err .ferr { display: block; }

.form-submit { width: 100%; padding: 16px; background: var(--red); color: var(--white); border: none; border-radius: 2px; font-size: .88rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: all var(--t); display: flex; align-items: center; justify-content: center; gap: 10px; }
.form-submit:hover:not(:disabled) { background: var(--red-h); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(181,37,46,.3); }
.form-submit:disabled { opacity: .65; cursor: not-allowed; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 2px; font-size: .9rem; text-align: center; display: none; }
.form-status.ok  { display: block; background: rgba(39,174,96,.08); border: 1px solid rgba(39,174,96,.3); color: #1a7a40; }
.form-status.ko  { display: block; background: rgba(181,37,46,.08); border: 1px solid rgba(181,37,46,.3); color: var(--red); }

/* ──────────────────────────────────────────────────────────────
   NOTA DE IMPLEMENTACIÓN DEL FORMULARIO:
   El formulario está preparado para 3 métodos de envío:

   MÉTODO 1 — Formspree (recomendado):
   1. Ve a https://formspree.io y crea una cuenta gratuita
   2. Crea un formulario y copia el ID (ej: "xknkkwpk")
   3. En config.js: formspreeId: 'tu-id-aquí'
   4. En main.js busca "ACTIVAR FORMSPREE" y descomenta esas líneas

   MÉTODO 2 — Endpoint propio:
   1. En config.js: apiEndpoint: '/api/contact'
   2. Crea tu endpoint en el backend que reciba el JSON
   3. En main.js busca "ACTIVAR ENDPOINT PROPIO"

   MÉTODO 3 — EmailJS (sin backend):
   Busca "ACTIVAR EMAILJS" en main.js
   ────────────────────────────────────────────────────────────── */

@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 60px; } .form-row { grid-template-columns: 1fr; } .contact-form { padding: 36px 24px; } }

/* ======================================================
   FOOTER
   ====================================================== */
footer { background: var(--dark); padding: 80px var(--gap) 36px; border-top: 1px solid var(--border-light); }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 60px; margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border-light); }
.footer-brand > p { color: rgba(255,255,255,.42); font-size: .9rem; line-height: 1.75; margin: 18px 0; max-width: 290px; }

.footer-social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.f-social { width: 36px; height: 36px; border: 1px solid var(--border-light); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: .8rem; transition: all var(--t); }
.f-social:hover { border-color: var(--red); color: var(--red); }

.footer-col h5 { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { color: rgba(255,255,255,.47); font-size: .9rem; transition: color var(--t); }
.footer-col ul a:hover { color: var(--cream); }
.f-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.f-contact-item a { color: rgba(255,255,255,.47); font-size: .9rem; transition: color var(--t); }
.f-contact-item a:hover { color: var(--cream); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.28); }
.footer-bottom a { color: rgba(255,255,255,.42); transition: color var(--t); }
.footer-bottom a:hover { color: var(--cream); }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1/-1; } }
@media (max-width: 560px)  { .footer-top { grid-template-columns: 1fr; } }

/* ======================================================
   WHATSAPP FAB
   ====================================================== */
.wa-fab { position: fixed; bottom: 28px; right: 28px; z-index: 500; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(37,211,102,.42); transition: all var(--t); text-decoration: none; }
.wa-fab:hover { background: #1dba57; transform: scale(1.1); box-shadow: 0 10px 30px rgba(37,211,102,.5); }
.wa-fab svg { width: 28px; height: 28px; fill: currentColor; }

/* ======================================================
   ACCESIBILIDAD
   ====================================================== */
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ======================================================
   EFECTOS MODERNOS — AGENCIA PREMIUM v2
   ====================================================== */

/* ── Grain / Noise texture overlay ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
  background-size: 180px;
}

/* ── Cursor spotlight (desktop) ─────────────────────── */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform .1s ease, opacity .3s ease;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(181,37,46,.5);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: transform .18s ease, width .3s ease, height .3s ease, border-color .3s ease;
}
.cursor-ring.hovered {
  width: 60px; height: 60px;
  border-color: var(--gold);
}
@media (max-width: 1024px) { .cursor-dot, .cursor-ring { display: none; } }

/* ── Hero mejorado ──────────────────────────────────── */
.hero { min-height: 100svh; }
.hero h1 { letter-spacing: -.02em; }

/* Línea decorativa animada bajo el hero-tag */
.hero-tag { position: relative; }

/* Efecto parallax en imagen hero */
.hero-bg img { transform-origin: center; will-change: transform; }

/* ── Sección numérica decorativa ────────────────────── */
.section-num {
  font-family: var(--serif);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181,37,46,.12);
  line-height: 1;
  position: absolute;
  top: -20px;
  right: -10px;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* ── Botones magnéticos ─────────────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .3s ease;
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

/* ── Cards de servicio mejoradas ────────────────────── */
.svc-card { border-radius: 2px; }
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0);
  transition: border-color .4s ease;
  pointer-events: none;
}
.svc-card:hover::before { border-color: rgba(201,169,110,.4); }

/* ── Planes mejorados ───────────────────────────────── */
.plan { transition: transform .5s cubic-bezier(0.22,1,0.36,1), box-shadow .5s ease; }
.plan.feat::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red), var(--gold));
  z-index: -1;
  opacity: .6;
}

/* ── Líneas horizontales decorativas ────────────────── */
.deco-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.deco-line::before, .deco-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Hover en pilares ───────────────────────────────── */
.pillar { cursor: default; }
.pillar-dot { transition: transform .3s ease, background .3s ease; }
.pillar:hover .pillar-dot { transform: scale(1.6); background: var(--gold); }

/* ── Tarjeta Santiago mejorada ──────────────────────── */
.santiago-card {
  position: relative;
  overflow: hidden;
}
.santiago-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--red), var(--gold));
}
.santiago-photo {
  transition: transform .5s ease, box-shadow .5s ease;
}
.santiago-card:hover .santiago-photo {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px var(--red);
}

/* ── Marquee mejorado ───────────────────────────────── */
.marquee-bar { padding: 20px 0; }
.marquee-item { font-size: .65rem; color: rgba(255,255,255,.32); }

/* ── Animación de entrada del header ────────────────── */
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
#hdr { animation: slideDown .6s .1s cubic-bezier(0.22,1,0.36,1) both; }

/* ── Scroll suave mejorado ──────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── Sección about — número decorativo ─────────────── */
.about { position: relative; overflow: hidden; }
.about::before {
  content: 'G';
  font-family: var(--serif);
  font-size: clamp(12rem, 30vw, 28rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181,37,46,.05);
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
  z-index: 0;
}
.about-grid { position: relative; z-index: 1; }

/* ── Chips de clientes mejorados ────────────────────── */
.c-chip { transition: all .25s ease; cursor: default; }

/* ── CTA final mejorado ─────────────────────────────── */
.cta-final {
  background: radial-gradient(ellipse at 50% 100%, rgba(181,37,46,.12) 0%, var(--dark) 60%);
}

/* ── Sección social mejorada ────────────────────────── */
.social-section {
  background: linear-gradient(180deg, var(--dark) 0%, #1a0a0a 100%);
}
.ssf-item {
  position: relative;
  overflow: hidden;
  transition: background .3s ease, border .3s ease;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
}
.ssf-item:hover { background: rgba(201,169,110,.04); }
.ssf-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .4s ease;
}
.ssf-item:hover::after { width: 100%; }

/* ── Logo en header con fondo pill ──────────────────── */
.nav-logo img {
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  padding: 3px;
}

/* ── Transición de color en nav links activos ───────── */
.nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin: 2px auto 0;
}

/* ======================================================
   LOGO GRANDE + GLOW — AGENCIA
   ====================================================== */
.nav-logo img {
  height: 72px !important;
  width: auto !important;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  padding: 4px;
  filter: drop-shadow(0 0 18px rgba(201,169,110,0.28));
  transition: filter 0.4s ease, transform 0.3s ease;
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 28px rgba(201,169,110,0.5));
  transform: scale(1.04);
}

/* ======================================================
   HERO STATS — AGENCIA
   ====================================================== */
.hero-stats {
  display: flex;
  align-items: center;
  margin-top: 52px;
  flex-wrap: wrap;
  gap: 0;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 44px;
}
.hero-stat-val {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.hero-stat-val em {
  font-style: normal;
  color: var(--red);
  font-size: .65em;
}
.hero-stat-lbl {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  font-weight: 500;
  line-height: 1.5;
}
.hero-stat-sep {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.1);
  margin-right: 44px;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .hero-stats { gap: 20px; }
  .hero-stat { padding-right: 0; }
  .hero-stat-sep { display: none; }
}

/* ======================================================
   SERVICIOS TABS — ESTILO AGENCIA
   ====================================================== */
.svc-tabs-section {
  background: var(--dark-2);
  padding: var(--py) 0;
  border-top: 1px solid var(--border-light);
}
.svc-tabs-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}
.svc-tabs-left .label { color: var(--gold); }
.svc-tabs-title {
  color: var(--cream);
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  margin-bottom: 44px;
  line-height: 1.15;
}

/* Tab Nav */
.svc-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc-tab-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: all .3s ease;
  color: rgba(255,255,255,.45);
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
}
.svc-tab-btn::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transition: transform .35s cubic-bezier(0.22,1,0.36,1);
  transform-origin: bottom;
}
.svc-tab-btn:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.09);
  color: rgba(255,255,255,.78);
}
.svc-tab-btn.active {
  background: rgba(181,37,46,.07);
  border-color: rgba(181,37,46,.18);
  color: var(--white);
}
.svc-tab-btn.active::before { transform: scaleY(1); }

.svc-tab-n {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(255,255,255,.12);
  flex-shrink: 0;
  line-height: 1;
  transition: color .3s ease;
  min-width: 44px;
}
.svc-tab-btn.active .svc-tab-n { color: rgba(181,37,46,.6); }
.svc-tab-btn:hover .svc-tab-n  { color: rgba(255,255,255,.25); }

.svc-tab-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.svc-tab-lbl {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: inherit;
  line-height: 1.3;
}
.svc-tab-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.28);
  letter-spacing: .04em;
}
.svc-tab-btn.active .svc-tab-lbl { color: var(--white); }

.svc-tab-arr {
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .3s ease;
  color: var(--red);
  flex-shrink: 0;
}
.svc-tab-btn.active .svc-tab-arr,
.svc-tab-btn:hover .svc-tab-arr {
  opacity: 1;
  transform: translateX(0);
}

/* Tab Panels */
.svc-tab-panels { min-height: 540px; }

.svc-tab-panel {
  display: none;
  flex-direction: column;
  gap: 28px;
  animation: tabFadeIn .4s ease both;
}
.svc-tab-panel.active { display: flex; }

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.svc-tab-panel-img {
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--dark-3);
}
.svc-tab-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s ease;
}
.svc-tab-panel-img:hover img { transform: scale(1.03); }

.svc-tab-panel-body p {
  color: rgba(255,255,255,.62);
  font-size: 1rem;
  line-height: 1.82;
}
.svc-tab-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
}
.svc-tab-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: rgba(255,255,255,.68);
  line-height: 1.45;
}
.svc-tab-list li::before {
  content: '◆';
  color: var(--red);
  font-size: .38rem;
  margin-top: 6px;
  flex-shrink: 0;
}

/* Responsive tabs */
@media (max-width: 1100px) {
  .svc-tabs-inner { grid-template-columns: 300px 1fr; gap: 48px; }
}
@media (max-width: 820px) {
  .svc-tabs-inner { grid-template-columns: 1fr; gap: 0; }
  .svc-tab-nav { margin-bottom: 32px; }
  .svc-tab-panels { min-height: auto; }
  .svc-tab-list { grid-template-columns: 1fr; }
}

/* ======================================================
   TARJETA SANTIAGO — FOTO GRANDE
   ====================================================== */
.santiago-card {
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  border-radius: 3px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  overflow: hidden;
  position: relative;
  min-height: 440px;
}
/* Override the old ::before left-line since photo covers that side */
.santiago-card::before { display: none !important; }

.santiago-photo-wrap {
  position: relative;
  overflow: hidden;
  background: var(--dark-2);
}
.santiago-photo {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0 !important;
  border: none !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  transition: transform .6s ease;
}
.santiago-card:hover .santiago-photo {
  transform: scale(1.04);
  box-shadow: none !important;
}
.santiago-info {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.santiago-badge {
  display: inline-block;
  width: fit-content;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(181,37,46,.1);
  border: 1px solid rgba(181,37,46,.2);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}
.santiago-info h4 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.1;
}
.santiago-role {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.santiago-info > p {
  color: rgba(255,255,255,.55);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.santiago-creds {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.santiago-cred {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.santiago-cred strong {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.santiago-cred strong em {
  font-style: normal;
  color: var(--red);
  font-size: .7em;
}
.santiago-cred span {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .santiago-card { grid-template-columns: 240px 1fr; }
}
@media (max-width: 680px) {
  .santiago-card { grid-template-columns: 1fr; }
  .santiago-photo { min-height: 320px; height: 320px; }
  .santiago-info { padding: 32px 28px; }
}
@media (max-width: 420px) {
  .santiago-info { padding: 28px 20px; }
}

/* ======================================================
   INSTAGRAM FEED SECTION
   ====================================================== */
.ig-section {
  background: var(--cream);
  padding: var(--py) var(--gap);
  border-top: 1px solid var(--border);
}
.ig-inner { max-width: var(--max); margin: 0 auto; }

/* Header */
.ig-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.ig-hdr-left .label { color: var(--red); }
.ig-hdr-left h2 { margin: 0; line-height: 1.1; }
.ig-handle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--dark);
  text-decoration: none;
  transition: color var(--t);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-family: var(--serif);
  font-weight: 500;
}
.ig-handle:hover { color: var(--red); }
.ig-icon { flex-shrink: 0; transition: color var(--t); }
.ig-follow-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Feed wrapper */
.ig-feed-wrap {
  width: 100%;
  position: relative;
}

/* Behold / widget override — full width grid */
.ig-feed-wrap > div:not(.ig-placeholder) {
  width: 100% !important;
}

/* Placeholder shimmer grid */
.ig-placeholder {
  position: relative;
}
.ig-ph-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.ig-ph-cell {
  aspect-ratio: 1;
  background: linear-gradient(
    110deg,
    var(--cream-3) 30%,
    var(--cream-2) 50%,
    var(--cream-3) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite ease-in-out;
  border-radius: 2px;
}
.ig-ph-cell:nth-child(2) { animation-delay: .1s; }
.ig-ph-cell:nth-child(3) { animation-delay: .2s; }
.ig-ph-cell:nth-child(4) { animation-delay: .3s; }
.ig-ph-cell:nth-child(5) { animation-delay: .4s; }
.ig-ph-cell:nth-child(6) { animation-delay: .5s; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.ig-ph-msg {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: .88rem;
}
.ig-ph-msg a {
  font-size: .78rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .05em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ig-ph-msg a:hover { color: var(--red-h); }

@media (max-width: 768px) {
  .ig-ph-grid { grid-template-columns: repeat(3, 1fr); }
  .ig-ph-cell:nth-child(n+4) { display: none; }
  .ig-hdr { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .ig-ph-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-ph-cell:nth-child(n+3) { display: none; }
}

/* Behold widget — integración visual */
behold-widget {
  display: block;
  width: 100%;
}
/* Sobreescribir estilos por defecto del widget */
behold-widget::part(grid) {
  gap: 4px !important;
}
behold-widget::part(item) {
  border-radius: 2px !important;
  overflow: hidden;
}
/* Hover suave en las fotos */
.ig-feed-wrap behold-widget {
  --behold-gap: 4px;
  --behold-border-radius: 2px;
}

/* ======================================================
   PORTFOLIO MEJORADO — AGENCIA
   ====================================================== */
/* Descripción en hover */
.port-desc {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  line-height: 1.55;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.port-item:hover .port-desc {
  opacity: 1;
  transform: translateY(0);
}
/* Mejorar la tarjeta de portafolio */
.port-item-info {
  padding: 48px 24px 26px;
  transition: all .35s ease;
}
.port-cat {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.port-item-info h4 {
  font-size: 1.15rem;
  line-height: 1.25;
}
/* Borde inferior animado en hover */
.port-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(0.22,1,0.36,1);
}
.port-item:hover::after { transform: scaleX(1); }

