/* =============================================================
   SOLOLOY — Marketing Integral de Destinos
   Parallax destination-marketing single-page site.
   Image placeholders use CSS gradients that will be replaced by
   real images at /images/<data-img>.jpg once uploaded.
   ============================================================= */

:root {
  --bg: #0a2540;
  --bg-2: #0f1c2e;
  --ink: #0a2540;
  --ink-soft: #3c4b63;
  --paper: #fbfaf6;
  --paper-2: #f2ede2;
  --gold: #c8a24a;
  --gold-soft: #e6d69a;
  --teal: #1c8ea3;
  --coral: #e56b4a;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(10, 37, 64, 0.18);
  --shadow-lg: 0 40px 100px rgba(10, 37, 64, 0.28);
  --radius: 6px;
  --nav-h: 76px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); font-weight: 900; letter-spacing: -0.02em; }
h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
h4 { font-size: 1rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
p { margin: 0 0 1em; }

/* =========== NAV =========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 37, 64, 0.0);
  backdrop-filter: blur(0);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(10, 37, 64, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--gold), var(--coral), var(--teal), var(--gold));
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}
.brand-text { font-family: var(--serif); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.24em; }
.nav-links {
  list-style: none; display: flex; gap: 36px; margin: 0; padding: 0;
}
.nav-links a {
  color: #fff; font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .cta {
  padding: 10px 22px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold);
}
.nav-links .cta::after { display: none; }
.nav-links .cta:hover { background: var(--gold); color: var(--bg); }
.nav-toggle {
  display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer;
  padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: transform 0.3s, opacity 0.3s; }

/* =========== SECTION SHELL =========== */
.section { padding: 120px 32px; position: relative; }
.container { max-width: 1300px; margin: 0 auto; position: relative; z-index: 2; }
.container.narrow { max-width: 860px; }
.container.center { text-align: center; }
.eyebrow {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em;
  color: var(--teal); margin: 0 0 22px;
}
.eyebrow-light { color: var(--gold); }
.section-title { max-width: 20ch; }
.section-title.light { color: #fff; }
.section-lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); max-width: 65ch; }
.paragraph-light { color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 60ch; margin-inline: auto; }

/* =========== PARALLAX MECHANISM =========== */
.parallax {
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .parallax { background-attachment: scroll; }
}
/* Image placeholders — CSS gradients per section, replaced by real images later.
   To swap: drop /images/<data-img>.jpg and add
      .parallax[data-img="X"] { background-image: url('../../images/X.jpg'); }
*/
.parallax[data-img="hero-portada"] {
  background-image:
    linear-gradient(135deg, rgba(10,37,64,0.55) 0%, rgba(28,142,163,0.35) 100%),
    radial-gradient(ellipse at 30% 40%, #1c8ea3 0%, #0a2540 65%, #051429 100%);
}
.parallax[data-img="objetivos-bg"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.75), rgba(10,37,64,0.55)),
    linear-gradient(135deg, #2b1a4d 0%, #0a2540 100%);
}
.parallax[data-img="stage-see"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.65), rgba(10,37,64,0.55)),
    linear-gradient(120deg, #1c8ea3 0%, #0a2540 70%);
}
.parallax[data-img="stage-think"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.7), rgba(10,37,64,0.5)),
    linear-gradient(120deg, #c8a24a 0%, #7a5a1b 55%, #0a2540 100%);
}
.parallax[data-img="stage-do"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.7), rgba(10,37,64,0.5)),
    linear-gradient(120deg, #e56b4a 0%, #a3341a 55%, #0a2540 100%);
}
.parallax[data-img="stage-care"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.7), rgba(10,37,64,0.55)),
    linear-gradient(120deg, #3c1d54 0%, #0a2540 70%);
}
.parallax[data-img="servicios-bg"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.75), rgba(10,37,64,0.65)),
    linear-gradient(135deg, #051429 0%, #1c8ea3 60%, #0a2540 100%);
}
.parallax[data-img="contacto-bg"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.7), rgba(10,37,64,0.85)),
    linear-gradient(135deg, #c8a24a 0%, #0a2540 100%);
}
.section-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.35));
  z-index: 1; pointer-events: none;
}

/* =========== HERO =========== */
.hero { min-height: 100vh; padding: 0 32px; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200,162,74,0.18), transparent 60%),
    linear-gradient(180deg, rgba(10,37,64,0.15), rgba(10,37,64,0.55));
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; max-width: 900px; margin: 0 auto; text-align: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
.hero-content .eyebrow { color: var(--gold); justify-content: center; }
.hero-content .lede {
  font-size: 1.2rem; line-height: 1.6; color: rgba(255,255,255,0.9);
  max-width: 60ch; margin: 24px auto 40px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.05em; border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200,162,74,0.35); }
