:root {
  --cream: #FCF5EF;
  --cream-alt: #F3E9DF;
  --terracotta: #D24E19;
  --terracotta-dark: #B4410F;
  --mustard: #E2A02A;
  --ink: #1E1C1C;
  --ink-soft: #2A2724;
  --muted: #8A7C70;
  --line: rgba(30, 28, 24, 0.12);
  --shadow: 0 20px 40px -22px rgba(40, 25, 10, 0.28);
  --radius: 18px;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-head: 'Baloo 2', var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h2.on-dark, h1.on-dark { color: var(--cream); }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: rgba(210, 78, 25, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow-dark { color: var(--mustard); background: rgba(226,160,42,.14); }
.eyebrow-on-terracotta { color: #fff; background: rgba(255,255,255,.18); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #322e2c; }
.btn-accent { background: var(--terracotta); color: #fff; }
.btn-accent:hover { background: var(--terracotta-dark); box-shadow: 0 14px 26px -10px rgba(210,78,25,.55); }
.btn-ghost { background: rgba(30,28,24,.06); color: var(--ink); border-color: rgba(30,28,24,.16); }
.btn-ghost:hover { background: rgba(30,28,24,.1); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252,245,239,.98);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }

.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 600; font-size: 14.5px; color: var(--ink); position: relative; padding: 6px 0; }
.main-nav a:hover { color: var(--terracotta); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Banner carousel */
.banner-carousel { position: relative; background: var(--ink); }
.banner-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; height: 520px;
  display: grid; grid-template-columns: 1fr .55fr; align-items: center; gap: 40px;
  padding: 0 64px 0 128px; background: var(--ink);
}
.banner-text { position: relative; z-index: 1; }
.banner-big {
  font-family: var(--font-head); color: var(--cream);
  font-size: clamp(48px, 8vw, 100px); font-weight: 800; text-transform: uppercase;
  letter-spacing: -0.015em; line-height: 0.92; margin: 0 0 32px;
}
.banner-photo { position: relative; }
.banner-photo-frame {
  border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.banner-photo-frame img { width: 100%; height: 380px; object-fit: cover; display: block; }
.banner-photo-accent {
  position: absolute; bottom: -26px; left: -26px; width: 92px; height: 92px;
  transform: rotate(-12deg); filter: drop-shadow(0 10px 16px rgba(0,0,0,.45)); z-index: 2;
}
.banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(252,245,239,.16); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.banner-arrow:hover { background: rgba(252,245,239,.3); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-dots { position: absolute; bottom: 18px; right: 24px; display: flex; gap: 8px; z-index: 2; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(252,245,239,.35); border: none; cursor: pointer; padding: 0; transition: background .15s ease, transform .15s ease; }
.banner-dot.is-active { background: var(--mustard); transform: scale(1.2); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; }
.hero-content { max-width: 560px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); margin-bottom: 20px; }
.hero-lead { font-size: 18px; max-width: 480px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }

.hero-art { position: relative; height: 220px; }
.hero-art .blob { position: absolute; }
.blob-1 { width: 220px; top: 10%; left: 30%; opacity: .9; transform: rotate(-8deg); }
.hero-art .spark { position: absolute; width: 56px; height: 56px; color: var(--mustard); top: 12%; right: 12%; }

/* Sections */
.section { padding: 100px 0; }
#servicios { background: var(--cream-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }

/* Philosophy */
.philosophy { max-width: 680px; margin: 0 auto 72px; text-align: center; }
.philosophy h2 { font-size: clamp(28px, 3.6vw, 40px); }
.philosophy-lead { font-size: 17px; color: var(--ink); }

/* Pillar cards */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 26px; display: flex; flex-direction: column; align-items: flex-start;
  box-shadow: var(--shadow);
}
.pillar-photo { width: 100%; height: 150px; margin-bottom: 18px; border-radius: 14px; overflow: hidden; }
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; }
.pillar-photo-shape { position: relative; display: flex; align-items: center; justify-content: center; background: var(--cream-alt); }
.pillar-photo-shape .service-shape { width: 84px; height: 84px; }
.pillar-photo-shape .service-icon { position: absolute; width: 28px; height: 28px; }
.pillar-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.pillar-card p { font-size: 14px; margin-bottom: 16px; }
.pillar-more {
  margin-top: auto; align-self: flex-start; background: none; border: 1.5px solid var(--terracotta);
  color: var(--terracotta); font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.pillar-more:hover { background: var(--terracotta); color: #fff; }

/* Pillar detail modal */
.pillar-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.pillar-modal.is-open { display: flex; }
.pillar-modal-overlay { position: absolute; inset: 0; background: rgba(30,28,24,.6); }
.pillar-modal-card {
  position: relative; background: var(--cream); border-radius: 20px; max-width: 520px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
}
.pillar-modal-photo { width: 100%; height: 200px; border-radius: 14px; overflow: hidden; margin-bottom: 20px; background: var(--cream-alt); }
.pillar-modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.pillar-modal-card h3 { font-size: 24px; margin-bottom: 14px; }
.pillar-modal-body p { font-size: 15px; color: var(--ink); }
.pillar-modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--cream-alt); font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink);
}
.pillar-modal-close:hover { background: var(--line); }

