:root {
  --coral: #ef6f4f;
  --coral-dark: #d95636;
  --coral-soft: #f6cbc1;
  --beige: #fff3eb;
  --cream: #fffaf5;
  --sand: #f8e4d8;
  --aqua: #62ad9f;
  --ink: #332b27;
  --muted: #776962;
  --line: #ead8cd;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(92, 49, 33, 0.14);
  --radius: 28px;
  --max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 20;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: white;
  border-bottom: 1px solid rgba(234, 216, 205, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 112px;
}

.brand-logo {
  width: clamp(106px, 11vw, 148px);
  height: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav a {
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-weight: 800;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--coral-dark);
  background: var(--beige);
  outline: none;
}

.site-nav .nav-cta {
  color: var(--white);
  background: var(--coral);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: var(--white);
  background: var(--coral-dark);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.section-pad {
  padding: clamp(4rem, 8vw, 6rem) clamp(0.75rem, 2vw, 2rem);
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
}

.section-head h2,
.hero h1 {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.split-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.75fr);
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 3rem;
  color: var(--coral-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 1.2rem;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.82fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  min-height: calc(100svh - 80px);
  padding-right: clamp(1.25rem, 5vw, 5rem);
  padding-left: clamp(1.25rem, 5vw, 5rem);
  overflow: hidden;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 6.7rem);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(0.8rem, 1.8vw, 1.4rem);
  align-items: stretch;
}

.hero-title-more {
  display: flex;
  align-items: center;
  color: var(--coral);
  font-size: clamp(5.9rem, 13vw, 12.4rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title-lines {
  display: grid;
  align-content: center;
  gap: 0.08em;
  width: 100%;
}

.hero-title-lines span {
  display: block;
  width: 100%;
  color: var(--ink);
  font-size: clamp(1.9rem, 4.55vw, 4.1rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  font-weight: 900;
  border: 0;
  border-radius: 999px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-primary {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 18px 32px rgba(239, 111, 79, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--coral-dark);
}

.btn-secondary {
  color: var(--coral-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.quick-facts span {
  padding: 0.5rem 0.8rem;
  color: var(--coral-dark);
  font-weight: 900;
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero-bg .bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.75;
}

.bubble-a {
  width: min(42vw, 620px);
  height: min(42vw, 620px);
  top: 8%;
  right: 5%;
  background: var(--coral);
}

.bubble-b {
  width: min(28vw, 390px);
  height: min(28vw, 390px);
  right: -8%;
  bottom: 8%;
  background: var(--coral-soft);
}

.bubble-c {
  width: 120px;
  height: 120px;
  right: 35%;
  top: 10%;
  background: var(--aqua);
  opacity: 0.18;
}

.hero-visual {
  display: grid;
  min-height: 600px;
  place-items: center;
}

.hero-board {
  position: relative;
  width: min(100%, 520px);
  min-height: 590px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.24) 0 12%, transparent 12.5%),
    radial-gradient(circle at 12% 78%, rgba(255, 255, 255, 0.25) 0 20%, transparent 20.5%),
    linear-gradient(155deg, var(--coral-dark) 0 45%, var(--coral-soft) 45% 100%);
  border: 12px solid var(--white);
  border-radius: 52px 52px 120px 52px;
  box-shadow: var(--shadow);
}

.hero-board::before,
.hero-board::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.hero-board::before {
  width: 310px;
  height: 310px;
  right: -76px;
  top: -48px;
  background: var(--coral);
  border: 12px solid var(--white);
}

.hero-board::after {
  width: 250px;
  height: 250px;
  left: -82px;
  bottom: -58px;
  background: var(--cream);
  border: 12px solid var(--white);
}

.board-copy {
  position: relative;
  z-index: 1;
  width: min(330px, 72%);
  padding: 2rem;
  color: var(--white);
}

.board-copy p {
  margin: 0;
  color: #d9f1eb;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  font-weight: 900;
  line-height: 1;
}

.board-copy strong {
  display: block;
  margin: 0.8rem 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.22;
}

.round-message {
  position: absolute;
  z-index: 1;
  top: 58px;
  right: 28px;
  display: grid;
  width: min(270px, 52vw);
  height: min(270px, 52vw);
  place-items: center;
  padding: 1.5rem;
  color: var(--white);
  text-align: center;
  background: var(--coral);
  border: 10px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 22px 42px rgba(92, 49, 33, 0.16);
}

.round-message span,
.round-message strong,
.round-message small {
  display: block;
  width: 100%;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-weight: 900;
}

.round-message span {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.round-message strong {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
}

.round-message small {
  font-size: clamp(0.85rem, 2vw, 1rem);
  text-transform: uppercase;
}

.course-chip,
.venue-chip {
  position: absolute;
  z-index: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(234, 216, 205, 0.9);
  box-shadow: 0 18px 40px rgba(92, 49, 33, 0.12);
  backdrop-filter: blur(12px);
}

.course-chip {
  right: 28px;
  bottom: 52px;
  width: min(330px, calc(100% - 56px));
  padding: 1.25rem;
  border-radius: 28px;
}

.venue-chip {
  left: 28px;
  bottom: 168px;
  max-width: 220px;
  padding: 0.9rem 1rem;
  border-radius: 999px;
}

.course-chip span,
.venue-chip span {
  display: block;
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-chip strong,
.venue-chip strong {
  display: block;
  font-family: "Nunito Sans", system-ui, sans-serif;
  line-height: 1.1;
}

.course-chip strong {
  margin: 0.3rem 0;
  color: var(--coral-dark);
  font-size: 1.35rem;
}

.course-chip small {
  color: var(--muted);
  font-weight: 800;
}

.section-separator {
  position: relative;
  height: clamp(104px, 13vw, 174px);
  margin: clamp(-36px, -4vw, -18px) 0 -2px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0 42%, var(--beige) 43% 100%);
}

.section-separator::before {
  position: absolute;
  inset: 18px -8% -2px;
  height: 150px;
  content: "";
  background: var(--beige);
  border-top: 1px solid rgba(239, 111, 79, 0.18);
  border-radius: 75% 75% 0 0 / 100% 100% 0 0;
}

.project-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--beige), var(--cream) 82%);
}

.project-section > :not(.project-bubbles) {
  position: relative;
  z-index: 1;
}

.project-bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.project-bubble {
  position: absolute;
  border-radius: 50%;
}

.project-bubble-a {
  left: clamp(0.8rem, 4vw, 4rem);
  right: auto;
  top: clamp(2.2rem, 5vw, 4.6rem);
  width: clamp(130px, 17vw, 240px);
  height: clamp(130px, 17vw, 240px);
  background: rgba(205, 78, 48, 0.1);
  border: 1px solid rgba(205, 78, 48, 0.1);
}

.project-bubble-b {
  left: clamp(11rem, 22vw, 20rem);
  right: auto;
  top: clamp(1.4rem, 3vw, 2rem);
  width: clamp(56px, 7vw, 96px);
  height: clamp(56px, 7vw, 96px);
  background: rgba(244, 153, 119, 0.2);
  border: 1px solid rgba(244, 153, 119, 0.14);
}

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.project-copy {
  max-width: 760px;
}

.project-photo-cluster {
  position: relative;
  width: min(100%, 500px);
  min-height: clamp(390px, 40vw, 520px);
  margin: 0;
  justify-self: end;
}

.project-photo-cluster::before {
  position: absolute;
  right: -20%;
  bottom: 10%;
  z-index: -1;
  width: 58%;
  aspect-ratio: 1;
  content: "";
  background: rgba(239, 111, 79, 0.12);
  border-radius: 50%;
}

.itinerary-photo {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: clamp(8px, 1.2vw, 14px) solid var(--white);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(92, 49, 33, 0.13);
}

.itinerary-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-sociosanitario {
  right: -30%;
  top: 2%;
  width: clamp(230px, 25vw, 340px);
  height: clamp(230px, 25vw, 340px);
}

.photo-cocina {
  left: 10%;
  bottom: 10%;
  width: clamp(190px, 20vw, 275px);
  height: clamp(190px, 20vw, 275px);
}

.photo-tvonline {
  left: -40%;
  top: -10%;
  width: clamp(126px, 14vw, 250px);
  height: clamp(126px, 14vw, 250px);
}

.photo-sociosanitario img {
  object-position: 48% 44%;
}

.photo-cocina img {
  object-position: 54% 52%;
}

.photo-tvonline img {
  object-position: 50% 48%;
}

.project-grid,
.course-grid,
.family-grid,
.steps,
.news-grid,
.testimonial-grid,
.contact-layout,
.footer-top {
  max-width: var(--max);
  margin: 0 auto;
}

.project-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
}

.feature-panel,
.stats-grid article,
.course-card,
.steps article,
.news-card,
.testimonial-grid figure,
.contact-form,
.venue-list article,
.course-modal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(92, 49, 33, 0.08);
}

.feature-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.feature-panel h3,
.course-card h3,
.family-card h3,
.steps h3,
.news-card h3,
.venue-list h3 {
  margin: 0 0 0.6rem;
  font-family: "Nunito Sans", system-ui, sans-serif;
  line-height: 1.15;
}

.text-link,
.news-card a {
  color: var(--coral-dark);
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stats-grid article {
  min-height: 150px;
  padding: 1.4rem;
}

.stats-grid strong {
  display: block;
  color: var(--coral-dark);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.stat-number {
  display: inline-block;
  min-width: 2ch;
  color: var(--coral-dark) !important;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 800;
}

.warm-band,
.news-section {
  background: linear-gradient(180deg, var(--beige), var(--cream));
}

.filters {
  display: flex;
  max-width: var(--max);
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 auto 1.5rem;
}

.filter {
  padding: 0.7rem 1rem;
  color: var(--coral-dark);
  font-weight: 900;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter.is-active {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
}

.course-carousel {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
}

.course-track {
  display: grid;
  grid-auto-columns: calc((100% - 3rem) / 4);
  grid-auto-flow: column;
  gap: 1rem;
  padding: 0.25rem 0.25rem 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.course-track::-webkit-scrollbar {
  display: none;
}

.course-card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  scroll-snap-align: start;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.course-card.is-hidden {
  display: none;
}

.course-card-head {
  display: flex;
  min-height: 150px;
  align-items: flex-end;
  padding: 1.2rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.55) 0 44px, transparent 45px),
    linear-gradient(135deg, #ffecad, #fff9df);
}

.level-card-2 .course-card-head {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.56) 0 44px, transparent 45px),
    linear-gradient(135deg, #ffe1ca, #fff7ef);
}

.level-card-3 .course-card-head {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.58) 0 44px, transparent 45px),
    linear-gradient(135deg, #dfeeff, #f6fbff);
}

.course-card-head h3 {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: clamp(1.08rem, 1.4vw, 1.35rem);
  line-height: 1.15;
}

.course-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.status,
.level-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 900;
  border-radius: 999px;
}

.status.open {
  color: #115c42;
  background: #bfead9;
}

.status.soon {
  color: #6d4d10;
  background: #ffe3a8;
}

.status.progress {
  color: #2c5d7b;
  background: #d7eef9;
}

.status.closed {
  color: #62564d;
  background: #eaded6;
}

.level-tag.level-1 {
  color: #7a5a10;
  background: #ffecad;
}

.level-tag.level-2 {
  color: #9a4d1f;
  background: #ffe1ca;
}

.level-tag.level-3 {
  color: #315c8d;
  background: #dfeeff;
}

.course-body dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 1rem 0;
}

