/**
 * JASEC Home CSS v10 — aqua-forward · profesional
 *
 * Color dominante : Aqua  #1c9ad6  (CTAs, iconos, stats, contacto, hover)
 * Color autoridad : Navy  #082c51  (solo panel Energía + headings sobre blanco)
 * Acento verde    : Lima  #92c020  (bullets, badges, botón CTA)
 * Fondos          : Blanco #fff  ·  Gris claro #f5f7fa  ·  Aqua tint #e5f4fc
 *
 * Secciones: jb-slider · jb-quick · jb-about · jb-stats ·
 *            jb-servicios · jb-noticias · jb-cta · jb-contacto
 */

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --jz    : #082c51;   /* navy oscuro  — solo panel Energía      */
  --jz2   : #0e4a8a;   /* navy medio   — gradiente energía        */
  --jq    : #1c9ad6;   /* aqua vivo    — iconos, bordes, rellenos */
  --jq2   : #0d7ab3;   /* aqua medio   — hover / gradiente        */
  --jq-bg : #1278aa;   /* aqua bg      — fondo donde va texto blanco
                          (blanco/#1278aa = 4.2:1 ≈ WCAG AA)       */
  --jq-bg2: #0a5a88;   /* aqua bg dark — extremo oscuro gradiente  */
  --jq-tx : #0a6298;   /* aqua texto   — sobre blanco (5.1:1 AA)   */
  --jq3   : #e5f4fc;   /* aqua tint    — fondos suaves             */
  --jv    : #92c020;   /* verde lima   — acento / bullets          */
  --jv2   : #aad435;   /* verde claro  — hover verde               */
  --jbg   : #f5f7fa;   /* gris claro   — fondos alternados         */
  --jtx   : #1e2d3d;   /* texto principal                          */
  --jm    : #6b7a8d;   /* texto muted                              */
  --jbd   : #dde3ea;   /* borde        — separadores suaves        */
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
.jb-anim-up, .jb-anim-left, .jb-anim-right, .jb-anim-zoom {
  opacity: 0;
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.jb-anim-up    { transform: translateY(40px); }
.jb-anim-left  { transform: translateX(-44px); }
.jb-anim-right { transform: translateX(44px); }
.jb-anim-zoom  { transform: scale(.95); }
.jb-anim-up.is-visible,
.jb-anim-left.is-visible,
.jb-anim-right.is-visible,
.jb-anim-zoom.is-visible { opacity: 1; transform: none; }

/* Stagger */
.jb-quick .jb-quick-col:nth-child(2) { transition-delay: .07s }
.jb-quick .jb-quick-col:nth-child(3) { transition-delay: .14s }
.jb-quick .jb-quick-col:nth-child(4) { transition-delay: .21s }
.jb-quick .jb-quick-col:nth-child(5) { transition-delay: .28s }
.jb-stats .jb-stat-col:nth-child(2)  { transition-delay: .10s }
.jb-stats .jb-stat-col:nth-child(3)  { transition-delay: .20s }
@media (prefers-reduced-motion: reduce) {
  .jb-anim-up, .jb-anim-left, .jb-anim-right, .jb-anim-zoom {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
}

/* ============================================================
   UTILIDADES GLOBALES
   ============================================================ */
/* Eyebrows */
.jb-eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--jq-tx); margin-bottom: 10px;   /* --jq-tx: 5.1:1 sobre blanco ✓ */
}
.jb-eyebrow--center { display: block; text-align: center; }
.jb-eyebrow--blanco { color: #fff; }           /* sobre fondo oscuro: siempre blanco puro */
.jb-eyebrow--verde  { color: var(--jv); }

/* Service tags */
.jb-svc-tag {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--jv2); margin-bottom: 14px;
}

/* Subrayado de marca aqua→verde bajo títulos */
.jb-about      .column_heading h2::after,
.jb-servicios  .jb-svc-header h2::after,
.jb-noticias   h2::after {
  content: ""; display: block;
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--jq), var(--jv));
  margin-top: 16px;
}
.jb-servicios .jb-svc-header h2::after,
.jb-noticias  h2::after { margin-left: auto; margin-right: auto; }

/* Ocultar wrapper de ícono vacío */
body.home .icon_box .icon_wrapper:empty { display: none; }

