:root{
  /* Paleta plana, fácil de cambiar */

  --text: #08080a;
  --muted: #6d6d73;

  --accent: #8b5cf6;      /* días activos (7-15) + hoy */
  --accent-2: #a78bfa;    /* hover/detalles */
  --danger: #ef4444;

  --radius: 18px;
  --maxw: 393px;
  --titulo: 'Bebas Neue', sans-serif;
  --italica: 'Pinyon Script', cursive;
  --normal:'Montserrat', sans-serif;
  --inactivo:#b8b9ba;
}
.routebox__toggle{
  all: unset;
}
*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--normal);
  color: var(--text);
  background: #e1e1e1;
}

.header,
#app{
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 5px;
  padding-right: 5px;
}

.header{
  padding-top: clamp(16px, 3vw, 26px);
  padding-bottom: 10px;
  display:flex;
  flex-direction:row;
  justify-content:space-between;
  align-items:center;
}

.header__title{
  margin: 0;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.2px;
  color:var(--text);
  text-transform: uppercase;
  font-family:var(--titulo);
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}

.header__subtitle{
  margin: 6px 0 0;
  font-size: clamp(13px, 1.6vw, 15px);
  color: var(--muted);
}

#app{
  padding-top:0;
  padding-bottom: 30px;
  
  

}

.card{
  background: white;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
}

