/* ===========================================================
   VJ Gold Cambio — landing
   Estilo: minimalista, fondo blanco, azul marino + acento dorado
   =========================================================== */

:root {
  --navy:        #102a4c;   /* azul marino principal */
  --navy-deep:   #0b1f39;   /* azul más oscuro (footer) */
  --navy-soft:   #2a4a78;   /* azul medio */
  --gold:        #c9a227;   /* dorado */
  --gold-soft:   #e6c869;
  --ink:         #1c2733;   /* texto principal */
  --muted:       #5b6877;   /* texto secundario */
  --line:        #e7eaee;   /* bordes finos */
  --soft-bg:     #f6f8fb;   /* secciones alternas */
  --white:       #ffffff;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 40px -24px rgba(16, 42, 76, .28);
  --maxw:        1120px;
  --pad:         clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.18rem; }

p  { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container-narrow { max-width: 760px; }

.center { text-align: center; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-soft { background: var(--soft-bg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--navy);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 26px -14px rgba(16, 42, 76, .6);
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn::before {
  content: "";
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.btn-sm { padding: .6rem 1.15rem; font-size: .92rem; }
.btn-block { width: 100%; margin-top: 1.25rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--navy);
}
.brand-name em { color: var(--gold); font-style: normal; }
.brand-name-light { color: var(--white); font-size: 1.5rem; }
.brand-name-light em { color: var(--gold-soft); }

/* ---------- Bloque 1 · Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(110% 120% at 85% 0%, rgba(201,162,39,.10), transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  padding: clamp(48px, 7vw, 90px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold);
  margin: 0 0 1rem;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 48ch; }
.hero-actions { margin: 1.6rem 0 1.4rem; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink);
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/72% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/72% no-repeat;
}
/* Visual del hero */
.hero-visual { position: relative; }
.flag-badge {
  position: absolute;
  left: -14px; bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .9rem .45rem .5rem;
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
}
.flag-badge svg { border-radius: 4px; overflow: hidden; }

/* ---------- Slots de fotos / placeholders ---------- */
.photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #eef2f7, #e3e9f1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Etiqueta visible mientras no hay imagen real (queda detrás del img) */
.photo::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #8a98aa;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.photo-portrait { aspect-ratio: 3 / 4; }
.photo-wide { aspect-ratio: 4 / 3; }
.photo-screen { background: linear-gradient(135deg, #f3f5f9, #e9edf4); }

/* ---------- Bloque 2 / 5 / 6 · About grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.about-copy h2 { margin-bottom: .9rem; }
.about-copy p { color: var(--muted); font-size: 1.05rem; }

/* En el bloque 6 invertimos el orden visual en escritorio */
.about-grid-reverse .about-copy h2,
#empleo .about-copy { color: inherit; }

/* ---------- Bloque 3 · Cards ---------- */
.cards {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d8dee7;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 1.1rem;
  border-radius: 14px;
  background: rgba(201,162,39,.12);
  color: var(--navy);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin: 0; font-size: 1.08rem; }

/* ---------- Bloque 4 · Steps (infografía horizontal) ---------- */
.steps {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step { text-align: center; position: relative; }
.step p { margin: 1rem 0 0; font-weight: 600; color: var(--navy); }
.step-num {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}
/* línea conectora */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 32px; left: calc(50% + 40px);
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,39,.25));
  z-index: 1;
}

/* ---------- Bloque 7 · Timeline vertical ---------- */
.timeline {
  list-style: none;
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 0;
  max-width: 620px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 21px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(201,162,39,.2));
}
.timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: .7rem 0;
}
.t-dot {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--navy);
  font-weight: 700;
  z-index: 2;
}
.t-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .85rem 1.2rem;
  flex: 1;
  box-shadow: 0 8px 22px -18px rgba(16,42,76,.4);
}
.t-body h3 { margin: 0; font-family: "Inter", sans-serif; font-size: 1.02rem; font-weight: 600; color: var(--ink); }

/* ---------- Bloque 8 · FAQ ---------- */
.faq { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 1.3rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: #d8dee7; box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

/* ---------- Bloque 9 · Documentos y contacto ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.docs-intro { color: var(--muted); margin-top: .4rem; max-width: 46ch; }

.patente {
  display: block;
  position: relative;
  margin: 1.3rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.patente img { width: 100%; height: auto; display: block; }
.patente-tag {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .7rem 1rem;
  background: linear-gradient(transparent, rgba(11,31,57,.88));
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.patente::after {
  content: "PDF";
  position: absolute;
  top: 12px; right: 12px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .2rem .5rem;
  border-radius: 6px;
}
.patente:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.docs { display: grid; gap: 14px; margin-top: 1.2rem; }
.doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
}
.doc-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(16,42,76,.06);
  color: var(--navy);
  flex: 0 0 auto;
}
.doc-icon svg { width: 24px; height: 24px; }
.doc-title { margin: 0; font-weight: 700; color: var(--navy); }
.doc-sub { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }

.contact-card {
  background: var(--navy);
  color: #e9eef6;
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.contact-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: .15rem; }
.contact-role { color: var(--gold-soft); font-weight: 600; margin-bottom: 1.4rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: .15rem; }
.c-label {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9fb0c6;
  font-weight: 600;
}
.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--gold-soft); }
.contact-card .btn { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.contact-card .btn:hover { background: var(--gold-soft); }
.contact-card .btn::before { background: var(--navy-deep); }

/* ---------- Bloque 10 · Footer ---------- */
.site-footer { background: var(--navy-deep); color: #cdd7e5; padding: clamp(44px, 6vw, 64px) 0 24px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-tag { margin: .6rem 0 .2rem; color: #aab8cc; }
.footer-loc { margin: 0; color: var(--gold-soft); font-weight: 600; }
.footer-links { display: flex; gap: 1.6rem; }
.footer-links a { color: #cdd7e5; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom p { margin: 0; font-size: .85rem; color: #8597ad; }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .hero-grid,
  .about-grid,
  .docs-grid { grid-template-columns: 1fr; }

  .hero-visual { max-width: 420px; margin-inline: auto; order: -1; }
  .photo-portrait { aspect-ratio: 4 / 3; }

  /* En móvil mantenemos orden lógico (texto, luego foto) en bloque 6 */
  .about-grid-reverse .photo { order: 2; }

  /* Steps → vertical */
  .steps { grid-template-columns: 1fr; gap: 28px; max-width: 360px; margin-inline: auto; }
  .step { display: flex; align-items: center; gap: 1.1rem; text-align: left; }
  .step p { margin: 0; }
  .step-num { width: 52px; height: 52px; font-size: 1.25rem; }
  .step:not(:last-child)::after {
    top: calc(50% + 30px); left: 25px;
    width: 2px; height: calc(100% - 30px);
    background: linear-gradient(180deg, var(--gold), rgba(201,162,39,.25));
  }
}

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .nav .btn-sm { display: none; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
