/* =========================================================
   Jamba landing page · styles
   Paleta: naranja marca + azul marino + neutros
   ========================================================= */

:root {
  --orange: #D9531E;
  --orange-600: #B7421A;
  --orange-50: #FDF1EB;
  --navy: #1F2A4D;
  --navy-700: #16203A;
  --text: #1B1F2A;
  --muted: #5B6478;
  --bg: #FFFFFF;
  --bg-soft: #F7F5F2;
  --line: #E7E3DC;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20,20,30,.04), 0 2px 6px rgba(20,20,30,.04);
  --shadow-md: 0 8px 24px rgba(20,20,30,.08);
  --shadow-lg: 0 20px 50px rgba(20,20,30,.14);
  --content: 1180px;
  --space: clamp(1rem, 2vw, 1.5rem);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--content));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h1 em, h2 em { font-family: var(--font-display); font-style: italic; color: var(--orange); font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: .9rem;
}
.eyebrow.dark { color: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--orange-600); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--orange-50); color: var(--orange); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; }
.logo-mark { width: 34px; height: 34px; }
.logo-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--orange);
  letter-spacing: -.02em;
  line-height: 1;
}
.logo-text.light { color: #fff; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a { color: var(--text); transition: color .15s ease; }
.nav-links a:hover { color: var(--orange); }
.nav-links .btn-ghost { padding: .5rem 1rem; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: .35rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,22,46,.78) 0%, rgba(15,22,46,.45) 55%, rgba(217,83,30,.45) 100%);
  z-index: -1;
}
.hero-content { padding: 6rem 0 5rem; }
.hero-content .eyebrow { color: rgba(255,255,255,.9); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 em { color: #FFD9C2; }
.hero .lead { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 56ch; margin-top: 1rem; }
.cta-row { display: flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 620px;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.hero-stats > div { text-align: left; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stats span { font-size: .8rem; color: rgba(255,255,255,.8); letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); margin-top: .5rem; }

/* ---------- Value cards ---------- */
.value { background: var(--bg-soft); }
.value-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--orange-50);
  color: var(--orange);
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.value-icon svg { width: 22px; height: 22px; }
.value-card h3 { margin-bottom: .4rem; }
.value-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- Tech highlight ---------- */
.tech-highlight { background: #fff; }
.tech-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
}
.tech-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tech-list li { display: flex; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.tech-list li:last-child { border: none; }
.tech-list span { color: var(--orange); font-weight: 800; }
.tech-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ---------- App section ---------- */
.app { background: var(--bg-soft); }
.app-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: .85fr 1fr;
  align-items: center;
}
.app-media img {
  width: min(100%, 380px);
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  border: 8px solid #fff;
}
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li {
  position: relative;
  padding: .35rem 0 .35rem 1.8rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .7rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Products ---------- */
.products { background: #fff; }
.product-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product.featured { border-color: var(--orange); box-shadow: var(--shadow-md); }
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 1.5rem;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--orange);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-weight: 700;
}
.product-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.product-tag { color: var(--orange); font-weight: 600; font-size: .9rem; margin: .2rem 0 1rem; }
.product-body ul {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
  display: flex; flex-direction: column; gap: .35rem;
  color: var(--text); font-size: .95rem;
}
.product-body ul li::before { content: "→ "; color: var(--orange); font-weight: 700; }
.spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem 1rem;
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.spec div { font-size: .85rem; }
.spec dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.spec dd { margin: .1rem 0 0; font-weight: 600; color: var(--navy); }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-media { aspect-ratio: 4/3; overflow: hidden; background: #f1ece4; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { padding: 1.2rem 1.3rem 1.5rem; }
.service-body p { color: var(--muted); font-size: .95rem; margin: .5rem 0 0; }

/* ---------- About ---------- */
.about { background: #fff; }
.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.about-copy .btn { margin-top: 1rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--navy-700);
  background-image:
    linear-gradient(135deg, rgba(15,22,46,.92) 0%, rgba(15,22,46,.75) 55%, rgba(217,83,30,.55) 100%),
    url('assets/images/mapa.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60vw; aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(217,83,30,.35), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.cta-inner {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-banner h2 { color: #fff; }
.cta-banner h2 em { color: #FFD9C2; }
.cta-banner p { color: rgba(255,255,255,.9); max-width: 50ch; margin: .6rem auto 1.6rem; }

/* ---------- Contact ---------- */
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background-color: var(--navy-700);
  background-image:
    linear-gradient(135deg, rgba(15,22,46,.92) 0%, rgba(15,22,46,.82) 50%, rgba(31,42,77,.85) 100%),
    url('assets/images/arena.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.contact h2 { color: #fff; }
.contact h2 em { color: #FFD9C2; }
.contact .muted { color: rgba(255,255,255,.8); }
.contact .eyebrow.dark { color: #FFD9C2; }
.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.contact-list {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-direction: column; gap: .8rem;
}
.contact-list li { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.95); }
.contact-list svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.contact-list a { color: rgba(255,255,255,.95); }
.contact-list a:hover { color: #FFD9C2; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .85rem;
  font: inherit;
  background: var(--bg-soft);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217,83,30,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-feedback {
  margin: 1rem 0 0;
  font-size: .9rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--orange-50);
  color: var(--orange-600);
  border: 1px solid rgba(217,83,30,.2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-700);
  color: rgba(255,255,255,.85);
  padding: 3.5rem 0 1.5rem;
}
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer .muted { color: rgba(255,255,255,.65); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  margin-bottom: 2.5rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { color: rgba(255,255,255,.78); transition: color .15s ease; font-size: .92rem; }
.footer-links a:hover { color: var(--orange); }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.2rem; color: rgba(255,255,255,.55); font-size: .85rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .contact { background-attachment: scroll; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 1.2rem 1.5rem 1.8rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open .btn-ghost { width: 100%; justify-content: flex-start; }
  .tech-grid, .app-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .tech-media, .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 1rem; }
  .hero-stats > div:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
}
