/* =========================================
   JCC LATINO — Light UI (palette fixed)
   Azul #1032dd · Amarillo #ffcd40 · Naranja #ff5436
   ========================================= */

/* ---------- Design Tokens ---------- */
:root{
  /* Brand */
  --jcc-blue:   #1032dd;
  --jcc-yellow: #ffcd40;
  --jcc-orange: #ff5436;

  /* Base light */
  --bg: #ffffff;
  --bg-soft: #f7f8fc;        /* canvas suave */
  --text: #0f172a;           /* slate-900 */
  --muted: #475569;          /* slate-600 */
  --card: #ffffff;

  /* UI */
  --border: 1px solid rgba(2, 6, 23, .08);
  --border-strong: 1px solid rgba(2, 6, 23, .14);
  --shadow-sm: 0 6px 16px rgba(2,6,23,.06);
  --shadow:    0 10px 28px rgba(2,6,23,.08);

  --container: 1160px;
  --radius: 18px;

  /* Accents */
  --ok:#22c55e;
  --warn:#ffcd40;
  --danger:#ff5436;
}


*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
a{ color: inherit; text-decoration: none }
img{ max-width: 100%; display: block }
.container{ width:100%; max-width: var(--container); margin:0 auto; padding:0 20px }

/* ---------- Helpers ---------- */
.muted{ color: var(--muted) }
.center{ text-align:center }
.small{ font-size:.92rem }

/* ---------- Navbar ---------- */
.nav{
  position: sticky; top:0; z-index: 50;
  background: #fff;
  border-bottom: var(--border);
  backdrop-filter: saturate(1.2);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:72px }
.brand{ display:flex; align-items:center; gap:.6rem; font-weight:800; letter-spacing:.2px }
.brand .logo-img{ height:34px; width:auto; display:block }
.menu{ display:flex; gap:1rem; align-items:center }
.menu a{
  padding:10px 12px; border-radius:10px; color:#0b1533;
  opacity:.9;
}
.menu a:hover{ background: rgba(16,50,221,.06); opacity:1 }
.hamb{ display:none }

/* ---------- Buttons / CTAs ---------- */
.cta-primary{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.78rem 1.05rem;
  border-radius:999px; border:0; font-weight:800; letter-spacing:.2px;
  background: linear-gradient(135deg, #1032dd, #ff5436); /* azul → naranja */
  color:#fff; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, filter .2s ease;
}
.cta-primary:hover{ filter: brightness(1.05); transform: translateY(-1px) }
.cta-primary:active{ transform: translateY(0) }

/* outline se queda azul/white para contraste */
.cta-outline{
  display:inline-flex; align-items:center; gap:.55rem;
  padding:.72rem 1rem; border-radius:999px; background:#fff;
  border: 2px solid #1032dd; color:#1032dd; font-weight:800;
}
.cta-outline:hover{ background: rgba(16,50,221,.06) }

* ---------- CTA WhatsApp específico ---------- */
#ctaWhats{
  background: #25d366 !important; /* verde oficial WhatsApp */
  color:#fff !important;          /* texto siempre blanco */
  border:0;
}
#ctaWhats:hover{ filter: brightness(1.05); transform: translateY(-1px) }

/* ---------- Hero ---------- */
.hero{ padding:82px 0 34px; background: var(--bg-soft) }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:2rem; align-items:center }
.badges{ display:flex; gap:.6rem; flex-wrap:wrap; margin:.2rem 0 1.1rem }
.tag{
  font-size:.82rem; padding:.35rem .6rem; border-radius:999px; font-weight:700;
  background: #fff; border: var(--border-strong); color: var(--muted);
}
.hero h1{
  margin:0 0 .8rem; line-height:1.05; letter-spacing:-.02em;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}
