/* BASE COMÚN · estilo de donquixotetours.com (B18, Vicente 15/11 22:57: «muy fiel a la web», mismo pie y avisos legales).
   Medido en la web: Manrope 15,5 px; títulos PT Serif sin negrita; botón píldora oscura #1C1E1F con borde blanco 2,67 px;
   etiqueta «EXPLORA & DESCUBRE» (Manrope 12,4 px negrita, espaciado 2,48 px, fondo #E5E7EF); turquesa #4CAFA9; enlaces #024059;
   cabecera blanca con logo y menú burdeos #762748; pie #1C1E1F con texto #E5E7EF. Clases con «web-» para no chocar con el libro. */
@font-face { font-family: "Manrope"; src: url("fuentes/Manrope.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fuentes/PTSerif-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("fuentes/IMFellEnglish.woff") format("woff"); font-weight: 400; font-display: swap; }

:root { --w-grafito: #1C1E1F; --w-texto: #17181B; --w-suave: #3C3F45; --w-burdeos: #762748; --w-turquesa: #4CAFA9;
  --w-petroleo: #024059; --w-gris: #E5E7EF; --w-gris2: #D4D8E3; --w-fondo2: #EEF0F5; --w-blanco: #FFFFFF; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Manrope, system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--w-texto); background: var(--w-blanco);
  min-height: 100vh; display: flex; flex-direction: column; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
a { color: var(--w-petroleo); }

/* Cabecera */
.web-cab { position: sticky; top: 0; z-index: 10; background: var(--w-blanco); box-shadow: 0 1px 0 var(--w-gris);
  display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 14px; }
.web-logo { height: 38px; width: auto; display: block; }
.web-acciones { display: flex; align-items: center; gap: 2px; }
.web-icono { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--w-texto); }
.web-menu { position: relative; }
.web-menu summary { list-style: none; min-width: 44px; min-height: 44px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 5px; cursor: pointer; }
.web-menu summary::-webkit-details-marker { display: none; }
.web-menu summary span { width: 26px; height: 3px; border-radius: 2px; background: var(--w-burdeos); }
.web-menu nav { position: absolute; right: 0; top: 48px; background: var(--w-blanco); border-radius: 12px; min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15), 0 0 0 1px var(--w-gris); display: flex; flex-direction: column; padding: 6px; }
.web-menu nav a { padding: 12px 14px; text-decoration: none; color: var(--w-texto); border-radius: 8px; font-weight: 600; }
.web-menu nav a:hover, .web-menu nav a:focus-visible { background: var(--w-fondo2); }
.web-volver { display: block; padding: 10px 16px 0; font-weight: 600; text-decoration: none; color: var(--w-petroleo); }

.web-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 14px; }
.web-main > h1 { font-family: "PT Serif", Georgia, serif; font-weight: 400; font-size: 28px; line-height: 1.25; margin: 0; }
.web-main > h2 { font-family: "PT Serif", Georgia, serif; font-weight: 400; font-size: 20px; margin: 8px 0 0; }
.web-badge { align-self: flex-start; font-size:13px; font-weight: 700; background: var(--w-gris);
  border-radius: 2px; padding: 5px 10px; color: var(--w-texto); }

/* Botón de la web */
.web-boton { font-family: inherit; font-size: 16px; font-weight: 500; color: var(--w-blanco); background: var(--w-grafito);
  border: 2.67px solid var(--w-blanco); box-shadow: 0 0 0 1px var(--w-grafito); border-radius: 29px; min-height: 52px;
  padding: 10px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer; }
.web-boton:focus-visible, .web-puerta:focus-visible, .web-grupo:focus-visible, .web-opcion:focus-visible { outline: 3px solid var(--w-turquesa); outline-offset: 2px; }