.course-body dt,
.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-body dd,
.detail-list dd {
  margin: 0;
  font-weight: 900;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
  color: var(--coral-dark);
  font-weight: 900;
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.btn-card:hover,
.btn-card:focus-visible {
  color: var(--white);
  background: var(--coral);
  outline: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--coral-dark);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 14px 35px rgba(92, 49, 33, 0.14);
  transform: translateY(-50%);
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  color: var(--white);
  background: var(--coral);
  outline: none;
}

.carousel-arrow-prev {
  left: -1.5rem;
}

.carousel-arrow-next {
  right: -1.5rem;
}

.family-section {
  position: relative;
  overflow: hidden;
  padding-right: clamp(0.75rem, 2vw, 2rem);
  padding-left: clamp(0.75rem, 2vw, 2rem);
  background:
    radial-gradient(circle at 8% 18%, rgba(239, 111, 79, 0.2) 0 110px, transparent 112px),
    radial-gradient(circle at 92% 8%, rgba(98, 173, 159, 0.22) 0 150px, transparent 152px),
    linear-gradient(135deg, #fff8de 0%, #fff3eb 46%, #e7f6f2 100%);
}

.family-section::before {
  position: absolute;
  right: -110px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  content: "";
  background: rgba(217, 86, 54, 0.14);
  border: 18px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
}

.family-section .section-head,
.family-grid {
  position: relative;
  z-index: 1;
}

.family-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.45rem;
  row-gap: 1.55rem;
}