/* Process */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { border-top: 3px solid var(--terracotta); padding-top: 20px; }
.process-num { font-family: var(--font-head); font-weight: 800; font-size: 36px; color: var(--terracotta); display: block; margin-bottom: 10px; }
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 14px; margin-bottom: 0; }

/* Dark band + tickets */
.band-dark { background: var(--ink); }
.ticket-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ticket {
  background: var(--ink-soft); border: 1px solid rgba(252,245,239,.1); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 6px;
}
.ticket-accent { background: var(--terracotta); border-color: transparent; }
.ticket h3 { font-size: 14.5px; font-family: var(--font-body); font-weight: 700; color: rgba(252,245,239,.6); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
.ticket-accent h3 { color: rgba(255,255,255,.75); }
.ticket-price { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: var(--mustard); margin: 0 0 10px; }
.ticket-accent .ticket-price { color: #fff; }
.ticket-price-custom { font-size: 21px; }
.ticket-desc { font-size: 13.5px; color: rgba(252,245,239,.6); margin-bottom: 0; }
.ticket-accent .ticket-desc { color: rgba(255,255,255,.85); }

/* La chispa — terracotta block */
.la-chispa { background: var(--terracotta); padding: 100px 0; position: relative; overflow: hidden; }
.chispa-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.chispa-media { display: flex; justify-content: center; position: relative; }
.chispa-halo {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(252,245,239,.5) 0%, rgba(252,245,239,0) 70%);
}
.chispa-shape { width: 100%; max-width: 220px; position: relative; opacity: .96; filter: drop-shadow(0 18px 30px rgba(0,0,0,.15)); }
.chispa-spark { position: absolute; width: 56px; height: 56px; top: 6%; right: 14%; opacity: .85; }
.chispa-copy h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; }
.chispa-copy p { font-size: 15.5px; color: rgba(255,255,255,.88); }

