/* =========================================================
   ISTHAR - LANDING (CLARA, PROFESIONAL)
   Paleta basada en el logo: azules + naranjas
========================================================= */

:root{
  /* Fondo y superficies */
  --bg-main: #F7F9FC;
  --bg-section: #FFFFFF;
  --bg-soft: #EEF2F7;

  /* Texto */
  --text-main: #1F2937;
  --text-muted: #6B7280;

  /* Paleta del logo (aprox) */
  --primary: #054F83;      /* azul oscuro */
  --secondary: #07A2DB;    /* azul/cian */
  --brand-light: #67CAEF;  /* azul claro */
  --accent: #E56F29;       /* naranja */
  --accent2: #FAB323;      /* dorado */

  /* UI */
  --border: #E5E7EB;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow2: 0 8px 18px rgba(0,0,0,0.06);
  --radius: 18px;
  --radius2: 26px;

  --container: 1140px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}
img{ display:block; max-width:100%; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.02em;
}

.container{ width: min(var(--container), 92%); margin: 0 auto; }
.center{ text-align: center; }

/* =========================
   BOTONES
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active{ transform: translateY(1px); }

.btn--sm{ padding: 10px 14px; font-weight: 800; }
.btn--full{ width: 100%; }

.btn--primary{
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 30px rgba(7,162,219,0.18);
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(5,79,131,0.18);
}

.btn--ghost{
  background: #fff;
  border-color: var(--border);
  color: var(--text-main);
  box-shadow: var(--shadow2);
}
.btn--ghost:hover{
  transform: translateY(-1px);
}

/* =========================
   TOPBAR / NAV
========================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

/* Marca */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

/* =========================================================
   LOGO 200x135 (DESKTOP) + RESPONSIVE SIN DEFORMAR
========================================================= */
.brand__logo-img{
  width: 200px;
  height: 135px;
  object-fit: contain;     /* NO se deforma */
  border-radius: 16px;
  background: transparent; /* tu logo ya tiene fondo blanco */
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(5,79,131,0.10);
  padding: 0;              /* sin padding para respetar tamaño */
}

/* Tablet */
@media (max-width: 980px){
  .brand__logo-img{
    width: 160px;
    height: 108px;
  }
}

/* Móvil */
@media (max-width: 560px){
  .brand__logo-img{
    width: 130px;
    height: 88px;
  }
}

.brand__text{
  display: grid;
  line-height: 1.1;
  text-align: left;
}
.brand__text strong{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.brand__text small{ color: var(--text-muted); font-weight: 700; }

/* En móvil ocultamos el texto para que el header quede limpio */
@media (max-width: 720px){
  .brand__text{ display: none; }
}

.nav__desktop{
  display: none;
  gap: 6px;
  font-weight: 700;
  color: var(--text-main);
}
.nav__desktop a{
  padding: 10px 10px;
  border-radius: 999px;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}
.nav__desktop a:hover{
  background: var(--bg-soft);
  color: var(--primary);
  transform: translateY(-1px);
}

.nav__actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menuBtn{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow2);
}

/* Desktop */
@media (min-width: 980px){
  .nav__desktop{ display: inline-flex; }
  .menuBtn{ display: none; }
}

/* =========================
   DRAWER + OVERLAY
========================= */
.overlay{
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.45);
  z-index: 90;
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92%);
  height: 100dvh;
  z-index: 100;
  background:
    radial-gradient(700px 380px at 10% 10%, rgba(7,162,219,0.16), transparent 55%),
    radial-gradient(700px 380px at 90% 30%, rgba(250,179,35,0.12), transparent 55%),
    #FFFFFF;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .22s ease;
  padding: 14px;
}
.drawer.is-open{ transform: translateX(0); }

.drawer__header{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 12px;
  border-bottom: 1px solid var(--border);
}

.drawer__brand{ display: inline-flex; align-items:flex-start; gap: 10px; }

/* Logo drawer 200x135 */
.drawer__logo{
  width: 200px;
  height: 135px;
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0;
}

/* Drawer móvil un poco más compacto */
@media (max-width: 560px){
  .drawer__logo{
    width: 170px;
    height: 115px;
  }
}

.drawer__brandText{ text-align:left; line-height: 1.1; padding-top: 6px; }
.drawer__brandText small{ color: var(--text-muted); font-weight: 700; }

.drawer__close{
  width: 44px; height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow2);
}

.drawer__links{
  display:grid;
  gap: 10px;
  padding: 14px 6px;
}
.drawer__links a{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 800;
  color: var(--text-main);
  box-shadow: var(--shadow2);
}
.drawer__links a:hover{
  background: var(--bg-soft);
  color: var(--primary);
}