.family-card {
  --accent: var(--coral);
  position: relative;
  display: flex;
  flex: 0 1 calc((100% - 5.8rem) / 5);
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  overflow: hidden;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255, 250, 245, 0.72), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(92, 49, 33, 0.08);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.family-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  content: "";
  background: var(--accent);
}

.family-card::after {
  position: absolute;
  right: -42px;
  top: -42px;
  width: 104px;
  height: 104px;
  content: "";
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
}

.family-card:nth-child(2) {
  --accent: #a36854;
}

.family-card:nth-child(3) {
  --accent: #d95636;
}

.family-card:nth-child(4) {
  --accent: #ef8f4f;
}

.family-card:nth-child(5) {
  --accent: #62ad9f;
}

.family-card:nth-child(6) {
  --accent: #d97d86;
}

.family-card:nth-child(7) {
  --accent: #7bbf86;
}

.family-card:nth-child(8) {
  --accent: #5f86ba;
}

.family-card:nth-child(9) {
  --accent: #7d6ec8;
}

.family-card:hover,
.family-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  outline: none;
}

.family-code {
  display: inline-grid;
  width: fit-content;
  min-width: 50px;
  min-height: 32px;
  place-items: center;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.62rem;
  color: var(--white);
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--accent);
  border-radius: 999px;
}