.btn-ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.65); border-radius: 14px;
  z-index: 2;
}
.scroll-hint span {
  display: block; width: 3px; height: 8px; background: #fff; border-radius: 2px;
  margin: 6px auto 0; animation: scroll-hint 1.8s infinite;
}
@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* =========== INTRO =========== */
.intro { background: var(--paper); text-align: center; }
.intro .section-title { margin-inline: auto; }
.intro .section-lead { margin-inline: auto; }

/* =========== OBJETIVOS =========== */
.objetivos { min-height: auto; padding: 140px 32px; }
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 56px;
}
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.09); border-color: rgba(200,162,74,0.5); }
.card-num {
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold); font-weight: 900;
  line-height: 1; margin-bottom: 16px;
}
.card h3 { color: #fff; }
.card p { color: rgba(255,255,255,0.82); font-size: 0.98rem; margin: 0; }

/* =========== STDC =========== */
.stdc { background: var(--paper); }
.stdc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px;
}
.stdc-item {
  padding: 40px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--paper-2);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.stdc-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stdc-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.stdc-item[data-stage="see"]::before { background: var(--teal); }
.stdc-item[data-stage="think"]::before { background: var(--gold); }
.stdc-item[data-stage="do"]::before { background: var(--coral); }
.stdc-item[data-stage="care"]::before { background: #6a4a8b; }
.stdc-letter {
  font-family: var(--serif); font-size: 5rem; line-height: 1; font-weight: 900;
  color: rgba(10,37,64,0.08); position: absolute; right: 16px; bottom: 0;
}
.stdc-item h3 { font-family: var(--sans); font-weight: 800; letter-spacing: 0.25em; font-size: 0.95rem; color: var(--ink); }
.stdc-tag { font-size: 0.9rem; color: var(--ink-soft); font-style: italic; margin-bottom: 16px; }
.stdc-item p:last-child { font-size: 0.95rem; margin: 0; color: var(--ink-soft); }

/* =========== STAGE DETAIL parallax sections =========== */
.stage-detail { padding: 160px 32px; }
.checklist { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; }
.checklist li {
  position: relative; padding-left: 40px; font-size: 1.05rem; line-height: 1.55;
}
.checklist.light li { color: rgba(255,255,255,0.9); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 22px; height: 22px;
  border-radius: 50%; background: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
}
.checklist li::after {
  content: ''; position: absolute; left: 7px; top: 13px; width: 8px; height: 4px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.checklist li strong { color: #fff; font-weight: 700; }

/* Care triad */
.care-triad {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px;
}
.care-item {
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
  padding: 32px 24px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
}
.care-num {
  display: block; font-family: var(--serif); font-size: 2rem; font-weight: 900;
  color: var(--gold); margin-bottom: 8px;
}
.care-item h4 { color: #fff; font-family: var(--serif); font-size: 1.15rem; text-transform: none; letter-spacing: 0; font-weight: 700; }
.care-item p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0; }

/* =========== CASES =========== */
.case { background: var(--paper); }
.case.alt { background: var(--paper-2); }
.case-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center;
  margin-top: 56px;
}
.case-grid.reverse { grid-template-columns: 1.05fr 1fr; direction: rtl; }
.case-grid.reverse > * { direction: ltr; }
.case-image {
  min-height: 480px; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  background-repeat: no-repeat; background-position: center; background-size: cover;
  position: relative; overflow: hidden;
}
.case-image::after {
  content: attr(data-img);
  position: absolute; top: 16px; left: 16px;
  background: rgba(10,37,64,0.72); color: rgba(255,255,255,0.55);
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; font-family: var(--sans);
}
.case-image[data-img="caso-mazatlan"] {
  background-image:
    linear-gradient(135deg, rgba(10,37,64,0.35) 0%, rgba(200,162,74,0.3) 100%),
    linear-gradient(135deg, #1c8ea3 0%, #e56b4a 50%, #c8a24a 100%);
}
.case-image[data-img="caso-culiacan"] {
  background-image:
    linear-gradient(135deg, rgba(10,37,64,0.4) 0%, rgba(107,52,26,0.35) 100%),
    linear-gradient(135deg, #6a4a8b 0%, #c8a24a 60%, #0a2540 100%);
}
.case-body h3 {
  font-family: var(--sans); font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--teal); margin-top: 32px;
}
.case-body h3:first-child { margin-top: 0; }
.case-body ul { padding-left: 20px; margin: 0 0 8px; }
.case-body li { margin-bottom: 10px; color: var(--ink-soft); }
.case-body li strong { color: var(--ink); }
.case-body blockquote {
  margin: 32px 0 0; padding: 24px 28px; border-left: 4px solid var(--gold);
  background: #fff; font-family: var(--serif); font-style: italic;
  color: var(--ink); font-size: 1.08rem; line-height: 1.55;
  box-shadow: var(--shadow);
}
.case.alt .case-body blockquote { background: var(--paper); }

/* =========== SERVICES =========== */
.services { padding: 160px 32px; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 56px;
}
.service {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 44px 36px;
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-6px); border-color: rgba(200,162,74,0.5); background: rgba(255,255,255,0.09); }
.service-icon {
  width: 60px; height: 60px; border-radius: 50%; margin-bottom: 24px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.service-icon::before {
  content: ''; width: 26px; height: 26px;
  mask-size: contain; mask-repeat: no-repeat; mask-position: center;
  background: #fff;
}
.service-icon[data-icon="video"]::before { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M4 4h12a2 2 0 012 2v12a2 2 0 01-2 2H4a2 2 0 01-2-2V6a2 2 0 012-2zm18 3l-4 3v4l4 3V7z'/></svg>"); }
.service-icon[data-icon="design"]::before { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M20.7 3.3a1 1 0 00-1.4 0L9 13.6V15h1.4L20.7 4.7a1 1 0 000-1.4zM4 21h16v-2H4v2zM4 17h9v-2H4v2z'/></svg>"); }
.service-icon[data-icon="community"]::before { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 12a4 4 0 100-8 4 4 0 000 8zm-8 8a8 8 0 0116 0H4z'/></svg>"); }
.service-icon[data-icon="media"]::before { mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M3 21V10l9-7 9 7v11h-6v-7h-6v7H3z'/></svg>"); }
.service h3 { color: #fff; font-family: var(--serif); }
.service p { color: rgba(255,255,255,0.82); font-size: 0.98rem; margin: 0; }

/* =========== KPIs =========== */
.kpis { background: var(--paper); }
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px;
}
.kpi-col {
  padding: 32px; background: #fff; border-radius: var(--radius);
  border-top: 4px solid var(--gold); box-shadow: var(--shadow);
}
.kpi-col:nth-child(1) { border-top-color: var(--teal); }
.kpi-col:nth-child(2) { border-top-color: var(--gold); }
.kpi-col:nth-child(3) { border-top-color: var(--coral); }
.kpi-col:nth-child(4) { border-top-color: #6a4a8b; }
.kpi-col h4 { color: var(--ink); margin-bottom: 20px; }
.kpi-col ul { list-style: none; padding: 0; margin: 0; }
.kpi-col li { padding: 8px 0; border-bottom: 1px dashed var(--paper-2); font-size: 0.95rem; color: var(--ink-soft); }
.kpi-col li:last-child { border-bottom: 0; }

/* =========== CONTACT =========== */
.contact { padding: 160px 32px; min-height: 80vh; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

/* =========== FOOTER =========== */
.footer { background: #051429; color: rgba(255,255,255,0.6); padding: 64px 32px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand p { margin: 0 0 0 16px; font-size: 0.9rem; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }
.copy { margin: 0; font-size: 0.85rem; }

/* =========== REVEAL animations =========== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stdc-item.reveal { transition-delay: calc(var(--i, 0) * 0.08s); }

/* =========== RESPONSIVE =========== */
@media (max-width: 1000px) {
  .cards-3, .stdc-grid, .services-grid, .kpi-grid, .care-triad { grid-template-columns: 1fr 1fr; gap: 20px; }
  .case-grid, .case-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
  .case-image { min-height: 320px; }
}
@media (max-width: 720px) {
  .section, .stage-detail, .services, .contact, .objetivos { padding: 90px 22px; }
  .nav-inner { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: rgba(10,37,64,0.98); padding: 32px;
    gap: 20px; transform: translateY(-120%); transition: transform 0.35s;
  }
  .nav-links.open { transform: translateY(0); }
  .cards-3, .stdc-grid, .services-grid, .kpi-grid, .care-triad { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-content .lede { font-size: 1.05rem; }
  .parallax { background-attachment: scroll; min-height: auto; padding: 90px 22px; }
  .stage-detail { min-height: auto; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
}

/* =============================================================
   Real asset overrides — added when Sololoy assets landed.
   Logos: 498x136 (blanco/negro). Case photos: mazatlan 596x335, culiacan 1024x753.
   ============================================================= */
.brand-logo {
  height: 38px; width: auto; display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}
.footer-brand .brand-logo { height: 36px; margin-right: 12px; }

/* Case-study photo backgrounds override the CSS-gradient placeholders */
.case-image[data-img="caso-mazatlan"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.18) 0%, rgba(10,37,64,0.32) 100%),
    url('../../images/mazatlan.jpg');
}
.case-image[data-img="caso-culiacan"] {
  background-image:
    linear-gradient(180deg, rgba(10,37,64,0.18) 0%, rgba(10,37,64,0.32) 100%),
    url('../../images/culiacan.webp');
}
/* Hide the dev "placeholder tag" pill on case images now that real photos are wired */
.case-image::after { display: none; }
