:root{
  /* Brand / Digital */
  --primary: #1f5eff;
  --accent: #ffb703;

  /* Neutrales */
  --bg-light: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-dark: #0b1b3a;

  --card: #ffffff;
  --border: rgba(14,23,38,.10);

  --text: #0e1726;
  --text-muted: rgba(14,23,38,.68);

  --text-on-dark: rgba(255,255,255,.92);
  --text-muted-on-dark: rgba(255,255,255,.72);

  --radius: 16px;
  --radius-sm: 12px;

  --shadow: 0 16px 40px rgba(10,18,36,.10);
  --shadow-soft: 0 10px 26px rgba(10,18,36,.08);

  --section-pad: 84px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: var(--bg-light);
  line-height:1.5;
}

.container{
  width:min(1100px, 92vw);
  margin-inline:auto;
}

.nav{
  position:sticky;
  top:0;
  z-index:20;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,23,38,.08);
}

.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

/* Brand: logo + nombre en 1 línea */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 15px;
  text-decoration:none;
  white-space: nowrap;
}

.brand__logo{
  height: 44px;
  width: 44px;
  display:block;
  flex: 0 0 auto;
}

.brand__name{
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.menu{
  display:flex;
  gap: 14px;
  align-items:center;
}

.menu a{
  text-decoration:none;
  color: rgba(14,23,38,.82);
  font-weight:700;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}

.menu a:hover{
  background: rgba(31,94,255,.08);
}

.section{
  padding: var(--section-pad) 0;
}

.section--light{ background: var(--bg-light); }
.section--soft{ background: var(--bg-soft); }
.section--dark{
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--dark .lead,
.section--dark .muted{ color: var(--text-muted-on-dark); }

h1{ font-size: clamp(2rem, 4vw, 3rem); line-height:1.08; margin: 8px 0 14px; }
h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 8px; }
h3{ margin: 0 0 8px; }

h1, h2, h3{ letter-spacing: -0.02em; }

.lead{ font-size: 1.06rem; color: var(--text-muted); max-width: 60ch; }

.eyebrow{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31,94,255,.10);
  color: rgba(31,94,255,.95);
  font-weight:800;
  margin:0;
}

.grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items:start;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}

.card--dark{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:none;
}

.list{ margin: 10px 0 0; padding-left: 18px; }
.muted{ color: var(--text-muted); margin: 10px 0 0; }

.actions{ display:flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  text-decoration:none;
  font-weight:900;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 20px rgba(31,94,255,.18);
}

.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn--ghost{
  background: transparent;
  color: var(--primary);
  border-color: rgba(31,94,255,.35);
  box-shadow: none;
}

.btn--small{
  padding: 10px 12px;
  border-radius: 10px;
}