.family-card h3 {
  position: relative;
  z-index: 1;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.family-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.family-card p,
.steps p,
.news-card p,
.testimonial-grid figcaption,
.venue-list p {
  color: var(--muted);
}

.steps-section {
  background: var(--coral);
  color: var(--white);
}

.steps-section .eyebrow,
.steps-section .section-head p {
  color: #ffe8df;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps article {
  padding: 1.4rem;
  color: var(--ink);
}

.steps span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--white);
  font-weight: 900;
  background: var(--coral);
  border-radius: 50%;
}

.steps-action {
  display: flex;
  max-width: var(--max);
  justify-content: center;
  margin: clamp(2.1rem, 4vw, 3.2rem) auto 0;
}

.steps-main-cta {
  display: inline-flex;
  min-width: min(100%, 320px);
  min-height: 66px;
  align-items: center;
  justify-content: center;
  padding: 1.08rem 2.2rem;
  color: var(--white);
  font-size: 1.16rem;
  font-weight: 900;
  background: var(--coral-dark);
  border: 2px solid rgba(255, 250, 245, 0.72);
  border-radius: 999px;
  box-shadow: 0 20px 42px rgba(217, 86, 54, 0.28);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.steps-main-cta:hover,
.steps-main-cta:focus-visible {
  color: var(--white);
  background: var(--coral);
  outline: none;
  transform: translateY(-2px);
}

.news-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.news-card,
.testimonial-grid figure {
  margin: 0;
  padding: 1.4rem;
}

.news-card span {
  color: var(--aqua);
  font-weight: 900;
  text-transform: uppercase;
}

.testimonial-grid blockquote {
  margin: 0 0 1rem;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
}

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(51, 43, 39, 0.78), rgba(217, 86, 54, 0.72)),
    url("assets/93224.jpg") center / cover fixed;
}

.contact-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 250, 245, 0.26) 0 56px, transparent 57px),
    radial-gradient(circle at 86% 16%, rgba(246, 203, 193, 0.28) 0 118px, transparent 119px),
    radial-gradient(circle at 78% 78%, rgba(255, 250, 245, 0.18) 0 78px, transparent 79px);
  opacity: 0.95;
}

.contact-layout {
  position: relative;
  z-index: 1;
}

.contact-copy {
  max-width: 560px;
}

.contact-section .eyebrow,
.contact-copy p {
  color: rgba(255, 250, 245, 0.9);
}

.contact-copy > p {
  font-size: 1.08rem;
}

.contact-section .venue-list article,
.contact-form {
  background: rgba(255, 250, 245, 0.94);
  border: 1px solid rgba(255, 250, 245, 0.72);
  box-shadow: 0 24px 70px rgba(51, 43, 39, 0.22);
  backdrop-filter: blur(14px);
}

.contact-section .venue-list h3 {
  color: var(--ink);
}

.contact-section .venue-list p {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-section h2 {
  margin: 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
}

.venue-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.venue-list article {
  padding: 1rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 900;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--coral);
  outline: 3px solid rgba(239, 111, 79, 0.18);
}

.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: start;
  font-size: 0.92rem;
}

.check input {
  width: auto;
  margin-top: 0.25rem;
}

.site-footer {
  padding: 2rem clamp(1rem, 4vw, 3rem);
  color: var(--white);
  background: var(--ink);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-top strong {
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: 1.6rem;
}

.footer-top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-top a {
  color: #ffe4dc;
  font-weight: 800;
}

.logo-strip {
  display: flex;
  max-width: var(--max);
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.logo-strip span {
  padding: 0.5rem 0.8rem;
  color: var(--ink);
  font-weight: 900;
  background: var(--white);
  border-radius: 999px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(51, 43, 39, 0.62);
}

.course-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: min(88vh, 940px);
  overflow: auto;
}

.modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 1rem;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
}