/* ============================================================
   S1 — SLIDER
   ============================================================ */
.section.jb-slider { margin: 0 !important; }
.section.jb-slider .section_wrapper,
.section.jb-slider .wrap,
.section.jb-slider .column_attr { padding: 0 !important; margin: 0 !important; }

/* ============================================================
   S2 — ACCESOS RÁPIDOS
   (flotan sobre el slider con borde aqua superior)
   ============================================================ */
.section.jb-quick {
  margin-top: -88px;
  position: relative; z-index: 10;
  background: transparent !important;
}
.section.jb-quick .section_wrapper {
  padding-left: 24px !important; padding-right: 24px !important;
  /* BeTheme ya tiene display:flex en .section_wrapper; solo cambiamos
     align-items para que todas las columnas tengan la misma altura */
  align-items: stretch !important;
}
/* Propagar altura completa por el árbol de BeBuilder */
.section.jb-quick .mcb-wrap         { display: flex !important; flex-direction: column; }
.section.jb-quick .mcb-wrap-inner   { display: flex !important; flex-direction: column; flex: 1; }
.section.jb-quick .mcb-column,
.section.jb-quick .mcb-column-inner { display: flex !important; flex-direction: column; flex: 1; }

/* Card */
.section.jb-quick .icon_box {
  background: #fff;
  border-radius: 16px;
  padding: 28px 16px 24px;
  text-align: center;
  flex: 1;                              /* igual altura gracias al flex arriba */
  box-shadow: 0 16px 48px -18px rgba(8,44,81,.32);
  border: 1px solid rgba(221,227,234,.9);
  border-top: 3px solid var(--jq);
  transition: transform .28s ease, box-shadow .28s ease, background .25s ease;
  cursor: pointer;
}
.section.jb-quick .icon_box:hover {
  transform: translateY(-10px);
  background: var(--jq-bg);              /* más oscuro que #1c9ad6 → texto blanco legible */
  box-shadow: 0 24px 52px -16px rgba(18,120,170,.55);
  border-top-color: var(--jq-bg2);
}

/* Círculo de ícono — aqua */
.section.jb-quick .icon_box .icon_wrapper {
  width: 60px; height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jq), var(--jq2));
  display: flex; align-items: center; justify-content: center;
  transition: transform .28s ease, background .25s ease;
}
.section.jb-quick .icon_box .icon_wrapper [class^="icon-"] {
  color: #fff; font-size: 24px; line-height: 1;
}
.section.jb-quick .icon_box:hover .icon_wrapper {
  transform: scale(1.08);
  background: rgba(255,255,255,.2);
}

/* Texto */
.section.jb-quick .icon_box_title {
  font-size: 13.5px; font-weight: 800;
  color: var(--jz) !important; margin: 0 0 3px; line-height: 1.2;
  transition: color .25s;
}
.section.jb-quick .icon_box .desc,
.section.jb-quick .icon_box .desc p {
  font-size: 11px; color: var(--jm); margin: 0; line-height: 1.4;
  transition: color .25s;
}
.section.jb-quick .icon_box:hover .icon_box_title    { color: #fff !important; }
.section.jb-quick .icon_box:hover .desc,
.section.jb-quick .icon_box:hover .desc p { color: rgba(255,255,255,.82); }

/* ============================================================
   S3 — SOBRE JASEC
   ============================================================ */
.section.jb-about { background: #fff !important; }

/* Imagen */
.section.jb-about .jb-about-img img {
  border-radius: 20px;
  box-shadow: 0 32px 72px -24px rgba(8,44,81,.32);
  width: 100%; height: auto;
  border: 5px solid #fff;
  outline: 1px solid var(--jbd);
}

/* Texto */
.section.jb-about .column_heading h2 {
  font-size: 40px; font-weight: 900;
  color: var(--jz); line-height: 1.15; margin: 0 0 8px;
}
.section.jb-about .column_attr p {
  font-size: 16px; line-height: 1.9; color: var(--jm); margin-bottom: 4px;
}

/* Mini-stats en línea */
.jb-mini-stats {
  display: flex; margin: 24px 0 28px;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--jbd);
}
.jb-ms-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: 18px 10px;
  border-right: 1px solid var(--jbd);
  background: #fff;
  transition: background .2s ease;
}
.jb-ms-item:last-child { border-right: none; }
.jb-ms-item:hover { background: var(--jq3); }
.jb-ms-num {
  font-size: 34px; font-weight: 900;
  color: var(--jq); line-height: 1; letter-spacing: -1px;
}
.jb-ms-num sup {
  font-size: 14px; font-weight: 700;
  vertical-align: super; letter-spacing: 0;
}
.jb-ms-label {
  font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--jm); margin-top: 6px; text-align: center;
}