.drawer__cta{
  margin-top: 8px;
  padding: 10px 6px;
  border-top: 1px solid var(--border);
}
.micro{
  margin: 10px 0 0;
  color: var(--text-muted);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* =========================
   SECCIONES
========================= */
.section{
  padding: 78px 0;
  background: var(--bg-section);
}
.section--alt{
  background: var(--bg-soft);
}
.section--hero{
  background:
    radial-gradient(900px 520px at 50% 0%, rgba(7,162,219,0.14), transparent 60%),
    radial-gradient(900px 520px at 50% 40%, rgba(250,179,35,0.10), transparent 60%),
    var(--bg-section);
  border-bottom: 1px solid var(--border);
}

.section__head{
  margin: 0 auto 22px;
  max-width: 920px;
}
.section__head h2{
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.2rem);
}
.section__head p{
  margin: 0 auto;
  max-width: 70ch;
  color: var(--text-muted);
}

/* =========================
   HERO
========================= */
.pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  font-weight: 800;
  color: var(--text-main);
}
.pill i{ color: var(--accent); }

.hero__title{
  margin: 16px auto 10px;
  max-width: 28ch;
  font-size: clamp(2.1rem, 1.2rem + 2.5vw, 3.3rem);
  line-height: 1.1;
}
.hero__accent{
  display:block;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle{
  margin: 0 auto 18px;
  max-width: 72ch;
  color: var(--text-muted);
  font-size: 1.06rem;
}
.hero__cta{
  display:flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 560px){
  .hero__cta{ flex-direction: row; }
}

.stats{
  margin: 18px auto 0;
  width: min(780px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat{
  padding: 14px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}
.stat strong{ display:block; font-size: 1.2rem; color: var(--primary); }
.stat span{ color: var(--text-muted); font-weight: 700; }

/* =========================
   IMAGEN PRINCIPAL (HERO)
========================= */
.sectionMedia{
  margin: 18px auto 0;
  width: min(980px, 100%);
  position: relative;
  border-radius: var(--radius2);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: #fff;
}
.sectionMedia img{
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
}
.sectionMedia__badge{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(229,231,235,0.9);
  color: var(--text-main);
  font-weight: 800;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(6px);
}
.sectionMedia__badge i{ color: var(--primary); }

/* =========================
   SPLIT
========================= */
.split{
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  align-items: start;
}
.split__media{
  border-radius: var(--radius2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  background: #fff;
}
.split__media img{
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.mediaNote{
  margin: 0;
  padding: 12px 14px;
  color: var(--text-muted);
  font-weight: 700;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
}
.mediaNote i{ color: var(--secondary); }

@media (min-width: 980px){
  .split{ grid-template-columns: 1.35fr 0.65fr; }
  .split--reverse{ grid-template-columns: 0.65fr 1.35fr; }
  .split--reverse .split__media{ order: 1; }
  .split--reverse .split__content{ order: 2; }
}

/* =========================
   GRIDS / CARDS
========================= */
.grid3{
  display:grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px){
  .grid3{ grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

.card{
  text-align: left;
  padding: 18px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}
.card h3{ margin: 0 0 8px; }
.card p{ margin: 0 0 12px; color: var(--text-muted); }

.card__icon{
  width: 48px; height: 48px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: rgba(7,162,219,0.12);
  color: var(--primary);
}

.list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:grid;
  gap: 8px;
  color: var(--text-main);
  font-weight: 700;
}
.list i{ color: var(--secondary); margin-right: 8px; }

.section__cta{ margin-top: 20px; }

/* WHY */
.whyGrid{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .whyGrid{ grid-template-columns: repeat(2, 1fr); }
}
.whyCard{
  text-align: left;
  padding: 16px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}
.whyCard i{ color: var(--accent); font-size: 1.2rem; }
.whyCard h3{ margin: 10px 0 6px; }
.whyCard p{ margin: 0; color: var(--text-muted); }

.whyCTA{
  margin-top: 14px;
  display:grid;
  gap: 12px;
  justify-items: center;
}
.whyCTA__box{
  width: min(720px, 100%);
  padding: 14px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  display:grid;
  gap: 6px;
}
.whyCTA__box span{ color: var(--text-muted); font-weight: 700; }

/* USECASES */
.grid4{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .grid4{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px){
  .grid4{ grid-template-columns: repeat(4, 1fr); }
}
.usecard{
  padding: 16px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}
.usecard i{ font-size: 1.25rem; color: var(--primary); }
.usecard h3{ margin: 10px 0 6px; }
.usecard p{ margin: 0; color: var(--text-muted); }

/* STEPS */
.steps{
  display:grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 980px){
  .steps{ grid-template-columns: repeat(4, 1fr); }
}
.step{
  text-align:left;
  padding: 16px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}
.step__num{
  display:inline-grid;
  place-items:center;
  width: 44px;
  height: 44px;
  border-radius: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(7,162,219,0.20), rgba(250,179,35,0.18));
  border: 1px solid var(--border);
  margin-bottom: 10px;
  color: var(--primary);
}

/* TESTIMONIOS */
.rating{
  display:grid;
  gap: 6px;
  justify-items:center;
  margin: 6px 0 18px;
}
.stars{ color: var(--accent2); font-size: 1.2rem; }
.rating__text{ color: var(--text-muted); font-weight: 700; }

.quote{
  text-align:left;
  margin: 0;
  padding: 18px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
}
.quote blockquote{ margin: 0 0 14px; color: var(--text-main); }
.quote figcaption{ display:flex; gap:12px; align-items:center; color: var(--text-muted); }

.avatar{
  width: 42px; height: 42px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  font-weight: 800;
  background: rgba(7,162,219,0.14);
  border: 1px solid var(--border);
  color: var(--primary);
}

/* CTA + GALERÍA */
.ctaStrip{
  width: min(980px, 100%);
  margin: 0 auto 18px;
  padding: 16px;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  display:grid;
  gap: 12px;
  align-items:center;
}
@media (min-width: 820px){
  .ctaStrip{ grid-template-columns: 1fr auto; text-align:left; }
}
.ctaStrip__text h3{ margin: 0 0 6px; }
.ctaStrip__text p{ margin: 0; color: var(--text-muted); }

.galleryGrid{
  width: min(1100px, 100%);
  margin: 0 auto;
  display:grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px){
  .galleryGrid{ grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px){
  .galleryGrid{ grid-template-columns: repeat(5, 1fr); }
}

.gItem{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow2);
  outline: 1px solid var(--border);
}
.gItem img{
  width: 100%;
  height: 135px;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .18s ease, filter .18s ease;
  filter: saturate(1.02) contrast(1.02);
}
@media (min-width: 720px){ .gItem img{ height: 155px; } }
.gItem:hover img{ transform: scale(1.06); filter: saturate(1.08) contrast(1.05); }
.gItem::after{
  content: "Ver";
  position: absolute;
  inset: auto 10px 10px auto;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
}

/* FAQ */
.faq{
  width: min(900px, 100%);
  margin: 0 auto;
  display:grid;
  gap: 10px;
}
.faq__item{
  text-align:left;
  border-radius: var(--radius2);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  padding: 14px 16px;
}
.faq__item summary{ cursor: pointer; font-weight: 800; }
.faq__item p{ margin: 10px 0 0; color: var(--text-muted); }

/* FOOTER */
.footer{
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer__inner{
  display:grid;
  gap: 12px;
  justify-items:center;
}
.footer__brand{
  display:inline-flex;
  align-items:center;
  gap: 12px;
}

/* Logo footer 200x135 */
.footer__logo{
  width: 200px;
  height: 135px;
  object-fit: contain;
  border-radius: 16px;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0;
  box-shadow: 0 10px 24px rgba(5,79,131,0.10);
}
@media (max-width: 560px){
  .footer__logo{
    width: 160px;
    height: 108px;
  }
}

.footer__brandText{ text-align:left; line-height: 1.15; }
.footer__brandText small{ color: var(--text-muted); font-weight: 700; }

.footer__wa{
  display:inline-flex;
  gap: 10px;
  align-items:center;
  padding: 12px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 800;
  box-shadow: var(--shadow2);
}
.footer__copy{ margin: 0; color: var(--text-muted); font-weight: 700; }

/* LIGHTBOX */
.lightbox{ position: fixed; inset: 0; z-index: 120; }
.lightbox__backdrop{ position: absolute; inset: 0; background: rgba(17,24,39,0.70); }
.lightbox__panel{
  position: relative;
  width: min(1100px, 92%);
  margin: 6vh auto 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.lightbox__img{
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #F3F4F6;
}
.lightbox__caption{
  padding: 12px 14px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 700;
  border-top: 1px solid var(--border);
}
.lightbox__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  color: var(--text-main);
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow2);
}
.lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  color: var(--text-main);
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow2);
}
.lightbox__nav--prev{ left: 10px; }
.lightbox__nav--next{ right: 10px; }

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}