.btn{
  appearance: none;
  border: 10px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{ background: var(--panel-2); }
.btn:active{ transform: scale(0.98); }
.btn--ghost{ background: transparent; }
.btn--danger{ border-color: var(--danger); }

/* =========================
   Calendario Abril 2026
========================= */
.calendar{
  padding: clamp(12px, 2vw, 16px);
  box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  background:white;
}
.calendar img{
  width:100%;
}
.calendar__head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.calendar__month{
	margin: 0;
	font-size: 48px;
	letter-spacing: 0.2px;
	font-style: italic;
    font-family: var(--italica);
    margin-top: -22px;
    text-align: center;
    width: 100%;
}

/* Cabecera días semana (L M X J V S D) */
.weekdays{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.weekday{
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}

/* Grid del mes */
.monthgrid{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

/* Celda día */
.cell{
  position: relative;
  min-height: 56px;
  padding: 10px 10px 8px;
  overflow: hidden;
}

/* Número */
.cell__num{
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
}

/* Estado desactivado */
.cell.is-disabled{
  color: var(--inactivo);
  border-top: var(--inactivo) solid 2px;
}

/* Huecos del calendario (días previos/siguientes) */
.cell.is-outside{
  color: #e7e4e4;
  border-top:solid 2px #e7e4e4;
  display:flex;
  align-items:center;
}

/* Activos 7-15 */
.cell.is-active{
  color:var(--text);
  border-top:solid 2px var(--text);
  background: #f3f5f7;
}

.cell.is-active:hover{
   color: #f3f5f7;
  background:var(--text)
}

/* Convertimos los activos en botón/enlace accesible */
.cell__btn{
  all: unset;
  display: block;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.cell.is-disabled .cell__btn,
.cell.is-outside .cell__btn{
  cursor: default;
}

/* “tachado” día terminado (X encima) */
.cell.is-done{
  background: #13172a;
  border-color: #232848;
  color: #9aa1bf;
}

/* La X encima */
.cell.is-done::after{
  content: "✕";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  font-weight: 900;
  color: #000;
  opacity: 0.18;
  pointer-events: none;
}

/* Hoy (si coincide) */
.cell.is-today{
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

/* =========================
   Vista día
========================= */
.dayview{
  padding: clamp(12px, 2vw, 16px);
}

.dayview__head{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dayview__title{
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
}

.dayview__date{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.section{ margin-top: 14px; }

.section__title{
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text);
}

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

.note{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
}

/* ===== Vista día estilo "itinerary" (sin fotos) ===== */
.daypaper {
    background-image: 
        url("../img/fondo1.png"), 
        url("../img/fondo2.png");
    background-position: top, bottom;
    background-repeat: no-repeat;
	background-size: 100% auto, 100% auto; 
	background-color: #fff;
    color: #141414;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.daypaper::before,
.daypaper::after {
  content: '';
  position: absolute;
  bottom: 10px;
  width: 40%;
  height: 10px;
  box-shadow: 0 5px 14px rgba(0,0,0,.7);
  z-index: -1;
  transition: all .3s ease-in-out;
}

.daypaper::before {
  left: 15px;
  transform: skew(-5deg) rotate(-5deg);
}

.daypaper::after {
  right: 15px;
  transform: skew(5deg) rotate(5deg);
}

.daypaper__head{
  padding: 30px 18px 12px;
  border-bottom: 1px solid #eeeeee;
}

.daypaper__kicker{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a7a7a;
  font-weight: 800;
  text-align:center;
}

.daypaper__title{
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 900;
  width:100%;
  text-align:center;
}

.daypaper__date{
  margin: 6px 0 0;
  font-size: 12px;
  color: #6a6a6a;
  width:100%;
  text-align:center;
}

.daypaper__body{
  padding: 16px 25px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.daypaper__section{
  margin-top: 14px;
}

.daypaper__section:first-child{
  margin-top: 0;
}

.daypaper__h{
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
  font-weight: 900;
}

.daypaper__list{
  margin: 0;
  padding-left: 18px;
  color: #202020;
}

.daypaper__note{
  padding: 10px 12px;
  color: #202020;
  font-size: 11px;
  font-style:italic;
}

/* Bloque "Ruta" en texto (DL) */
.routebox{
  padding: 10px 0 10px 12px;
  border-left: 2px solid #b7642e;
  font-size: 14px;
  margin: 0;
  width:106%;
}

.routebox__line{
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 6px 0 0;
  padding: 0;
  margin-top:20px;
}

.routebox__line:first-child{ margin-top: 0; }

.routebox__tag{
display: flex;
    font-weight: 900;
    color: #555;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
    position: relative;
    flex-wrap: wrap;
	gap:5px;
}
.routebox__tag:before 
{
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 10px;
  height: 10px;
  background-color: #b7642e;
  border-radius: 50%;
}
.routebox__text{
  flex: 1 1 auto;
}
.is-transit .routebox__tag
{
	font-size:12px;
	font-weight:500;
}
.is-transit .routebox__tag:before
{
	width: 8px;
	height: 8px;
    left: -17px;
    top: 3px;
	background-color:#cf7236;
}
/* dd: explicación */
.routebox__desc{
  margin: 4px 0 30px;
  padding: 0;
  color: #3a3a3a;
  font-size: 12px;
  line-height: 1.45;
}


.daypaper__p{
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #202020;
}

/* Si usas listas, que no sean numeradas */
.daypaper__list--bullets{
  margin: 0;
  padding-left: 18px;
}
.enlace-pro {
    text-decoration: none;
    color: #141414;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
	display:block;
	margin: 10px auto;
    text-align: center;
	transform: translateX(-30px);
}

/* El símbolo de antes */
.enlace-pro::before {
    content: "~";
    margin-right: 8px;
    color: #b7642e; /* El color de tus bullets */
    transition: margin 0.3s ease;
}

/* El símbolo de después */
.enlace-pro::after {
    content: "~";
    margin-left: 8px;
    color: #b7642e;
    transition: margin 0.3s ease;
}

/* Efecto al pasar el ratón */
.enlace-pro:hover {
    color: #b7642e;
}

.enlace-pro:hover::before {
    margin-right: 12px; /* Se separa un poco más al hacer hover */
}

.enlace-pro:hover::after {
    margin-left: 12px;  /* Se separa un poco más al hacer hover */
}

.daypaper__nav{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #eeeeee;
   margin-top: auto;
}
.ico{
  font-size: 1.05em;      /* ajusta a tu gusto */
  line-height: 1;
  display: inline-block;
  width: 1.35em;          /* mismo “cajón” para todos */
  text-align: center;
  vertical-align: -0.12em; /* sube/baja un pelín */
}
.info
{
	display:flex;
	flex-direction:column;
	gap:5px;
	margin:10px;
}
.routebox__toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}


.routebox__toggle:disabled{
  cursor: default;
  opacity: .7;
}

.routebox__chev{
  flex: 0 0 auto;
  font-size:24px;
  color:#b7642e;
}
.routebox__toggle[aria-expanded="true"] .routebox__tag::before{
  background:#c56a2a;
  transform:scale(1.2);
}
.routebox__arrow{
  color: #b7642e; 
  font-weight: 900;
  margin: 0 .15em;
  line-height: 16px;
}
.route-separator{
  width:200px;
  height:2px;
  background:#c56a2a;
  border:none;
  margin:22px auto;
  transform:translateX(-30px);
}
.metro-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}

.metro-step__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
}

.metro-step__text {
  flex: 1;
  line-height: 1.45;
}

.tube-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.1;
  margin-right: 4px;
  border-radius: 5px;

}

.tube-badge--jubilee {
  background: #7b848b;
  color: #fff;
}

.tube-badge--central {
  background: #dc241f;
  color: #fff;
}

.tube-badge--district {
  background: #007d32;
  color: #fff;
}

.tube-badge--circle {
  background: #f5a623;
  color: #111;
}

.tube-badge--bakerloo {
  background: #b36305;
  color: #fff;
}
.tube-badge--victoria {
  background: #00A3E0;
  color: #fff;
}

/* harry */
.daypaper {
  position: relative;
  overflow: hidden;
  min-height:calc(100vh - 98px);
}

.daypaper__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 30;
}

.hp-screen-fly {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: offset-distance, transform, opacity;
  pointer-events: none;
}

.hp-screen-fly--harry {
  width: 122px;
  offset-rotate: 0deg;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hp-screen-fly--snitch {
  width: 30px;
  offset-rotate: 0deg;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* Trayectoria dentro de la zona blanca */
.daypaper.hp-screen-fly-active .hp-screen-fly--harry {
  offset-path: path("M 20 760 C 55 690, 95 610, 145 520 C 190 440, 235 330, 285 210 C 315 145, 340 85, 360 20");
  animation: hpHarryPath 2.5s linear forwards;
}
.daypaper.hp-screen-fly-active .hp-screen-fly--snitch {
  offset-path: path("M 72 575 C 118 525, 160 495, 155 445 C 150 400, 215 390, 220 335 C 225 280, 285 255, 292 200 C 300 150, 350 120, 360 70 C 368 35, 388 0, 412 -52");
  animation: hpSnitchPath 2.5s linear forwards;
}
@keyframes hpHarryPath {
  0% {
    offset-distance: 0%;
    opacity: 1;
  }
  6% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity:0;
  }
}

@keyframes hpSnitchPath {
  0% {
    offset-distance: 0%;
    opacity: 1;
  }
  8% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}