/* ============================================================
   S4 — ESTADÍSTICAS  (banda AQUA — color dominante)
   ============================================================ */
.section.jb-stats {
  /* --jq-bg (#1278aa) con blanco = 4.2:1 ≈ WCAG AA — texto legible */
  background: linear-gradient(120deg, var(--jq-bg) 0%, var(--jq-bg2) 100%) !important;
  position: relative; overflow: hidden;
}
/* Reflejos suaves sobre el fondo aqua */
.section.jb-stats::before {
  content: ''; pointer-events: none;
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(255,255,255,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 50%, rgba(255,255,255,.07) 0%, transparent 55%);
}

/* Separador vertical entre columnas */
.section.jb-stats .jb-stat-col { position: relative; }
.section.jb-stats .jb-stat-col:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,.22);
}

/* Icon box */
.section.jb-stats .icon_box { background: transparent; margin: 0; text-align: center; }
.section.jb-stats .icon_box .icon_wrapper {
  width: 68px; height: 68px;
  margin: 0 auto 18px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.30);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease, background .3s ease;
}
.section.jb-stats .jb-stat-col:hover .icon_wrapper {
  transform: scale(1.08); background: rgba(255,255,255,.28);
}
.section.jb-stats .icon_box .icon_wrapper [class^="icon-"] {
  color: #fff; font-size: 28px;
}
.section.jb-stats .icon_box_title {
  font-size: 50px; font-weight: 900; color: #fff !important;
  line-height: 1; margin: 0 0 8px; letter-spacing: -2px;
}
.section.jb-stats .icon_box .desc,
.section.jb-stats .icon_box .desc p {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #fff; margin: 0;
}
.section.jb-stats .icon_box .desc small {
  display: block; font-size: 11px; font-weight: 400;
  letter-spacing: .5px; text-transform: none;
  color: rgba(255,255,255,.82); margin-top: 3px;  /* sube de .65 → .82 */
}

/* ============================================================
   S5 — SERVICIOS
   ============================================================ */
.section.jb-servicios { background: var(--jbg) !important; }

/* Encabezado centrado */
.jb-svc-header { text-align: center; padding-bottom: 48px !important; }
.jb-svc-header h2 {
  font-size: 42px; font-weight: 900; color: var(--jz);
  margin: 4px 0 0; display: inline-block;
}

/* Paneles */
.jb-svc-panel {
  border-radius: 20px; overflow: hidden; padding: 56px 48px;
  box-shadow: 0 20px 60px -24px rgba(8,44,81,.42);
  transition: transform .32s ease, box-shadow .32s ease;
}
.jb-svc-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 72px -22px rgba(8,44,81,.52);
}

/* Energía — navy (autoridad) */
.jb-svc-energia {
  background: linear-gradient(145deg, var(--jz) 0%, var(--jz2) 100%);
}
/* Internet — aqua (moderno, dominante) */
.jb-svc-internet {
  background: linear-gradient(145deg, var(--jq) 0%, var(--jq2) 100%);
}

.jb-svc-panel h3,
.jb-svc-panel .column_attr { color: #fff !important; }
.jb-svc-panel h3 {
  font-size: 28px; font-weight: 900; line-height: 1.2; margin: 0 0 16px;
}
.jb-svc-panel .column_attr p {
  color: rgba(255,255,255,.87); font-size: 15px; line-height: 1.75; margin-bottom: 0;
}

/* Lista de features */
.jb-svc-list {
  list-style: none; padding: 0; margin: 16px 0 24px;
}
.jb-svc-list li {
  color: rgba(255,255,255,.9); font-size: 13.5px;
  padding: 7px 0 7px 22px; position: relative;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.jb-svc-list li:last-child { border-bottom: none; }
.jb-svc-list li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--jv); border: 2px solid rgba(255,255,255,.25);
}

