/* Boing Boing — impacto festival de verano */
:root {
  --orange: #FF7A00;
  --orange-dark: #E06600;
  --pink: #FF3E7A;
  --turq: #16BFD0;
  --turq-dark: #0C8A96;
  --blue: #1B6FE8;
  --ink: #161616;
  --muted: #4A4A4A;
  --line: #E8E8E8;
  --bg: #ffffff;
  --font: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
  --radius: 28px;
  --shadow: 0 14px 36px rgba(0,0,0,0.12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.skip {
  position: absolute; left: -999px; top: 0;
  background: #000; color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Home logo */
.home-head {
  padding: 1.4rem 1rem 1.1rem;
  text-align: center;
}
.home-head img {
  width: min(220px, 58vw);
  height: auto;
  margin: 0 auto;
}

/* Subpage header */
.sub-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sub-head-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  min-height: 64px;
}
.sub-head .logo-h img { width: min(210px, 62vw); height: auto; }
.volver {
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.35rem 0.15rem;
}
.volver:hover, .volver:focus-visible { color: var(--turq-dark); outline: none; }

/* Banners (home) */
.banners {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 0.4rem;
}
.banner {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.banner picture, .banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.banner img {
  object-fit: cover;
  object-position: 78% center;
  transform: scale(1);
  transition: transform 0.7s ease;
}
.banner-hoteles img { object-position: 16% 58%; }
.page-hero.hero-hoteles img { object-position: 8% 50%; }
.page-hero.hero-fincurso img { object-position: 62% 50%; }
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.overlay-orange {
  background: linear-gradient(
    105deg,
    #FF8C00 0%,
    #FF5A28 24%,
    #FF3E7A 44%,
    rgba(255, 62, 122, 0.28) 68%,
    rgba(255, 62, 122, 0) 86%
  );
}
.overlay-blue {
  background: linear-gradient(
    105deg,
    #12D0E4 0%,
    #1AA8E8 26%,
    #1B6FE8 46%,
    rgba(27, 111, 232, 0.28) 68%,
    rgba(27, 111, 232, 0) 86%
  );
}
.banner-content {
  position: relative;
  z-index: 2;
  min-height: 320px;
  padding: 1.6rem 1.3rem 4.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.banner h2, .hero-copy h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.15rem, 8.4vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0,0,0,0.18);
  max-width: 9.2em;
}
.btn-ver {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.68rem 1.15rem 0.68rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.16);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.btn-ver svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.banner:hover img,
.banner:focus-visible img { transform: scale(1.08); }
.banner:hover, .banner:focus-visible {
  transform: translateY(-5px);
  outline: none;
}
.banner {
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.35s;
}
.banner:hover { box-shadow: 0 22px 44px rgba(0,0,0,0.18); }
.banner:hover .btn-ver,
.banner:focus-visible .btn-ver { transform: scale(1.06); }

/* Subpage hero */
.page-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  margin: 1rem auto 1.25rem;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.page-hero picture, .page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 260px;
  padding: 2rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy .sub {
  margin: 0.7rem 0 0;
  color: #fff;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
  max-width: 16em;
}

/* Photo cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin: 0 auto 1.4rem;
}
.cards-2, .cards-4 { /* same base */ }
.photo-card {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.photo-card::after {
  content: "";
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 55%, transparent 100%);
  pointer-events: none;
}
.photo-card h3 {
  position: absolute;
  left: 1rem;
  right: 0.8rem;
  bottom: 0.85rem;
  z-index: 1;
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}
.photo-card:hover img { transform: scale(1.07); }

/* Advantages */
.perks {
  list-style: none;
  margin: 0.4rem auto 0;
  padding: 1.05rem 0.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: center;
}
.perks svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--ink);
}

/* CTA band */
.cta-band {
  margin-top: 0;
  padding: 1.15rem 1rem;
}
.cta-orange { background: var(--orange); }
.cta-blue { background: var(--blue); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.cta-band p {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  letter-spacing: -0.02em;
}
.btn-solicitar {
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.btn-solicitar:hover, .btn-solicitar:focus-visible {
  transform: scale(1.07);
  outline: none;
}

/* Form */
.form-section {
  padding: 2rem 0 3.2rem;
}
.form-section h2 {
  margin: 0 0 0.3rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.form-lead {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-weight: 500;
}
.form-callback {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
}
.form { max-width: 640px; }
.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}
.req { color: var(--orange); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid #d8d8d8;
  background: #fff;
  border-radius: 10px;
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--turq);
  box-shadow: 0 0 0 3px rgba(22,191,208,0.22);
}
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.btn-enviar {
  appearance: none;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 0.3rem;
  box-shadow: 0 8px 18px rgba(255,122,0,0.28);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.2s;
}
.btn-enviar:hover, .btn-enviar:focus-visible {
  background: var(--orange-dark);
  transform: scale(1.04);
  outline: none;
}


/* Thanks */
.thanks {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.25rem 5rem;
}
.thanks-card { max-width: 440px; }
.thanks-card img { width: 180px; margin: 0 auto 1rem; }
.thanks-card h1 { font-size: 2rem; margin: 0 0 0.6rem; }
.thanks-card p { color: var(--muted); font-weight: 500; margin: 0 0 1.3rem; }
.thanks-actions { display: flex; flex-direction: column; gap: 0.7rem; align-items: center; }
.btn-ghost {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.btn-ghost:hover { color: var(--turq-dark); }

#contacto { scroll-margin-top: 84px; }

@media (min-width: 640px) {
  .home-head { padding: 1.8rem 1rem 1.4rem; }
  .home-head img { width: 240px; }
  .banner, .banner-content { min-height: 340px; }
  .page-hero, .hero-copy { min-height: 340px; }
  .cards-4 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .cards-2 { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .perks { padding: 1.3rem 0; }
  .perks li { flex-direction: row; font-size: 1rem; gap: 0.55rem; }
  .banner-content { padding: 2.2rem 2rem 2.2rem; }
  .hero-copy { padding: 2.4rem 2.1rem; }
  .btn-ver { right: 1.5rem; bottom: 1.4rem; }
  .thanks-actions { flex-direction: row; justify-content: center; }
}
@media (min-width: 900px) {
  .wrap, .sub-head-inner { width: min(1120px, calc(100% - 3rem)); }
  .banner, .banner-content { min-height: 420px; }
  .page-hero, .hero-copy { min-height: 400px; }
  .home-head img { width: 260px; }
  .form-section { padding-bottom: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner, .banner img, .photo-card img, .btn-ver, .btn-solicitar, .btn-enviar {
    transition: none !important;
  }
  .banner:hover, .banner:hover img, .photo-card:hover img,
  .banner:hover .btn-ver, .btn-solicitar:hover, .btn-enviar:hover:hover {
    transform: none !important;
  }
}

@media (max-width: 639px) {
  .btn-ver { right: 1.1rem; bottom: 1rem; }
}