/* Inicio */
.web-inicio .web-main { padding: 0 0 28px; max-width: 640px; }
.web-hero { position: relative; height: 330px; overflow: hidden; }
.web-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-hero-dentro { position: absolute; inset: 0; background: linear-gradient(rgba(23,24,27,.05), rgba(23,24,27,.55));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 20px; text-align: center; }
.web-hero-dentro .web-badge { align-self: center; }
.web-hero h1 { margin: 0; font-family: "PT Serif", Georgia, serif; font-weight: 400; font-size: 42px; line-height: 1.1; color: #fff; }
.web-puertas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 12px 0; }
.web-puerta { position: relative; height: 200px; border-radius: 12px; overflow: hidden; display: block; text-decoration: none; }
.web-puerta img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-pildora { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: "PT Serif", Georgia, serif;
  font-size: 20px; color: #fff; background: var(--w-grafito); border-radius: 29px; padding: 8px 16px; white-space: nowrap; }
.web-insignia { position: absolute; left: 10px; bottom: 10px; font-size:13px; font-weight: 700; letter-spacing: 1px; color: var(--w-texto);
  background: var(--w-gris); border-radius: 2px; padding: 3px 7px; }
.web-grupo { margin: 0 12px; border-radius: 12px; background: var(--w-grafito); color: var(--w-gris); text-decoration: none;
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 64px; }
.web-grupo > span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.web-grupo-titulo { font-family: "PT Serif", Georgia, serif; font-size: 20px; color: #fff; }
.web-grupo svg { color: #fff; flex: none; }
.web-codigo { margin: 4px 12px 0; text-align: center; }
.web-codigo a { color: #17657A; font-weight: 600; text-decoration: underline; display: inline-block; min-height: 24px; }   /* accesibilidad 20/11: contraste 4,5 y 24 px */

/* Opciones, formularios, llaves */
.web-opcion { border-radius: 12px; box-shadow: 0 0 0 1px var(--w-gris2); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto;
  gap: 4px 10px; text-decoration: none; color: var(--w-texto); align-items: center; }
.web-opcion b { font-family: "PT Serif", Georgia, serif; font-weight: 400; font-size: 20px; grid-column: 1; }
.web-opcion span { font-size: 14px; color: var(--w-suave); grid-column: 1; }
.web-opcion svg { grid-column: 2; grid-row: 1 / span 2; }
.web-form { display: flex; flex-direction: column; gap: 12px; }
.web-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.web-form input { font: inherit; font-weight: 400; font-size: 16px; min-height: 50px; border: 1px solid #B4BDCE; border-radius: 12px; padding: 0 14px; }
.web-nota { font-size: 14px; color: var(--w-suave); margin: 0; }
.web-ok { color: #1E6B45; background: #E3F3EA; border-radius: 10px; padding: 10px 12px; margin: 0; font-weight: 600; }
.web-error { color: var(--w-burdeos); background: #F3E6EB; border-radius: 10px; padding: 10px 12px; margin: 0; font-weight: 600; }
.web-llaves { list-style: none; margin: 0; padding: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--w-gris2); overflow: hidden; }
.web-llaves li + li { border-top: 1px solid var(--w-gris); }
.web-llaves a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; text-decoration: none; color: var(--w-texto); }
.web-llaves a > span { display: flex; flex-direction: column; }
.web-llaves b { font-family: "PT Serif", Georgia, serif; font-weight: 400; font-size: 16px; }
.web-llaves small { color: var(--w-suave); }
.web-chip { font-size:13px; font-weight: 700; letter-spacing: .06em; border-radius: 29px; padding: 5px 10px; background: var(--w-gris); color: var(--w-petroleo); white-space: nowrap; }
.web-chip-ruta { background: #F3E6EB; color: var(--w-burdeos); }
.web-lista { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.web-acordeon { border-radius: 6px; border-left: 3px solid #4F849C; box-shadow: 0 0 0 1px var(--w-gris); display: flex; flex-direction: column; }
.web-acordeon-cab { padding: 12px 16px; display: flex; justify-content: space-between; font-weight: 600; border-bottom: 1px solid var(--w-gris); }
.web-acordeon-cab span { color: var(--w-burdeos); font-size: 24px; line-height: 1; }
.web-acordeon a { color: var(--w-burdeos); text-decoration: none; padding: 10px 16px; }

/* Pie: igual que la web */
.web-pie { background: var(--w-grafito); color: var(--w-gris); font-size: 14px; margin-top: 18px; }
.web-pie-ola { height: 26px; background: var(--w-blanco); border-bottom-left-radius: 50% 100%; border-bottom-right-radius: 50% 100%; }
.libro .web-pie-ola { background: #f3ead8; }
.web-pie-dentro { padding: 18px 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.web-pie-logo { height: 38px; width: auto; margin-bottom: 6px; }
.web-pie a { color: var(--w-gris); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.web-horario { font-size: 13px; color: var(--w-gris2); }
.web-pie .web-legal-caja { margin-top: 8px; width: 100%; max-width: 480px; background: var(--w-blanco); color: var(--w-texto); border-left: 3px solid #4F849C;
  border-radius: 6px; padding: 14px 18px; justify-content: space-between; min-height: 50px; }
.web-legal-caja span { color: var(--w-burdeos); font-size: 26px; line-height: 1; }
.web-registros { font-size:13px; line-height: 1.6; margin: 12px 0 0; color: var(--w-gris); }
.web-idiomas { margin: 12px 0 0; font-size: 14px; }
.web-idiomas a { color: inherit; display: inline-flex; align-items: center; padding: 6px 4px; min-height: 44px; min-width: 44px; justify-content: center; }
.web-idiomas a[aria-current] { font-weight: 700; text-decoration: underline; }

@media (min-width: 900px) {
  .web-inicio .web-main { max-width: 980px; }
  .web-hero { border-radius: 0 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Co-marca de agencias (agencias.py): logo de la agencia delante y «con Don Quixote Tours» al lado */
.web-comarca { display: flex; align-items: center; gap: 8px; text-decoration: none; min-width: 0; }
.web-comarca .web-logo { max-width: 150px; object-fit: contain; }
.web-logo-texto { font-weight: 700; color: var(--w-texto); font-size: 16px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-con { display: inline-flex; align-items: center; gap: 4px; font-size:13px; color: var(--w-suave); white-space: nowrap; }
.web-con img { height: 20px; width: auto; }
.web-pie-agencia { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid #3C3F45; width: 100%; max-width: 480px; }
.web-pie-agencia span { font-size: 13px; color: #C9CCD6; }
/* Marca blanca (solo la agencia delante; DQXT como organizador) */
.web-blanca { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.web-blanca .web-logo { max-width: 180px; object-fit: contain; }
.web-pasaporte-dqxt { font-size: 13px; color: #5A5D66; margin: 0 0 8px; text-align: center; }
.web-viaje { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 14px; border-radius: 12px; box-shadow: 0 0 0 1px var(--w-gris2); }
.web-viaje dt { font-weight: 700; }
.web-viaje dd { margin: 0; }
.web-boton-sec { font-family: inherit; font-size: 16px; color: var(--w-grafito); background: transparent; border: 2px solid var(--w-grafito);
  border-radius: 29px; min-height: 48px; padding: 8px 18px; cursor: pointer; }
.web-boton-sec:focus-visible { outline: 3px solid var(--w-turquesa); outline-offset: 2px; }

/* Norma de vía E3 (C2, 22/11): enlaces de cabecera, pie y vuelta de al menos 44 px de alto (fáciles de tocar);
   campos a 16 px (el iPhone no hace zoom al escribir). */
header a, nav a, footer a, .web-volver { display: inline-flex; align-items: center; min-height: 44px; }
nav a { min-width: 44px; justify-content: center; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px; }
small { font-size: max(13px, .85em); }