/* Botones de panel */
.jb-svc-panel a.button {
  background: rgba(255,255,255,.14) !important;
  border-color: rgba(255,255,255,.45) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
  transition: background .25s ease, border-color .25s ease !important;
}
.jb-svc-panel a.button:hover {
  background: var(--jv) !important;
  border-color: var(--jv) !important;
}

/* ============================================================
   S6 — NOTICIAS
   ============================================================ */
.section.jb-noticias { background: #fff !important; text-align: center; }
.section.jb-noticias h2 {
  font-size: 42px; font-weight: 900; color: var(--jz);
  margin: 4px auto 0; display: inline-block;
}

.jb-news-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 28px; margin: 42px 0 16px; text-align: left;
}

/* Tarjeta */
.jb-news-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--jbd);
  box-shadow: 0 6px 24px -12px rgba(8,44,81,.20);
  text-decoration: none !important;
  transition: transform .3s ease, box-shadow .3s ease;
}
.jb-news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 52px -16px rgba(28,154,214,.38);
}

/* Imagen */
.jb-news-img {
  display: block; height: 200px;
  background-size: cover; background-position: center;
  position: relative;
}
.jb-news-img::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(transparent, rgba(8,44,81,.22));
}

/* Cuerpo */
.jb-news-body {
  display: flex; flex-direction: column;
  padding: 24px; flex: 1;
}
.jb-news-date {
  font-size: 11px; font-weight: 800;
  color: var(--jq-tx); text-transform: uppercase;   /* --jq-tx: 5.1:1 sobre blanco ✓ */
  letter-spacing: .8px; margin-bottom: 10px;
}
.jb-news-title {
  font-size: 17px; font-weight: 900; color: var(--jz);
  line-height: 1.35; margin-bottom: 10px; flex: 1;
}
.jb-news-exc {
  font-size: 13.5px; color: var(--jm); line-height: 1.7; margin-bottom: 16px;
}
.jb-news-more {
  font-size: 12px; font-weight: 800; color: var(--jq-tx);  /* 5.1:1 sobre blanco ✓ */
  text-transform: uppercase; letter-spacing: .5px;
}
.jb-news-card:hover .jb-news-more { color: var(--jq-bg); }
.jb-no-news { text-align: center; color: var(--jm); padding: 64px 0; }

/* ============================================================
   S7 — CTA  (aqua con patrón sutil)
   ============================================================ */