.two{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.steps{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 18px;
}

.step{
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.badge{
  width: 34px; height: 34px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(31,94,255,.12);
  color: rgba(31,94,255,.98);
  font-weight:900;
  margin-bottom: 10px;
}

.form label{
  display:block;
  font-weight:700;
  margin-bottom: 10px;
}

input, textarea{
  width:100%;
  margin-top: 6px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  outline: none;
  font: inherit;
}

input:focus, textarea:focus{
  border-color: rgba(31,94,255,.55);
  box-shadow: 0 0 0 4px rgba(31,94,255,.12);
}

.tracking-result{
  margin-top: 12px;
  display: grid;
  gap: 12px;
  color: rgba(255,255,255,.92);
}

.tracking-result:empty{
  display:none;
}

.tracking-result.is-error{
  padding: 12px 14px;
  border-radius: 12px;
  border-color: rgba(255,110,110,.7);
  background: rgba(255,110,110,.12);
  color: #ffdede;
}

.tracking-summary{
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}

.tracking-result__title{
  font-weight: 700;
  margin-bottom: 4px;
}

.tracking-result__recipient{
  font-weight: 700;
  margin: 6px 0 4px;
}

.tracking-result__status{
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.tracking-result__meta{
  opacity: .82;
  margin-top: 4px;
  font-size: .92rem;
}

.tracking-result__list{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.tracking-result__item{
  display:flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.tracking-result__time{
  font-size: .82rem;
  opacity: .7;
  white-space: nowrap;
  min-width: 92px;
}

.tracking-result__desc{
  flex: 1;
}

.tracking-result__reason{
  flex-basis: 100%;
  margin-left: 92px;
  font-size: .85rem;
  opacity: .8;
}

.tracking-result__status.is-success,
.tracking-result__desc.is-success{
  color: #6ee7a6;
}

.tracking-result__status.is-warning,
.tracking-result__desc.is-warning{
  color: #ffb24d;
}

.tracking-events{
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 0;
  overflow: hidden;
}

.tracking-events__summary{
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-weight: 700;
}

.tracking-events__summary::-webkit-details-marker{
  display: none;
}

.tracking-events__title{
  font-size: 1rem;
}

.tracking-events__count{
  font-size: .85rem;
  opacity: .7;
}

.tracking-events[open] .tracking-events__summary{
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.tracking-events .tracking-result__list{
  padding: 12px 16px 16px;
  margin: 0;
}

.tracking-events__empty{
  padding: 12px 16px 16px;
  margin: 0;
  opacity: .75;
}

.footer{
  padding: 22px 0;
  background: #0a1224;
  color: rgba(255,255,255,.85);
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}

.footer a{ color: rgba(255,255,255,.9); text-decoration:none; }

/* WhatsApp floating button */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 14px;
  border-radius: 999px;

  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 900;

  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease;
}

.wa-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0,0,0,.22);
}

.wa-float:active{ transform: translateY(0); }

/* Mobile improvements */
@media (max-width: 900px){
  :root{ --section-pad: 64px; }

  .grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .two{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }

  .nav__inner{ gap: 12px; }

  .menu{
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .menu a{
    font-size: 0.95rem;
    padding: 10px 10px;
  }

  h1{
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .lead{ font-size: 1.03rem; }

  .actions{ gap: 10px; }
  .actions .btn{
    width: 100%;
    justify-content: center;
  }

  .card, .step{ padding: 16px; }

  .wa-float{
    right: 14px;
    bottom: 14px;
  }
}

@media (min-width: 900px){
  .wa-float{
    bottom: 22px;
    right: 22px;
    padding: 10px 12px;
    font-weight: 800;
  }
}

/* ===== Accordion semanal ===== */
.week-accordion{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.day-acc{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
}

.day-acc summary{
  list-style: none;
  cursor: pointer;

  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 14px;
  user-select: none;
}

.day-acc summary::-webkit-details-marker{
  display:none;
}

.day-acc__day{
  font-weight: 900;
  font-size: 1.05rem;
}

.day-acc__summary{
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: .95rem;
  text-align: right;
}

/* Flechita */
.day-acc summary::after{
  content: "▾";
  color: rgba(255,255,255,.75);
  font-weight: 900;
  margin-left: 8px;
  transition: transform .12s ease;
}

.day-acc[open] summary::after{
  transform: rotate(180deg);
}

.day-acc__details{
  padding: 0 14px 14px 14px;
  display: grid;
  gap: 12px;
}

.day-acc__details .dept{
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.day-acc__details h5{
  margin: 0 0 6px;
  font-size: .95rem;
  font-weight: 900;
  color: rgba(255,255,255,.92);
}

.day-acc__details ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,.82);
}

.day-acc__details li{
  margin: 5px 0;
}

/* Desktop: hover zoom suave */
.day-acc.zoom-card:hover{
  transform: scale(1.03);
  z-index: 10;
  box-shadow: 0 20px 55px rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.22);
}

/* Responsive */
@media (max-width: 1100px){
  .week-accordion{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px){
  .week-accordion{ grid-template-columns: 1fr; }
  .day-acc.zoom-card:hover{ transform: none; } /* en mobile no hace falta zoom */
}

/* HERO */
.hero-kicker{
  display:block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31,94,255,.08);
  color: rgba(31,94,255,.98);
  font-weight: 900;
  font-size: 4.10rem;
  margin: 0 0 16px;

  text-align: center;
}

.hero-title{
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-subtitle{
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
  color: rgba(14,23,38,.78);
  max-width: 62ch;
}