.hero h1 .highlight{
  background: linear-gradient(90deg, var(--jcc-blue), var(--jcc-orange));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lead{ font-size: clamp(1rem, 1.35vw, 1.14rem); color: var(--muted); margin:0 0 1.2rem }
.hero-cta{ display:flex; gap:.7rem; flex-wrap:wrap }

.hero-art{ position:relative }
.hero-card{
  background: #fff; border: var(--border); border-radius: 20px;
  padding: 20px; box-shadow: var(--shadow);
}

/* ---------- Sections / Cards ---------- */
section{ padding:64px 0 }
.section-title{ font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin:0 0 .6rem }
.section-sub{ color: var(--muted); margin:0 0 1.2rem }

.card{
  background:#fff; border: var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap:22px }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px }

/* ---------- Base fundamental (01) ---------- */
#base-cl .card{ padding: 48px 40px }
.step-header{ display:flex; align-items:center; gap:20px; margin-bottom:16px }
.step-number{
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight:900;
  background: linear-gradient(90deg, var(--jcc-blue), var(--jcc-yellow));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.step-kicker{ font-weight:800; font-size:1.15rem }
.step-divider{ height:2px; background: rgba(2,6,23,.1); margin-top:8px }
.step-copy p{ font-size: clamp(1.12rem, 1.7vw, 1.32rem); line-height: 1.75; margin:0 0 18px }
.step-copy p.strong{
  font-weight:900; color: var(--jcc-blue);
  font-size: clamp(1.22rem, 1.9vw, 1.45rem);
}

/* Logo al final */
.base-logo{ margin-top: 36px; text-align:center }
.base-logo img{ max-width: 220px; opacity:.96 }

/* ---------- 8 ejes (tarjeta cuadrada) ---------- */
.axes-squares{ background: var(--bg); padding:58px 0 64px }
.squares-grid{
  display:grid; grid-template-columns: repeat(4,1fr);
  gap: 20px; margin-top: 12px;
}
.axis-card{
  background:#fff; border: var(--border); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow-sm);
  position:relative; aspect-ratio: 1/1; min-height:260px;
  display:flex; flex-direction:column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.axis-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow) }
.axis-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:.4rem }
.axis-badge{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  font-weight:900; font-size:.92rem; padding:.34rem .6rem; border-radius:10px;
  color:#0b1533;
  background: linear-gradient(90deg, var(--jcc-yellow), var(--jcc-orange));
  border: 0;
}
.axis-icon{ opacity:.9 }
.axis-card h3{ margin:.5rem 0 .3rem; font-size:1.14rem; letter-spacing:.2px }
.axis-card .muted{ font-size:.98rem }
.axis-quote{ margin-top:auto; font-weight:900; color: var(--jcc-blue) }

/* ---------- Contacto ---------- */
#contacto .grid-2{ grid-template-columns: 1fr 1fr; gap: 24px; align-items:start }
.map-wrap{ height: 230px; border-radius: 14px; overflow:hidden; border: var(--border) }
.form-cta{ display:flex; gap:.7rem; flex-wrap:wrap; align-items:center }
input, textarea{
  width:100%; padding:.9rem 1rem; margin:.4rem 0 1rem;
  border-radius: 12px; border: var(--border-strong);
  background: #fff; color: var(--text);
  box-shadow: inset 0 1px 0 rgba(2,6,23,.03);
}
input::placeholder, textarea::placeholder{ color: color-mix(in oklab, var(--muted) 82%, transparent) }
label{ font-weight:700; font-size:.97rem }
button{ cursor:pointer }

/* ---------- Footer ---------- */
footer{ background:#fff; border-top: var(--border) }
.footgrid.v2{ display:grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px }
.foot-title{ font-size:1.05rem; margin:8px 0 10px }
.foot-block{ margin: 10px 0 14px }
.flags{ display:flex; gap:10px; margin-top:6px }
.flag{ font-size: 22px }

.foot-brand{
  display:flex; align-items:center; gap:.8rem; font-weight:900; margin-bottom:12px;
}
.foot-logo-wrap{
  width:auto; height:auto;
  padding:0; border-radius:0;
  background:none; box-shadow:none;
  display:block;
}
.foot-logo-chip{
  background:none; border-radius:0;
  width:auto; height:auto; display:block;
}
.foot-logo-img{
  width:42px; height:auto; object-fit:contain;
  filter:none; /* quita el drop-shadow */
}

.socials{ display:flex; gap:12px; align-items:center; margin-top:8px }
.social{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:12px; border: var(--border-strong); background:#fff; color: var(--text);
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.social svg{ width:20px; height:20px; fill: currentColor }
.social:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--jcc-blue), var(--jcc-orange));
  color:#fff; border-color: transparent;
}

