/* ============================================================
   caminitodelreytickets.eu — style.css v9
   ============================================================ */

:root {
  --cdr-accent: #e36344;
  --cdr-accent-dark: #c54a2d;
  --cdr-accent-soft: #fbeae3;
  --cdr-paper: #ffffff;
  --cdr-bg: #faf6f0;
  --cdr-sandstone: #f3eadb;
  --cdr-ink: #1f1a18;
  --cdr-ink-soft: #6e6259;
  --cdr-line: #e8dec9;
  --cdr-header-bg: #2b2422;
  --cdr-header-bg-rgba: rgba(43, 36, 34, 0.96);
  --cdr-shadow-sm: 0 1px 2px rgba(31, 26, 24, 0.05);
  --cdr-shadow: 0 4px 24px rgba(31, 26, 24, 0.08);
  --cdr-radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--cdr-ink);
  background: var(--cdr-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cdr-accent-dark); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--cdr-accent); }
strong { font-weight: 600; color: var(--cdr-ink); }

h1, h2, h3, h4 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 600;
  color: var(--cdr-ink);
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-top: 0.4em; }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.3rem); }
p { margin: 0 0 1.1em; }

/* Layout - content centered =========================================*/
html, body { overflow-x: clip; }
.cdr-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.cdr-section { padding: 4rem 0; }
.cdr-section--bg { background: var(--cdr-paper); }

/* Header — DARK background for contrast with terracotta CTA =========*/
.cdr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cdr-header-bg-rgba);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
}
.cdr-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cdr-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex: 1 1 auto;
}
.cdr-logo__text { line-height: 1.2; min-width: 0; }
.cdr-logo__name {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: white;
  display: block;
  white-space: nowrap;
}
.cdr-logo__sub {
  font-size: 0.7rem;
  color: var(--cdr-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  white-space: nowrap;
  margin-top: 2px;
}
.cdr-header__cta { flex-shrink: 0; }

/* Buttons =============================================================*/
.cdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}
.cdr-btn--primary {
  background: var(--cdr-accent);
  color: white;
  box-shadow: 0 4px 14px rgba(227, 99, 68, 0.3);
}
.cdr-btn--primary:hover {
  background: var(--cdr-accent-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 74, 45, 0.38);
}
.cdr-page a.cdr-btn--primary { color: white; }
.cdr-btn--small { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.cdr-btn--big { padding: 1.05rem 2.2rem; font-size: 1rem; }
.cdr-btn--ghost {
  background: transparent;
  color: var(--cdr-ink);
  border-color: var(--cdr-line);
}
.cdr-btn--ghost:hover {
  background: var(--cdr-bg);
  color: var(--cdr-accent-dark);
  border-color: var(--cdr-accent);
}

/* Hero — gradient red only ==========================================*/
.cdr-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  color: white;
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #a83d20 0%, #c54a2d 35%, #e36344 70%, #d85535 100%);
  overflow: hidden;
}
.cdr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 15%, rgba(255,255,255,0.14), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(0,0,0,0.28), transparent 65%);
  pointer-events: none;
}
.cdr-hero__wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.cdr-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  font-weight: 500;
  margin-bottom: 1.4rem;
}
.cdr-hero__pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}
.cdr-hero__h1 {
  color: white;
  margin-bottom: 1.3rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  line-height: 1.1;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}
.cdr-hero__h1-row1,
.cdr-hero__h1-row2 {
  display: block;
}
.cdr-hero__h1-row1 {
  font-size: 0.82em;
  opacity: 0.92;
  font-weight: 600;
  margin-bottom: 0.1em;
}
.cdr-hero__h1-row2 { font-weight: 700; }

.cdr-hero__lead {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cdr-hero__cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}
.cdr-hero__cta-hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.cdr-hero__cta-hint::before {
  content: "✓";
  background: rgba(255,255,255,0.22);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Intro ==============================================================*/
.cdr-intro {
  background: var(--cdr-paper);
  padding: 3.5rem 0;
}
.cdr-intro__lead {
  font-size: 1.05rem;
  color: var(--cdr-ink);
}
.cdr-intro__lead p { margin-bottom: 1.2em; }

.cdr-widget {
  margin: 2rem 0;
  padding: 0.5rem;
  background: var(--cdr-bg);
  border-radius: var(--cdr-radius);
  border: 1px solid var(--cdr-line);
  min-height: 80px;
}

/* Prices table ========================================================*/
.cdr-pricetable-wrap {
  margin: 1.8rem 0;
  background: var(--cdr-paper);
  border: 1px solid var(--cdr-line);
  border-radius: var(--cdr-radius);
  overflow: hidden;
  box-shadow: var(--cdr-shadow);
}
.cdr-pricetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}
.cdr-pricetable th {
  background: var(--cdr-ink);
  color: white;
  text-align: left;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cdr-pricetable th:nth-child(3) { background: var(--cdr-accent); }
.cdr-pricetable td {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--cdr-line);
}
.cdr-pricetable tr:last-child td { border-bottom: none; }
.cdr-pricetable td:first-child { font-weight: 500; }
.cdr-pricetable td:nth-child(3) {
  background: var(--cdr-accent-soft);
  font-weight: 600;
}

