/* =========================================================
   FittingExpress · Despacho el mismo día en la RM
   ========================================================= */

/* Barra superior */
.topbar-sameday { color: #fff; font-weight: 600; }
.topbar-sameday .ms { color: #ffd166 !important; }
.topbar-sameday em { font-style: normal; }

/* Banner de la portada */
.sameday { background: var(--night, #011a2b); padding: 0 0 28px; }
.sameday-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 28px 32px 44px; border-radius: var(--r-xl);
  background: linear-gradient(110deg, #04354f 0%, var(--primary) 45%, #075a78 100%);
  box-shadow: inset 0 0 0 1px rgba(5, 181, 205, .35), 0 20px 40px rgba(0, 0, 0, .25);
  color: #fff;
}
.sameday-card::before {
  content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 181, 205, .35), transparent 70%);
}
/* Camino con el camión que avanza (decorativo) */
.sameday-road { position: absolute; z-index: -1; left: 0; right: 0; bottom: 12px; height: 2px; background-image: linear-gradient(90deg, rgba(255, 255, 255, .22) 50%, transparent 50%); background-size: 22px 2px; }
.sameday-truck { position: absolute; bottom: 2px; left: -40px; color: rgba(5, 181, 205, .55); animation: truck 14s linear infinite; }
.sameday-truck .ms { font-size: 26px; }
@keyframes truck { to { left: 100%; } }

.sameday-ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #ffd166; color: var(--ink); box-shadow: 0 0 0 8px rgba(255, 209, 102, .16); }
.sameday-ico .ms { font-size: 34px; }
.sameday-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.sameday-copy h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(22px, 2.6vw, 32px); color: #fff; margin: 0; text-wrap: balance; }
.sameday-copy h2 em { font-style: normal; color: #ffd166; }
.sameday-copy p { margin: 8px 0 0; color: #cfe3ee; font-size: 15px; }
.sameday-note { color: #9fbccb; font-size: 13px; white-space: nowrap; }
.sameday-side { display: flex; align-items: center; gap: 16px; }
.sameday-clock { display: grid; justify-items: center; gap: 2px; min-width: 170px; padding: 12px 18px; border-radius: var(--r-md); background: rgba(1, 26, 43, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); text-align: center; }
.sameday-clock-label { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9fbccb; }
.sameday-clock strong { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .02em; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.2; }
.sameday-clock-note { font-size: 12px; color: #9fbccb; }
.sameday.is-closed .sameday-clock strong { color: #ffd166; }
.sameday-cta { background: #ffd166; color: var(--ink); font-weight: 700; }
.sameday-cta:hover { box-shadow: 0 0 0 4px rgba(255, 209, 102, .3); }
.sameday.is-closed .sameday-copy h2 em { color: var(--accent); }

/* Aviso en la ficha de producto */
.sameday-inline { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(255, 209, 102, .1); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .35); }
.sameday-inline-ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: #ffd166; color: var(--ink); }
.sameday-inline-ico .ms { font-size: 22px; }
.sameday-inline-text { display: grid; font-size: 13px; color: var(--text-d, #cfe3ee); line-height: 1.4; }
.sameday-inline-text b { font-size: 14.5px; color: #fff; }
.sameday-inline.is-closed { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-d, rgba(159, 195, 212, .18)); }
.sameday-inline.is-closed .sameday-inline-ico { background: rgba(255, 255, 255, .12); color: #ffd166; }

@media (max-width: 960px) {
  .sameday-card { grid-template-columns: auto minmax(0, 1fr); padding: 24px; }
  .sameday-side { grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 640px) {
  .sameday { padding-bottom: 20px; }
  .sameday-card { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px 40px; border-radius: var(--r-lg); }
  .sameday-ico { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 0 6px rgba(255, 209, 102, .16); }
  .sameday-ico .ms { font-size: 26px; }
  .sameday-side { flex-direction: column; align-items: stretch; gap: 10px; }
  .sameday-clock { min-width: 0; }
  .sameday-note { white-space: normal; display: block; margin-top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .sameday-truck { animation: none; left: auto; right: 24px; } }