.copyright{
  margin-top: 28px; padding: 16px 0; text-align:center;
  color: var(--muted); font-size: .92rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns:1fr; gap: 20px }
  #contacto .grid-2{ grid-template-columns:1fr }
}
@media (max-width: 900px){
  .grid-3{ grid-template-columns:1fr 1fr }
  .squares-grid{ grid-template-columns: repeat(2,1fr) }
  .footgrid.v2{ grid-template-columns: 1fr 1fr }
}
@media (max-width: 640px){
  .menu{ display:none }
  .hamb{
    display:inline-flex; padding:.5rem .7rem; border-radius: 12px;
    border: var(--border-strong); background:#fff;
  }
  .grid-3, .squares-grid, .footgrid.v2{ grid-template-columns:1fr }
  .brand .logo-img{ height: 32px }
}

.brand-ink{ color:#1032dd; font-weight:800 }

/* ===========================
   BOTONES JCC — Rediseño
   Paleta: #1032dd (azul), #ffcd40 (amarillo), #ff5436 (naranja)
=========================== */

/* Base común para todos los botones */
.btn, a.btn, button.btn,
.cta-primary, a.cta-primary, button.cta-primary,
.cta-outline, a.cta-outline, button.cta-outline,
.cta-ghost, a.cta-ghost, button.cta-ghost {
  --btn-radius: 999px;
  --btn-pad-y: .82rem;
  --btn-pad-x: 1.1rem;
  --btn-gap: .55rem;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
  outline: none;
}

/* Tamaños opcionales */
.btn-sm{ --btn-pad-y:.62rem; --btn-pad-x:.9rem; font-weight: 700 }
.btn-lg{ --btn-pad-y:1rem; --btn-pad-x:1.25rem }

/* Íconos alineados */
.btn svg, .btn i,
.cta-primary svg, .cta-outline svg, .cta-ghost svg { width: 18px; height: 18px }

/* ----- PRIMARY: gradiente azul → naranja ----- */
.cta-primary, a.cta-primary, button.cta-primary,
.menu a.cta-primary {   /* refuerza estilo en el navbar */
  background: linear-gradient(90deg, #1032dd 0%, #ff5436 100%);
  color: #fff;
  border: 0;
}
.cta-primary:hover, .menu a.cta-primary:hover { filter: brightness(1.05); transform: translateY(-1px) }
.cta-primary:active, .menu a.cta-primary:active { transform: translateY(0) }
/* enfoque accesible */
.cta-primary:focus-visible, .menu a.cta-primary:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ffcd40;
}

/* ----- OUTLINE: borde azul, fondo blanco ----- */
.cta-outline, a.cta-outline, button.cta-outline {
  background: #fff;
  color: #1032dd;
  border: 2px solid #1032dd;
}
.cta-outline:hover{ background: color-mix(in oklab, #1032dd 8%, #ffffff); }
.cta-outline:focus-visible{
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ffcd40;
}

/* ----- GHOST: texto azul, sin borde ----- */
.cta-ghost, a.cta-ghost, button.cta-ghost {
  background: transparent;
  color: #1032dd;
  border: 0;
  box-shadow: none;
}
.cta-ghost:hover{ background: color-mix(in oklab, #1032dd 8%, transparent) }
.cta-ghost:focus-visible{
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #ffcd40;
}

/* ----- CTA WHATSAPP: verde oficial + texto blanco ----- */
#ctaWhats,
.btn-wa, a.btn-wa, button.btn-wa {
  background: #25D366 !important;
  color: #fff !important;
  border: 0 !important;
}
#ctaWhats:hover,
.btn-wa:hover { filter: brightness(1.06); transform: translateY(-1px) }
#ctaWhats:focus-visible,
.btn-wa:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #128C7E } /* ring verde oscuro */

/* ----- Estados deshabilitado ----- */
.btn[disabled], .cta-primary[disabled], .cta-outline[disabled], .cta-ghost[disabled],
a.cta-primary[aria-disabled="true"], a.cta-outline[aria-disabled="true"], a.cta-ghost[aria-disabled="true"]{
  opacity:.55; pointer-events:none; transform:none;
}

/* ----- Variantes cromáticas rápidas (por si las necesitas) ----- */
.btn-yellow{ background:#ffcd40; color:#0b1533; border:0 }
.btn-yellow:hover{ filter:brightness(1.03) }
.btn-orange{ background:#ff5436; color:#fff; border:0 }
.btn-orange:hover{ filter:brightness(1.05) }

/* ===== Panel móvil (único y correcto) ===== */
.mobile-panel{
  position: fixed;
  inset: 70px 16px auto 16px;
  z-index: 1000;
  background: var(--card);
  border: var(--border-strong);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  max-height: calc(100dvh - 90px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  /* oculto por defecto */
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.mobile-panel.open{
  display: block;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* Bloquear scroll del fondo cuando el panel esté abierto */
body.no-scroll{ overflow:hidden; touch-action:none; }


/* ===== Botón hamburguesa visible en móvil ===== */
@media (max-width: 640px){
  .menu{ display:none }
  .hamb{
    display:inline-flex; align-items:center; justify-content:center;
    padding:.58rem .7rem; border-radius:12px; border: var(--border-strong);
    background:#fff; font-size:1.1rem;
  }
}

/* ===== Overlay del menú ===== */
.mobile-overlay{
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
}

/* ===== Panel móvil vertical ===== */
.mobile-panel{
  position: fixed; z-index: 1000;
  right: 16px; left: 16px; top: 70px; /* debajo del navbar */
  background: var(--card); border: var(--border-strong);
  border-radius: 16px; box-shadow: var(--shadow);
  max-height: calc(100dvh - 100px); overflow: auto;
  -webkit-overflow-scrolling: touch;

  /* oculto por defecto */
  display: none; opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}

/* header dentro del panel */
.mobile-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 16px; border-bottom: var(--border);
}
.mobile-head strong{ font-size:1.05rem }
.mobile-close{
  border:0; background:#fff; border-radius:10px; width:36px; height:36px; cursor:pointer;
  border: var(--border-strong); font-size:1rem; line-height:1;
}
.mobile-close:hover{ background: rgba(16,50,221,.06) }

/* links en columna */
.mobile-links{ display:flex; flex-direction:column; padding: 8px }
.mobile-links a{
  display:block; padding: 12px 12px; margin: 4px 6px; border-radius: 10px;
  color: #0b1533; border: var(--border);
  background:#fff; font-weight:700;
}
.mobile-links a:hover{ background: rgba(16,50,221,.06) }

/* CTA al fondo */
.mobile-cta{ padding: 12px 14px; border-top: var(--border); display:flex; gap:10px }
.mobile-cta .cta-primary{ width:100%; }

/* estado abierto */
.mobile-panel.open{ display:block; opacity:1; transform:none }

.mobile-panel{ border-top: 4px solid var(--jcc-yellow); }

/* ===== DESCUBRE — Texto amplio + Galería ===== */
.descubre{
  position: relative;
  padding: 56px 0 64px;
  background: var(--bg);
}

.descubre-head{
  max-width: 940px;
  margin: 0 auto 18px;
  text-align: center;
}
.descubre .section-title{
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.descubre .section-sub{
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  color: var(--muted);
  margin: 0 auto 18px;
}

/* línea de marca arriba (sutil) */
.descubre::before{
  content:"";
  position:absolute; left:0; right:0; top:0; height:4px;
  background: linear-gradient(90deg, var(--jcc-yellow), var(--jcc-orange));
  opacity:.9;
}

/* Galería 3 */
.gallery-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.gallery-item{
  background:#fff;
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gallery-item:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border: var(--border-strong);
}
.gallery-item img{
  width: 100%; height: auto; display:block;
  aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img{ transform: scale(1.03) }

.gallery-item figcaption{
  padding: 12px 14px;
  font-weight: 800;
  color: var(--text);
  border-top: var(--border);
}

/* Responsive */
@media (max-width: 900px){
  .gallery-3{ grid-template-columns: 1fr 1fr }
}
@media (max-width: 640px){
  .gallery-3{ grid-template-columns: 1fr }
}

.descubre .section-title {
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--text);
  margin-bottom: 16px;
}

.descubre .section-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 12px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--jcc-blue), var(--jcc-orange));
}

.full-image {
  margin: 60px auto;
  position: relative;
  width: 100%;
  max-width: 1400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.full-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: transform 0.5s ease;
}

.full-image:hover img {
  transform: scale(1.03);
}

.image-overlay {
  position: relative;
}

.image-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.image-text h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.image-text p {
  font-size: 1.2rem;
  max-width: 700px;
}