/* GYG card ============================================================*/
.cdr-gyg {
  margin: 2rem 0 0.5rem;
  background: var(--cdr-paper);
  border: 1px solid var(--cdr-line);
  border-radius: var(--cdr-radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--cdr-shadow);
  position: relative;
  overflow: hidden;
}
.cdr-gyg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cdr-accent), var(--cdr-accent-dark));
}
.cdr-gyg__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.cdr-gyg__title { font-size: 1.3rem; margin: 0; }
.cdr-gyg__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--cdr-accent-soft);
  color: var(--cdr-accent-dark);
  font-size: 0.74rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}
.cdr-gyg__badge::before { content: "★"; }
.cdr-gyg__rating {
  color: var(--cdr-ink-soft);
  font-size: 0.9rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--cdr-line);
}

.cdr-bullets {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.cdr-bullets li {
  padding: 0.45rem 0 0.45rem 1.7rem;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cdr-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 18px;
  height: 18px;
  background: var(--cdr-accent);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}
.cdr-bullets li strong { display: block; font-weight: 600; }

/* Tips ================================================================*/
.cdr-tips {
  list-style: none;
  counter-reset: cdr-tip;
  padding: 0;
  margin: 1.5rem 0;
}
.cdr-tips li {
  counter-increment: cdr-tip;
  background: var(--cdr-paper);
  border: 1px solid var(--cdr-line);
  border-radius: var(--cdr-radius);
  padding: 1.1rem 1.4rem 1.1rem 3.6rem;
  margin-bottom: 0.7rem;
  position: relative;
  box-shadow: var(--cdr-shadow-sm);
}
.cdr-tips li::before {
  content: counter(cdr-tip);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--cdr-accent-soft);
  color: var(--cdr-accent-dark);
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* What to see =========================================================*/
.cdr-what {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}
.cdr-what li {
  background: var(--cdr-paper);
  border: 1px solid var(--cdr-line);
  border-radius: var(--cdr-radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--cdr-shadow-sm);
}
.cdr-what li::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: var(--cdr-accent);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}
.cdr-what li strong {
  display: block;
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Practical facts =====================================================*/
.cdr-facts {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  background: var(--cdr-paper);
  border: 1px solid var(--cdr-line);
  border-radius: var(--cdr-radius);
  overflow: hidden;
  box-shadow: var(--cdr-shadow-sm);
}
.cdr-facts td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--cdr-line);
  font-size: 0.94rem;
}
.cdr-facts tr:last-child td { border-bottom: none; }
.cdr-facts td:first-child {
  font-weight: 600;
  color: var(--cdr-ink-soft);
  width: 38%;
  background: var(--cdr-sandstone);
  font-size: 0.88rem;
}

/* History photo ========================================================*/
.cdr-photo {
  margin: 2.2rem 0 0.5rem;
  border-radius: var(--cdr-radius);
  overflow: hidden;
  box-shadow: var(--cdr-shadow);
}
.cdr-photo img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

/* Reviews ==============================================================*/
.cdr-reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}
.cdr-review {
  background: var(--cdr-paper);
  border: 1px solid var(--cdr-line);
  border-radius: var(--cdr-radius);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--cdr-shadow-sm);
}
.cdr-review__quote {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
  color: var(--cdr-ink);
}
.cdr-review__by {
  font-size: 0.82rem;
  color: var(--cdr-ink-soft);
  font-weight: 600;
  margin: 0;
}
@media (max-width: 720px) {
  .cdr-reviews { grid-template-columns: 1fr; }
  .cdr-photo img { max-height: 260px; }
}

/* Footer ==============================================================*/
.cdr-footer {
  background: var(--cdr-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.8rem;
  margin-top: 3rem;
}
.cdr-footer__top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}
.cdr-footer h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
  font-family: 'Lora', serif;
}
.cdr-footer p {
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
  line-height: 1.6;
}
.cdr-footer a { color: rgba(255, 255, 255, 0.78); }
.cdr-footer a:hover { color: var(--cdr-accent); }