.section.jb-cta {
  background: linear-gradient(120deg, var(--jq-bg) 0%, var(--jq-bg2) 100%) !important;
  text-align: center; position: relative; overflow: hidden;
}
/* Patrón de fondo */
.section.jb-cta::before {
  content: ''; pointer-events: none;
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.section.jb-cta h2 {
  color: #fff !important; font-size: 40px; font-weight: 900;
  margin: 8px auto 12px; max-width: 700px; line-height: 1.2;
}
.section.jb-cta .column_attr p {
  color: #fff; font-size: 17px;    /* blanco puro, sin transparencia */
  margin: 0 auto 8px; max-width: 560px;
}
.section.jb-cta a.button {
  background: var(--jv) !important; border-color: var(--jv) !important;
  color: #fff !important; margin-top: 8px;
  box-shadow: 0 8px 24px -8px rgba(146,192,32,.55);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.section.jb-cta a.button:hover {
  background: #fff !important; color: var(--jq) !important;
  border-color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(255,255,255,.35);
}

/* ============================================================
   S8 — CONTACTO  (AQUA izquierda | Blanco derecha)
   ============================================================ */
.section.jb-contacto { background: #fff; }

/* Panel izquierdo — AQUA (no navy) */
.jb-cto-left {
  background: linear-gradient(150deg, var(--jq-bg) 0%, var(--jq-bg2) 100%);
  padding: 72px 52px;
  border-radius: 24px 0 0 24px;
  position: relative; overflow: hidden;
}
/* Círculos decorativos de fondo */
.jb-cto-left::before {
  content: ''; pointer-events: none;
  position: absolute; top: -70px; right: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.jb-cto-left::after {
  content: ''; pointer-events: none;
  position: absolute; bottom: -50px; left: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.05);
}

/* Panel derecho */
.jb-cto-right {
  background: var(--jbg);
  padding: 72px 52px;
  border-radius: 0 24px 24px 0;
}

/* Textos panel izquierdo */
.jb-cto-left .column_attr,
.jb-cto-left h2 { color: #fff !important; }
.jb-cto-left h2 {
  font-size: 34px; font-weight: 900; line-height: 1.15; margin: 0 0 16px;
}
.jb-cto-left .column_attr > p {
  color: #fff; line-height: 1.7; margin-bottom: 20px;
}

/* Información de contacto */
.jb-cinfo { margin-top: 4px; }
.jb-cinfo p { margin: 0 0 14px; }
.jb-cinfo strong {
  display: block;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,.80); margin-bottom: 2px;  /* sube de .62 → .80 */
}
.jb-cinfo a {
  color: #fff; font-weight: 700; text-decoration: none;
  transition: color .2s;
}
.jb-cinfo a:hover { color: var(--jv2); }

/* Botón WhatsApp */
.jb-cto-left a.button {
  background: rgba(255,255,255,.16) !important;
  border-color: rgba(255,255,255,.5) !important;
  color: #fff !important;
  backdrop-filter: blur(4px);
  transition: background .25s ease, border-color .25s ease !important;
}
.jb-cto-left a.button:hover {
  background: var(--jv) !important;
  border-color: var(--jv) !important;
}

/* Panel derecho — formulario */
.jb-cto-right h3 {
  font-size: 28px; font-weight: 900; color: var(--jz); margin: 0 0 8px;
}
.jb-form-hint {
  color: var(--jm); font-size: 14px; margin: 0 0 24px !important;
}
.jb-cto-right .wpcf7 input:not([type=submit]),
.jb-cto-right .wpcf7 textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--jbd); border-radius: 12px;
  background: #fff; font-size: 14px; color: var(--jtx);
  margin-bottom: 8px; transition: border-color .2s ease;
}
.jb-cto-right .wpcf7 input:focus,
.jb-cto-right .wpcf7 textarea:focus {
  outline: none; border-color: var(--jq);
}
.jb-cto-right .wpcf7 input[type=submit] {
  background: var(--jq); color: #fff; border: none;
  padding: 14px 38px; border-radius: 50px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background .25s ease, transform .2s ease;
}
.jb-cto-right .wpcf7 input[type=submit]:hover {
  background: var(--jq2); transform: translateY(-1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .section.jb-quick { margin-top: -60px; }
  .section.jb-quick .section_wrapper { padding-left: 16px !important; padding-right: 16px !important; }
}

@media (max-width: 1024px) {
  .section.jb-quick { margin-top: -44px; }
  .jb-svc-panel { padding: 44px 36px; }
  .section.jb-about .column_heading h2,
  .jb-svc-header h2,
  .section.jb-noticias h2,
  .section.jb-cta h2 { font-size: 34px; }
  .jb-stats .icon_box_title { font-size: 44px; }
}

@media (max-width: 768px) {
  .section.jb-quick { margin-top: 0; }
  .section.jb-quick .icon_box { border-radius: 12px; padding: 22px 12px 18px; }

  .jb-mini-stats { flex-direction: row; flex-wrap: wrap; }
  .jb-ms-item { min-width: calc(50% - 1px); border-right: none; border-bottom: 1px solid var(--jbd); }
  .jb-ms-item:last-child { border-bottom: none; min-width: 100%; }

  .jb-news-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }

  .jb-cto-left  { border-radius: 20px 20px 0 0; padding: 52px 32px; }
  .jb-cto-right { border-radius: 0 0 20px 20px; padding: 48px 32px; }

  .jb-svc-panel { border-radius: 16px; }
  .jb-svc-header { padding-bottom: 32px !important; }
}

@media (max-width: 580px) {
  .section.jb-about .column_heading h2,
  .jb-svc-header h2,
  .section.jb-noticias h2,
  .section.jb-cta h2 { font-size: 28px; }
  .jb-stats .icon_box_title { font-size: 40px; }
  .jb-ms-num { font-size: 28px; }
  .jb-cto-left, .jb-cto-right { padding: 40px 22px; }
  .jb-svc-panel { padding: 36px 28px; }
  .jb-svc-panel h3 { font-size: 23px; }
}