.modal-hero {
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white);
  background: radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.22) 0 14%, transparent 15%), var(--coral);
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-hero h2 {
  max-width: 720px;
  margin: 1rem 0;
  font-family: "Nunito Sans", system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.modal-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.modal-content section {
  min-width: 0;
}

.modal-content h3 {
  margin: 0 0 0.6rem;
  font-family: "Nunito Sans", system-ui, sans-serif;
}

.modal-content p,
.modal-content ul {
  margin-top: 0;
  color: var(--muted);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.gallery span {
  min-height: 90px;
  background: linear-gradient(135deg, var(--coral-soft), var(--beige));
  border-radius: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
  }

  [data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .project-grid,
  .project-intro,
  .split-head,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    text-align: left;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-board {
    width: min(100%, 680px);
    min-height: 520px;
  }

  .course-grid,
  .steps,
  .news-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .family-grid {
    justify-content: center;
  }

  .family-card {
    flex-basis: calc((100% - 2.9rem) / 3);
  }

  .course-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }

  .carousel-arrow-prev {
    left: 0.25rem;
  }

  .carousel-arrow-next {
    right: 0.25rem;
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 3.5rem 1rem;
  }

  .section-separator {
    height: 88px;
    margin: 0 0 -2px;
    background: linear-gradient(180deg, var(--cream), var(--beige));
  }

  .section-separator::before {
    display: none;
  }

  .project-bubble-a {
    left: -28px;
    right: auto;
    top: 1.6rem;
    width: 120px;
    height: 120px;
  }

  .project-bubble-b {
    left: 96px;
    right: auto;
    top: 0.95rem;
    width: 44px;
    height: 44px;
  }

  .project-photo-cluster {
    width: min(100%, 360px);
    min-height: 360px;
    justify-self: start;
    margin-top: 0.5rem;
  }

  .photo-sociosanitario {
    right: 0;
    top: 0;
    width: 218px;
    height: 218px;
  }

  .photo-cocina {
    left: 0;
    bottom: 0;
    width: 176px;
    height: 176px;
  }

  .photo-tvonline {
    left: 18px;
    top: 18px;
    width: 118px;
    height: 118px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 14vw, 3.25rem);
    line-height: 1.02;
  }

  .hero-title {
    width: 100%;
    column-gap: 0.55rem;
  }

  .hero-title-more {
    font-size: clamp(4.2rem, 20vw, 6.4rem);
  }

  .hero-title-lines span {
    font-size: clamp(1.32rem, 6.8vw, 1.3rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .quick-facts span {
    font-size: 0.88rem;
  }

  .hero-board {
    min-height: 470px;
    border-width: 8px;
    border-radius: 36px 36px 84px 36px;
  }

  .hero-board::before {
    width: 230px;
    height: 230px;
    right: -78px;
    top: -42px;
    border-width: 8px;
  }

  .hero-board::after {
    width: 190px;
    height: 190px;
    left: -72px;
    bottom: -58px;
    border-width: 8px;
  }

  .board-copy {
    width: 70%;
    padding: 1.25rem;
  }

  .board-copy p {
    font-size: 2.35rem;
  }

  .board-copy strong {
    font-size: 1.1rem;
  }

  .board-copy small {
    display: block;
    max-width: 13rem;
    font-size: 0.86rem;
  }

  .round-message {
    top: 78px;
    right: 14px;
    width: 190px;
    height: 190px;
    border-width: 8px;
  }

  .venue-chip {
    left: 18px;
    bottom: 146px;
    max-width: 190px;
    padding: 0.75rem 0.9rem;
  }

  .course-chip {
    right: 18px;
    bottom: 28px;
    width: calc(100% - 36px);
    padding: 1rem;
  }

  .course-chip strong {
    font-size: 1.08rem;
  }

  .course-grid,
  .steps,
  .news-grid,
  .testimonial-grid,
  .stats-grid,
  .contact-form,
  .modal-content,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .family-grid {
    display: grid;
    grid-auto-columns: min(100%, 320px);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 0.9rem;
    padding-bottom: 0.8rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .family-grid::-webkit-scrollbar {
    display: none;
  }

  .family-card {
    flex-basis: auto;
    min-height: 180px;
    scroll-snap-align: start;
  }

  .course-track {
    grid-auto-columns: 100%;
    padding-inline: 0.1rem;
  }

  .course-body h3 {
    min-height: auto;
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .contact-form .full {
    grid-column: auto;
  }

  .footer-top {
    flex-direction: column;
  }
}