/* Case study */
.case-feature { display: flex; flex-direction: column; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-browser { display: block; background: #0B0F14; }
.case-browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #14181F; }
.case-browser-bar span:nth-child(-n+3) { width: 9px; height: 9px; border-radius: 50%; background: #3a3f47; }
.case-browser-url { margin-left: 10px; font-size: 12px; color: #7c828c; font-family: var(--font-body); }
.case-browser-body { padding: 56px 44px; }
.case-browser-eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; margin-bottom: 14px; }
.case-browser-h1 { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1.25; color: #fff; margin-bottom: 22px; }
.case-browser-btn { display: inline-block; background: #5eead4; color: #071022; font-family: var(--font-head); font-weight: 600; font-size: 13px; padding: 9px 18px; border-radius: 999px; }

.case-strip { display: grid; grid-template-columns: 1.6fr 1fr; background: #fff; }
.case-strip-item { padding: 36px 40px; border-right: 1px solid var(--line); }
.case-strip-item h3 { font-size: 20px; margin-bottom: 4px; }
.case-tag { font-size: 13px; color: var(--terracotta); font-weight: 700; margin-bottom: 14px; }
.case-strip-item p { font-size: 14px; }
.case-link { display: inline-flex; font-family: var(--font-head); font-weight: 600; color: var(--terracotta); }
.case-link:hover { color: var(--terracotta-dark); }
.case-strip-stat { padding: 36px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--cream-alt); }
.case-stat-num { font-family: var(--font-head); font-weight: 800; font-size: 56px; color: var(--terracotta); line-height: 1; display: flex; flex-direction: column; align-items: center; }
.case-stat-unit { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 4px; }
.case-stat-label { font-size: 12.5px; color: var(--muted); margin-top: 10px; max-width: 16ch; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 22px 4px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 16.5px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; flex-shrink: 0; font-size: 22px; font-weight: 400; color: var(--terracotta);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: -4px 0 20px; padding: 0 4px; font-size: 15px; max-width: 62ch; }

/* Contact */
.contact-section { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.contact-section h2 { color: var(--cream); }
.contact-lead { color: rgba(252,245,239,.72); }
.spark-contact { position: absolute; width: 90px; height: 90px; top: 60px; right: 8%; opacity: .5; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; position: relative; z-index: 1; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list a, .contact-value { font-weight: 700; font-size: 17px; color: var(--cream); }
.contact-list a:hover { color: var(--mustard); }
.contact-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(252,245,239,.5); margin-bottom: 2px; }
.social-row { display: flex; gap: 12px; margin-top: 22px; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(252,245,239,.08); border: 1px solid rgba(252,245,239,.18); color: var(--cream);
  transition: background .15s ease, color .15s ease;
}
.social-icon:hover { background: var(--mustard); color: var(--ink); }
.social-icon svg { width: 22px; height: 22px; }

.contact-form {
  background: rgba(252,245,239,.04);
  border: 1px solid rgba(252,245,239,.14);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(252,245,239,.65);
}
.contact-form input, .contact-form textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--cream);
  background: rgba(252,245,239,.06); border: 1px solid rgba(252,245,239,.18);
  border-radius: 10px; padding: 12px 14px; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--mustard); background: rgba(252,245,239,.09);
}
.contact-form ::placeholder { color: rgba(252,245,239,.35); }
.form-note { font-size: 13.5px; min-height: 18px; margin: 0; }
.form-note.success { color: var(--mustard); }
.form-note.error { color: #f0a48a; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid rgba(252,245,239,.08); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: rgba(252,245,239,.85); font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.footer-brand .brand-logo { width: 28px; height: 28px; border-radius: 6px; }
.site-footer p { color: rgba(252,245,239,.45); font-size: 13.5px; margin: 0; }

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,.35);
  transition: transform .2s ease;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 160px; margin-top: 4px; }
  .blob-1 { width: 150px; }
  .banner-slide { height: auto; grid-template-columns: 1fr; padding: 48px 32px; text-align: center; gap: 24px; }
  .banner-photo { order: -1; max-width: 280px; margin: 0 auto 18px; }
  .banner-photo-frame img { height: 200px; }
  .banner-text { display: flex; flex-direction: column; align-items: center; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .ticket-row { grid-template-columns: repeat(2, 1fr); }
  .chispa-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .chispa-media { order: -1; }
  .chispa-media img { max-width: 200px; }
  .case-strip { grid-template-columns: 1fr; }
  .case-strip-item { border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--cream); flex-direction: column; padding: 32px 24px; gap: 4px;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
    z-index: 100;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-toggle { display: flex; }
  .header-actions .btn-accent { display: none; }
  .hero { padding: 64px 0 64px; }
  .ticket-row { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .spark-contact { display: none; }
  .banner-slide { padding: 40px 24px; }
  .banner-arrow { width: 36px; height: 36px; font-size: 18px; }
  .banner-big { font-size: clamp(32px, 11vw, 48px); margin-bottom: 20px; }
  .banner-photo-frame img { height: 160px; }
  .banner-photo-accent { width: 60px; height: 60px; bottom: -16px; left: -16px; }
}