/* Language switcher — dropdown (details/summary) =====================*/
.cdr-langs {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 200px;
}
.cdr-langs__current {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem 0.6rem 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-size: 0.92rem;
  font-weight: 500;
  user-select: none;
  width: 100%;
  transition: background 0.15s, border-color 0.15s;
}
.cdr-langs__current::-webkit-details-marker { display: none; }
.cdr-langs__current:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.cdr-langs[open] .cdr-langs__current {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.cdr-langs__flag { font-size: 1.1rem; line-height: 1; }
.cdr-langs__name { line-height: 1; flex: 1; }
.cdr-langs__caret {
  margin-left: auto;
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.18s ease;
}
.cdr-langs[open] .cdr-langs__caret { transform: rotate(180deg); }

.cdr-langs__menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #38302d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.35rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
}
.cdr-langs__option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
}
.cdr-langs__option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.cdr-footer__bottom {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 1.4rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}
.cdr-footer__bottom p { margin-bottom: 0.35rem; }

/* 404 =================================================================*/
.cdr-404 {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse at top, rgba(227, 99, 68, 0.08), transparent 60%),
    var(--cdr-bg);
}
.cdr-404__inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.cdr-404__code {
  font-family: 'Lora', serif;
  font-size: clamp(5rem, 14vw, 8rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--cdr-accent), var(--cdr-accent-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.5rem;
}
.cdr-404 h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.8rem;
}
.cdr-404 p {
  max-width: 500px;
  margin: 0 auto 2rem;
  color: var(--cdr-ink-soft);
  font-size: 1.05rem;
}
.cdr-404__actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.cdr-404__widget {
  max-width: 720px;
  margin: 0 auto;
}

/* Mobile ==============================================================*/
@media (max-width: 880px) {
  .cdr-bullets { grid-template-columns: 1fr; }
  .cdr-what { grid-template-columns: 1fr; gap: 0.8rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .cdr-section { padding: 2.8rem 0; }
  .cdr-hero { min-height: 420px; padding: 3rem 0 2.5rem; }

  /* Header — 50/50 layout */
  .cdr-header__inner { padding: 0.7rem 1rem; gap: 0.7rem; }
  .cdr-logo { flex: 1; min-width: 0; max-width: 50%; }
  .cdr-logo__name { font-size: 0.92rem; }
  .cdr-logo__sub { font-size: 0.62rem; }
  .cdr-header__cta {
    flex: 1;
    max-width: 50%;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }

  /* Mobile CTA buttons full width */
  .cdr-btn { width: 100%; }
  .cdr-hero__cta-row { flex-direction: column; align-items: stretch; }
  .cdr-hero__cta-hint { justify-content: center; }
  .cdr-404__actions .cdr-btn { width: auto; }

  .cdr-footer__top { grid-template-columns: 1fr; gap: 1.6rem; }
  .cdr-langs { max-width: 100%; }

  /* Mobile price table: stacked */
  .cdr-pricetable thead { display: none; }
  .cdr-pricetable tr {
    display: block;
    border-bottom: 1px solid var(--cdr-line);
    padding: 0.5rem 0;
  }
  .cdr-pricetable tr:last-child { border-bottom: none; }
  .cdr-pricetable td {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    border-bottom: none;
  }
  .cdr-pricetable td:first-child {
    background: var(--cdr-sandstone);
    font-weight: 600;
  }
  .cdr-pricetable td:nth-child(2)::before { content: "Official: "; color: var(--cdr-ink-soft); }
  .cdr-pricetable td:nth-child(3)::before { content: "GYG: "; color: var(--cdr-accent-dark); font-weight: 600; }
  .cdr-pricetable td:nth-child(3) { background: var(--cdr-accent-soft); }

  .cdr-facts td { font-size: 0.9rem; padding: 0.65rem 0.85rem; }
  .cdr-facts td:first-child { width: 42%; font-size: 0.83rem; }

  .cdr-tips li { padding: 0.95rem 1rem 0.95rem 3.1rem; }
  .cdr-tips li::before {
    left: 0.85rem; top: 0.95rem;
    width: 1.6rem; height: 1.6rem;
    font-size: 0.88rem;
  }

  .cdr-gyg { padding: 1.5rem 1.3rem; }
  .cdr-gyg__title { font-size: 1.15rem; }
}

@media (max-width: 480px) {
  .cdr-hero__h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .cdr-logo__sub { display: none; }
}
