/* ==========================================================================
   coraltech.club — reconstrucción estática (HTML + CSS + JS, sin CMS)
   Tokens, medidas y colores calcados del sitio original (Bricks + ACSS).
   ========================================================================== */

@import url("fonts.css");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colores de marca */
  --primary: #fba305;
  --secondary: #38629f;
  --accent: #fba305;
  --base: #929292;
  --neutral: #161616;
  --black: #000;
  --white: #fff;
  --text-light: var(--white);
  --grey-line: rgba(0, 0, 0, 0.21);
  --grey-soft: #b7b7b7;
  --grey-mid: #8e8e8e;
  --grey-nav: #7e7e7e;
  --grey-foot: #afafaf;
  --cream: #fff2d9;
  --off-white: #f9f9f9;

  /* Escala fluida (misma fórmula que ACSS, root = 10px) */
  --space-xs:  clamp(1.1255627110rem, 0.2017190508vw + 1.0610126148rem, 1.3333333333rem);
  --space-s:   clamp(1.5003750938rem, 0.4850727245vw + 1.3451518219rem, 2rem);
  --space-m:   clamp(2rem,            0.9708737864vw + 1.6893203883rem, 3rem);
  --space-l:   clamp(2.666rem,        1.7805825243vw + 2.0962135922rem, 4.5rem);
  --space-xl:  clamp(3.553778rem,     3.1031281553vw + 2.5607769903rem, 6.75rem);
  --space-xxl: clamp(4.737186074rem,  5.2308873068vw + 3.0633021358rem, 10.125rem);

  --section-space-xs: clamp(2.2511254220rem, 2.9924348654vw + 1.2935462651rem, 5.3333333333rem);
  --section-space-s:  clamp(3.0007501875rem, 4.8536405946vw + 1.4475851973rem, 8rem);
  --section-space-m:  clamp(4rem,            7.7669902913vw + 1.5145631068rem, 12rem);
  --section-space-l:  clamp(5.332rem,       12.2990291262vw + 1.3963106796rem, 18rem);

  --gutter: clamp(2rem, 0.9708737864vw + 1.6893203883rem, 3rem);
  --grid-gap: var(--space-l);

  /* Tipografía fluida */
  --h1: clamp(5rem, 4.8543689320vw + 3.4466019417rem, 10rem);
  --h2: clamp(3rem, 3.1067961165vw + 2.0058252427rem, 6.2rem);
  --h3: clamp(3rem, 1.1650485437vw + 2.6271844660rem, 4.2rem);
  --h4: clamp(2rem, 1.5533980583vw + 1.5029126214rem, 3.6rem);
  --h5: clamp(1.3333333333rem, 0.3078439513vw + 1.2348232689rem, 1.6504126032rem);

  --text-xs:  clamp(1.1111111111rem, -0.0952472536vw + 1.1415902323rem, 1.0130064399rem);
  --text-s:   clamp(1.3333333333rem,  0.0165089816vw + 1.3280504592rem, 1.3503375844rem);
  --text-m:   clamp(1.6rem,           0.1941747573vw + 1.5378640777rem, 1.8rem);
  --text-l:   clamp(1.92rem,          0.4654368932vw + 1.7710601942rem, 2.3994rem);
  --text-xl:  clamp(2.304rem,         0.8683497087vw + 2.0261280932rem, 3.1984002rem);
  --text-xxl: clamp(2.7648rem,        1.4550169579vw + 2.2991945735rem, 4.2634674666rem);

  /* Anchos */
  --content-width: 110rem;
  --width-s: calc(135rem * 0.2);
  --width-l: calc(135rem * 0.6);

  /* Rejillas */
  --grid-1: repeat(1, minmax(0, 1fr));
  --grid-2: repeat(2, minmax(0, 1fr));
  --grid-3: repeat(3, minmax(0, 1fr));
  --grid-4: repeat(4, minmax(0, 1fr));
  --grid-5: repeat(5, minmax(0, 1fr));
  --grid-2-1: minmax(0, 2fr) minmax(0, 1fr);
  --grid-3-2: minmax(0, 3fr) minmax(0, 2fr);

  /* Movimiento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 62.5%;            /* 1rem = 10px, igual que el original */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Los carruseles se salen del contenedor a propósito; recortamos el desborde
     lateral para que la página nunca haga scroll horizontal. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--white);
  color: var(--base);
  font-family: "Gilmer", sans-serif;
  font-size: 18px;
  font-weight: 200;
  line-height: calc(6px + 2ex);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; border: 0; }

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

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5, h6 { margin: 0; text-wrap: balance; }

h1 {
  font-family: "GlancyrNeue", sans-serif;
  font-weight: 300;
  font-size: var(--h1);
  line-height: 1.2;
  color: var(--neutral);
}

h2 {
  font-family: "Glancyr Neue Expanded", sans-serif;
  font-weight: 300;
  font-size: var(--h2);
  line-height: 1.2;
  max-width: 45ch;
  color: var(--neutral);
}

h3 {
  font-family: "Gilmer", sans-serif;
  font-weight: 500;
  font-size: var(--h3);
  line-height: 1.2;
  max-width: 45ch;
  text-transform: capitalize;
  color: #000;
}

h4 {
  font-family: "Glancyr Neue Expanded", sans-serif;
  font-weight: 300;
  font-size: var(--h4);
  line-height: calc(4px + 2ex);
  max-width: 45ch;
  color: #000;
}

h5 { font-size: var(--h5); line-height: 1.2; max-width: 45ch; }

strong { font-weight: 700; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 1rem 2rem;
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   3. Primitivas de maquetación (equivalentes a section/container/block/grid)
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding: var(--section-space-s) var(--gutter);
  gap: var(--grid-gap);
  /* Recorta el desborde lateral de los carruseles sin tocar el eje vertical */
  overflow-x: clip;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--content-width);
  gap: var(--space-m);
}

.block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
}

.grid { display: grid; align-items: initial; }

.is-centered { align-items: center; }
.gap-l { row-gap: var(--space-l); }
.gap-xl { row-gap: var(--space-xl); }
.text--white { color: #fff !important; }
.text--base { text-align: left; }
.accent { color: var(--accent); }
.accent-2 { color: var(--secondary); }

/* --------------------------------------------------------------------------
   4. Cabecera
   -------------------------------------------------------------------------- */
.site-header { position: relative; z-index: 100; }

.site-header .section {
  width: 100%;
  padding-top: var(--space-s);
  padding-bottom: var(--space-s);
  justify-content: center;
}

.header__inner {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.logo { display: block; width: 116px; flex: none; }
.logo img { display: block; width: 100%; }

.main-nav ul {
  display: flex;
  flex-direction: row;
  gap: var(--space-m);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  font-family: "Gilmer", sans-serif;
  font-size: var(--text-s);
  font-weight: 400;
  color: var(--grey-nav);
  transition: color 0.3s var(--ease-out);
}

/* Efecto de subrayado que barre de izquierda a derecha */
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .is-current > a { color: var(--accent); }
.main-nav .is-current > a::after { transform: scaleX(1); }

/* Cabecera superpuesta (página Events) */
.site-header--overlay {
  position: relative;
  margin-bottom: -94px;
  z-index: 100;
}
.site-header--overlay .section { background-color: rgba(33, 33, 33, 0.24); }
.site-header--overlay .main-nav a { color: #fff; }
.site-header--overlay .main-nav .is-current > a { color: var(--accent); }
.site-header--overlay .nav-toggle span { background: #fff; }

/* Botón hamburguesa */
.nav-toggle {
  display: none;
  width: 40px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--grey-nav);
  transition: transform 0.35s var(--ease-out), opacity 0.2s linear;
}
.nav-toggle span:nth-child(1) { top: 6px; }
.nav-toggle span:nth-child(2) { top: 14px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-m);
  background: var(--accent);
  transform: translateX(-100%);
  visibility: hidden;
}
/* El estado final lo fija la clase, no la animación: si el navegador no llega a
   animar, el menú aparece igualmente en su sitio. */
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  animation: menu-in 0.45s var(--ease-out);
}
@keyframes menu-in {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu.is-open { animation: none; }
}
.mobile-menu a {
  font-family: "Gilmer", sans-serif;
  font-size: var(--h4);
  color: #fff;
  text-transform: capitalize;
  padding: 0.4em 1em;
}
.mobile-menu .is-current a { background-color: #000; }
.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  font-family: "Gilmer", sans-serif;
  font-weight: 400;
  text-transform: capitalize;
  transition: color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}

.btn--orange {
  padding: 13px 25px;
  border-radius: 10px;
  background-color: var(--accent);
  color: #fff;
  font-size: var(--text-m);
}

/* Relleno que sube desde abajo al pasar el ratón */
.btn--orange::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}
.btn--orange > span { position: relative; z-index: 1; }
.btn--orange:hover { color: #000; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(251, 163, 5, 0.35); }
.btn--orange:hover::before { transform: translateY(0); }

/* --------------------------------------------------------------------------
   6. Iconos sociales
   -------------------------------------------------------------------------- */
.social-icons { display: flex; flex-direction: row; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  color: var(--grey-mid);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.social-icons svg { width: 25px; height: 25px; fill: currentColor; }
.social-icons a:hover { color: var(--accent); transform: translateY(-3px); }

/* --------------------------------------------------------------------------
   7. Bloques de contenido reutilizados
   -------------------------------------------------------------------------- */

/* Hero */
.ct-hero-section {
  background-color: #fff;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: center;
  align-items: center;
}
.ct-hero-container { row-gap: var(--space-l); align-items: center; }
.ct-hero-heading { text-align: center; color: var(--secondary); text-transform: capitalize; }
.ct-hero-text {
  color: var(--base);
  text-align: center;
  font-family: "Gilmer", sans-serif;
  font-size: 18px;
  font-weight: 400;
}

/* Título con punto naranja delante */
.ct-dot-heading {
  font-family: "Gilmer", sans-serif;
  font-size: var(--text-s);
  font-weight: 400;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  text-align: center;
  color: var(--base);
  border: 1px solid rgba(146, 146, 146, 0.54);
  border-radius: 100px;
  padding: 5px 12px 5px 5px;
  max-width: none;
}
.ct-dot-heading::before {
  content: "•";
  color: var(--accent);
  font-size: 3em;
  margin-right: 0.2em;
  vertical-align: middle;
  line-height: 0;
  position: relative;
  top: -0.15em;
}
.ct-dot-heading.text--white { border-color: #fff; padding-left: var(--space-xs); padding-right: var(--space-xs); }

.ct-section-heading { text-transform: capitalize; }

/* Sección azul */
.ct-blue-background-section {
  background-color: var(--secondary);
  align-items: center;
  justify-content: center;
}
.ct-container { row-gap: var(--space-m); }

/* Tarjetas cuadradas (Home / Partners) */
.ct-squared-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid var(--grey-line);
  border-radius: 24px;
  text-align: center;
  row-gap: var(--space-xs);
  min-height: 200px;
  width: 100%;
  align-self: stretch;
  padding: var(--space-s) var(--space-m);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.ct-squared-block:hover {
  border-color: var(--accent);
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07);
}
.ct-squared-block:hover .text--base { color: #000; }

.ct-smalltitle {
  font-family: "Gilmer", sans-serif;
  font-size: var(--h3);
  font-weight: 500;
  text-align: left;
}

/* Carrusel lateral de fotos (se sale del contenedor, como el original) */
.ct-side-gallery {
  position: absolute;
  width: 100%;              /* posición estática + absoluto: se mide contra el viewport, igual que el original */
  align-self: stretch;
}
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: var(--carousel-gap, 12px); }
.carousel__slide { flex: 0 0 auto; }
.ct-side-gallery .image {
  height: 400px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out), filter 0.6s var(--ease-out);
}
.ct-side-gallery .carousel__slide:hover .image { transform: scale(1.03); }

/* Carrusel "Past Events" de la home */
.past-carousel { align-self: flex-start; width: 2614px; min-width: 2614px; position: relative; }
.past-carousel .image {
  height: 400px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}
.past-carousel .carousel__slide:hover .image { transform: scale(1.02); }
.past-carousel .content-wrapper h3 {
  margin: 20px 0;
  font-family: "Gilmer", sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #000;
  text-align: left;
  text-transform: uppercase;
}

/* Botones circulares de carrusel.
   El carrusel se sale del contenedor (2614 px), así que las flechas se anclan
   al ancho visible del contenedor, no al del carrusel. */
.carousel__nav {
  position: absolute;
  top: -35px;
  left: 0;
  width: min(var(--content-width), calc(100vw - var(--gutter) * 2));
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  z-index: 2;
}
.carousel__btn {
  width: 70px;
  height: 36px;
  border: 1px solid var(--grey-foot);
  border-radius: 100px;
  background: none;
  color: var(--grey-nav);
  font-size: var(--text-xl);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, border-width 0.3s;
}
.carousel__btn:hover { border-width: 1.5px; border-color: var(--secondary); color: var(--secondary); }
.carousel__btn svg { width: 18px; height: 18px; fill: currentColor; }

/* Paginación de puntos */
.carousel__dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.carousel__dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 50%;
  background: #d8d8d8;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.carousel__dots button[aria-current="true"] { background: var(--accent); transform: scale(1.4); }

/* Listado de eventos pasados (tarjetas) */
.ct-events-loop { display: flex; flex-direction: column; column-gap: var(--space-s); row-gap: var(--space-xs); }
.ct-events-loop-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
}
.ct-events-loop-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.ct-events-loop-image:hover img { transform: scale(1.05); }
.ct-events-loop-block { display: flex; flex-direction: row; justify-content: space-between; }
.ct-events-loop-heading {
  font-family: "Glancyr Neue VF", sans-serif;
  font-size: var(--text-s);
  text-transform: uppercase;
  margin: 0;
}

/* Cuenta atrás */
.countdown .field {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25em;
  color: var(--accent);
  font-family: "Glancyr Neue Expanded", sans-serif;
  font-size: var(--text-xl);
  font-weight: 300;
  text-align: center;
  border: 1px solid #fff;
  border-radius: 100px;
  padding: var(--space-s) var(--space-l);
}
.countdown .prefix, .countdown .suffix { color: #fff; }
.countdown[hidden] { display: none; }

/* --------------------------------------------------------------------------
   8. Formularios
   -------------------------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form label { font-size: var(--text-s); }

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dddedf;
  border-radius: 0;
  background: #fff;
  font-family: "Gilmer", sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: var(--grey-mid);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form textarea { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--grey-mid); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 163, 5, 0.15);
}
.form .required { color: #f44336; }

.form__message {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  background: #eef7ee;
  color: #2f6d31;
  font-size: var(--text-s);
}
.form__message.is-visible { display: block; }

/* Newsletter (etiquetas ocultas, como en el original) */
.newsletterform { width: 60%; text-align: left; }
.newsletterform label { position: absolute; left: -9999px; }
.newsletterform .form__submit { display: flex; justify-content: center; }
.newsletterform button {
  width: 50%;
  padding: 15px 25px;
  border: 0;
  border-radius: 0;
  background-color: var(--accent);
  color: #fff;
  font-family: "Gilmer", sans-serif;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.newsletterform button:hover { background: #e08f00; transform: translateY(-2px); }

/* Formulario de contacto */
.ct-form { width: 100%; color: var(--grey-mid); }
.ct-form label { position: absolute; left: -9999px; }
.ct-form input, .ct-form select, .ct-form textarea { border-radius: 5px; font-size: var(--text-m); }
.ct-form .form__cols { display: flex; gap: 20px; }
.ct-form .form__cols > * { flex: 1; }
.ct-form button {
  align-self: flex-start;
  padding: 10px 25px;
  border: 0;
  border-radius: 50px;
  background-color: var(--accent);
  color: #fff;
  font-family: "Gilmer", sans-serif;
  font-weight: 300;
  font-size: var(--text-m);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.ct-form button:hover { background: #e08f00; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(251, 163, 5, 0.3); }

/* --------------------------------------------------------------------------
   9. Pie
   -------------------------------------------------------------------------- */
.site-footer .section { border-top: 1px solid var(--grey-foot); row-gap: var(--space-xs); }
.footer__top {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  column-gap: var(--space-xl);
}
.footer__logo { width: 78px; aspect-ratio: 1; object-fit: contain; }
.footer__heading {
  font-family: "Glancyr Neue Expanded", sans-serif;
  font-weight: 200;
  font-size: var(--h3);
  text-transform: capitalize;
  color: #000;
  max-width: none;
}
.site-footer--blue .section { background-color: var(--secondary); }
.site-footer--blue .footer__heading { color: #fff; }
.site-footer--blue .social-icons a { color: #fff; }
.site-footer--blue .social-icons svg { width: 30px; height: 30px; }
.footer-links { display: none; }

/* --------------------------------------------------------------------------
   10. Home
   -------------------------------------------------------------------------- */
.home-intro { row-gap: var(--space-xl); }
.home-intro__grid { grid-template-columns: var(--grid-2-1); }
.home-intro__text { align-self: center; justify-content: center; row-gap: var(--space-m); }
.home-intro__text .text--base { width: 86%; }
.home-intro__gallery {
  display: grid;
  grid-template-columns: var(--grid-4);
  gap: var(--space-m);
  padding: var(--space-m);
  justify-content: center;
}
.home-cards { grid-template-columns: var(--grid-3); align-items: flex-start; gap: var(--space-xs); }
.home-rsvp__container { align-items: center; justify-content: center; row-gap: var(--space-l) !important; max-width: var(--width-l); }
.home-rsvp__container .text--base { text-align: center; color: #fff; width: 89%; }
.home-newsletter {
  align-items: center;
  row-gap: var(--space-m);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.home-newsletter .ct-hero-text { width: 84%; }
.home-ghost-text { text-align: center; line-height: var(--text-l); max-width: 546px; color: #fff; }

/* --------------------------------------------------------------------------
   11. About Us
   -------------------------------------------------------------------------- */
.about-grid { grid-template-columns: var(--grid-3-2); gap: var(--space-xs); }
.about-text { row-gap: var(--space-m); padding: var(--space-m); }
.about-text .text--base { padding-right: var(--space-xs); }
.about-gallery {
  display: grid;
  grid-template-columns: var(--grid-4);
  gap: var(--space-m);
  padding: var(--space-m);
}
.about-gallery .image { height: 450px; }

.team5 { display: grid; grid-template-columns: var(--grid-5); gap: var(--space-s); width: 100%; }
.team5-container { display: flex; flex-direction: column; }
.team5-image {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  min-height: 324px;
  height: 324px;
  overflow: hidden;
}
.team5-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.team5-container:hover .team5-image img { transform: scale(1.05); }
.team5-subcontainer { display: flex; flex-direction: column; padding: var(--space-xs); row-gap: var(--space-s); }
.team5-heading { font-family: "Gilmer", sans-serif; font-weight: 400; color: #000; font-size: var(--text-m); }
.team5-heading-title { color: var(--grey-foot); text-transform: capitalize; font-size: var(--text-s); margin-top: -13px; }
.team5-text-basic { font-size: var(--text-s); line-height: 1.2; color: var(--base); margin: 0; }
.team5-under { margin-top: 20px; }
.about-team__intro { text-align: center; width: 85%; align-self: center; }

/* --------------------------------------------------------------------------
   12. Events
   -------------------------------------------------------------------------- */
.events-hero {
  background-image: url(../img/Events-Hero-Image-1024x683.jpg);
  background-size: cover;
  background-position: center;
  min-height: 63.8rem;
  padding-top: var(--section-space-l);
  position: relative;
}
.events-hero .ct-hero-heading { color: #fff; }
.events-hero .ct-hero-text { max-width: 80%; color: #fff; text-align: center; }

.events-rsvp { background-color: var(--secondary); }
.events-rsvp__grid {
  grid-template-columns: var(--grid-3-2);
  padding: var(--space-m);
  gap: var(--space-xl);
}
.events-rsvp__text { align-items: flex-start; justify-content: flex-start; row-gap: var(--space-m); }
.events-rsvp__text h2 { color: #fff; font-weight: 200; }
.events-rsvp__text .text--base { color: #fff; }
.events-rsvp__figure { position: relative; aspect-ratio: 16 / 9; margin: 0; }
.events-rsvp__figure img { width: 100%; height: 100%; object-fit: cover; }
.events-rsvp__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0) 54%, rgba(255, 255, 255, 0.61));
  pointer-events: none;
}
.events-venue__grid { grid-template-columns: var(--grid-3-2); }
.events-venue__text { row-gap: var(--space-s); padding: var(--space-m); }
.events-venue__gallery {
  display: grid;
  grid-template-columns: var(--grid-4);
  gap: var(--space-m);
  padding: var(--space-m);
}
.events-venue__gallery .image { height: 500px; }

.map-head { display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
.map-head h3 {
  color: #99c0f9;
  text-transform: uppercase;
  font-weight: 300;
  font-size: var(--text-m);
}
.map-head h3:last-child { text-align: right; }
.map-embed { width: 100%; height: 450px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Contadores */
.ct-counters {
  grid-template-columns: var(--grid-3);
  justify-items: center;
  align-items: center;
  gap: var(--space-s);
  width: 100%;
}
.ct-counters__container {
  display: flex;
  flex-direction: column;
  border: 1px solid #fff;
  border-radius: 24px;
  min-height: 21rem;
  height: 21rem;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding-top: var(--space-m);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.ct-counters__container:hover { border-color: var(--accent); transform: translateY(-4px); }
.ct-counters__counter {
  display: flex;
  align-items: baseline;
  color: #fff;
  font-family: "Glancyr Neue Expanded", sans-serif;
  font-weight: 200;
}
.ct-counters__counter .count { font-size: 8rem; line-height: 1; text-transform: uppercase; }
.ct-counters__counter .suffix { font-size: 7rem; }
.ct-counters__heading {
  color: #fff;
  font-size: var(--text-m);
  text-align: center;
  text-transform: capitalize;
  font-family: "Gilmer", sans-serif;
  font-weight: 300;
  max-width: none;
}

/* Reseñas */
.reviews-grid { grid-template-columns: var(--grid-3-2); align-items: center; gap: var(--space-xs); }
.reviews-carousel { --carousel-gap: 20px; width: 100%; }
.reviews-text { row-gap: var(--space-s); padding: var(--space-m); }
.review-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  background-color: #f3f3f3;
  border-radius: 10px;
  padding: var(--space-s) var(--space-m);
  align-items: flex-start;
}
.review-card__quote { width: 60px; }
.review-card__foot {
  display: grid;
  grid-template-columns: var(--grid-2-1);
  align-items: center;
  width: 100%;
  gap: var(--space-s);
}
.review-card__person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; gap: var(--space-xs); }
.review-card__avatar { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.review-card__name { font-size: var(--text-m); color: var(--base); font-family: "Gilmer", sans-serif; font-weight: 300; text-transform: none; max-width: none; }
.review-card__role { font-size: var(--text-s); color: var(--base); font-family: "Gilmer", sans-serif; font-weight: 300; max-width: none; }
.review-card__stars { display: flex; justify-content: flex-end; gap: 2px; color: var(--accent); }
.review-card__stars svg { width: 20px; height: 20px; fill: currentColor; }

.events-strip { position: relative; row-gap: var(--space-xl); }
.events-strip__container { width: 100%; max-width: none; padding: 0; }
.events-strip .ct-side-gallery { position: relative; width: 100%; }
.events-strip .image { height: 400px; cursor: zoom-in; }
/* Los puntos van fuera del flujo, igual que la paginación del original */
.events-strip .carousel__dots { position: absolute; left: 0; right: 0; bottom: -33px; margin: 0; }

/* --------------------------------------------------------------------------
   13. Partners
   -------------------------------------------------------------------------- */
.logo-strip { width: 100%; overflow: hidden; }
.logo-strip__track {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  width: max-content;
  animation: logo-marquee 40s linear infinite;
}
.logo-strip:hover .logo-strip__track { animation-play-state: paused; }
.logo-strip__item { flex: 0 0 181px; display: flex; align-items: center; justify-content: center; }
.logo-strip__item img { width: 100%; height: auto; max-height: 41px; object-fit: contain; }
@keyframes logo-marquee { to { transform: translateX(-50%); } }

.benefitsgrid { grid-template-columns: var(--grid-4); align-items: flex-start; gap: var(--space-xs); }
.benefitsgrid__circled-text { align-items: flex-start; text-align: left; }
.benefitsgrid__circled-text svg { width: 100px; height: auto; }
.benefitsgrid__heading { text-align: left; font-size: var(--text-xl); font-family: "Glancyr Neue Expanded", sans-serif; font-weight: 300; text-transform: none; }
.infocard-text { text-align: left; }

.partnersgridd {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  grid-auto-flow: dense;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}
.partnersgridd__circled-text {
  display: flex;
  flex-direction: column;
  padding: 30px 20px 20px;
  border: 1px solid var(--accent);
  border-radius: 24px;
  background-color: #fafafa;
  row-gap: var(--space-xs);
  width: 100%;
  height: 100%;
  align-items: flex-start;
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.partnersgridd__circled-text:hover { background-color: rgba(251, 163, 5, 0.09); transform: translateY(-4px); }
.partnersgridd__circled-text > img:first-child { border-radius: 10px; }
.partnersgridd__logo { display: block; width: 140px; max-width: 140px; }
.partnersgridd__logo img { width: 100%; object-fit: contain; }
.partnersgridd__heading { font-size: var(--text-m); text-align: left; font-weight: 300; font-family: "Glancyr Neue Expanded", sans-serif; text-transform: none; }
.partnersgridd__text-basic { text-align: left; }
.partnersgridd__text-basic-rounded {
  border: 1px solid #c1c1c1;
  border-radius: 36px;
  padding: 10px;
  text-transform: capitalize;
}
.partners-cell-1 { grid-row: 1 / 3; grid-column: 1 / 2; }
.partners-cell-9 { grid-row: 3 / 4; grid-column: 2 / 3; }

.partners-join { background-color: var(--secondary); }
.partners-join__container {
  align-items: center;
  row-gap: var(--space-m);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}
.partners-join__container .ct-hero-text { width: 84%; color: #fff; }

/* --------------------------------------------------------------------------
   14. Presenters
   -------------------------------------------------------------------------- */
.presenters-grid { grid-template-columns: var(--grid-2-1); }
.presenters-text { align-self: center; justify-content: center; row-gap: var(--space-m); }
.presenters-text .text--base { width: 86%; }
.presenters-gallery {
  display: grid;
  grid-template-columns: var(--grid-4);
  gap: var(--space-m);
  padding: var(--space-m);
  justify-content: center;
}
.presenters-cards { grid-template-columns: var(--grid-3); justify-items: center; justify-content: center; width: 100%; gap: var(--space-m); }
.presenter-single {
  display: flex;
  flex-direction: column;
  row-gap: var(--space-s);
  border: 1px solid var(--grey-soft);
  border-radius: 5px;
  min-width: 245px;
  width: 100%;
  padding: var(--space-m);
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.presenter-single:hover { border-color: var(--accent); background-color: rgba(251, 163, 5, 0.14); transform: translateY(-4px); }
.presenter-single__info { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-end; }
.presenter-single__mainimage { width: 100px; height: 100px; object-fit: cover; }
.presenter-single__linkedin { font-size: 25px; color: var(--base); transition: color 0.3s; }
.presenter-single__linkedin svg { width: 25px; height: 25px; fill: currentColor; }
.presenter-single__linkedin:hover { color: var(--accent); }
.presenter-single__moreinfo {
  display: flex;
  flex-direction: column;
  row-gap: var(--space-xs);
  border-top: 1px solid var(--grey-soft);
  padding-top: 15px;
}
.presenter-single__name-of-presenter { font-weight: 500; color: var(--secondary); font-family: "GlancyrNeue", sans-serif; }
.presenter-single__title { font-size: var(--text-s); font-family: "Gilmer", sans-serif; color: var(--grey-mid); margin-top: -10px; text-transform: none; }
.text-presentation-date { color: #000; font-size: var(--text-s); line-height: 1.4; font-weight: 200; }
a.text-presentation-date:hover { color: var(--accent); }
.presenters-cta { row-gap: var(--space-xl); background-color: var(--secondary); }
.presenters-cta__grid { grid-template-columns: var(--grid-2); }

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */
.contact-hero { padding-top: var(--section-space-xs); padding-bottom: var(--section-space-xs); min-height: 38.3rem; }
.contact-hero .ct-hero-heading { color: #646464; }
.contact-grid {
  grid-template-columns: var(--grid-2);
  align-items: center;
  justify-items: center;
  padding: var(--space-s);
  gap: var(--space-l);
}
.contact-left { row-gap: var(--space-s); justify-content: center; }
.contact-left h2 {
  text-align: left;
  font-weight: 500;
  font-family: "Gilmer", sans-serif;
  font-size: var(--text-xxl);
  text-transform: capitalize;
}
.contact-right { align-self: center; }
.contact-photos { display: grid; grid-template-columns: var(--grid-2); gap: var(--space-m); align-items: flex-end; width: 100%; }
.contact-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.contact-modules { display: grid; grid-template-columns: var(--grid-2); width: 100%; }
.contact-module { display: flex; flex-direction: row; padding: var(--space-xs) 0; gap: var(--space-xs); }
.contact-module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs);
  border: 1px solid #b7b7b7;
  border-radius: 8px;
  width: 50px;
  min-width: 50px;
  height: 50px;
  color: var(--accent);
  align-self: center;
  transition: border-color 0.3s, background 0.3s;
}
.contact-module:hover .contact-module-icon { border-color: var(--accent); background: rgba(251, 163, 5, 0.08); }
.contact-module-icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact-module-container { display: flex; flex-direction: column; row-gap: 1px; justify-content: center; }
.contact-module-text-basic { font-size: var(--text-s); text-align: left; font-family: "Gilmer", sans-serif; line-height: 1.5; }

/* Acordeón FAQ */
.ct-accordeon { width: 100%; }
.ct-accordeon .accordion-item { width: 100%; }
.ct-accordeon .accordion-title-wrapper {
  display: flex;
  width: 100%;
  padding: var(--space-s) 0;
  border: 0;
  border-bottom: 1px solid var(--grey-line);
  background: none;
  cursor: pointer;
  text-align: left;
}
.ct-accordeon .accordion-title { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--space-s); }
.ct-accordeon .title {
  font-family: "GlancyrNeue", sans-serif;
  font-weight: 200;
  font-size: var(--h4);
  margin: 0;
  transition: color 0.3s var(--ease-out);
  text-transform: none;
}
.ct-accordeon .accordion-title-wrapper[aria-expanded="true"] .title { color: var(--secondary); }
.ct-accordeon .icon { font-size: var(--text-l); color: var(--grey-mid); flex: none; transition: transform 0.4s var(--ease-out); }
.ct-accordeon .accordion-title-wrapper[aria-expanded="true"] .icon { transform: rotate(180deg); }
.ct-accordeon .accordion-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.ct-accordeon .accordion-title-wrapper[aria-expanded="true"] + .accordion-content-wrapper { grid-template-rows: 1fr; }
.ct-accordeon .accordion-content-wrapper > div { overflow: hidden; }
.ct-accordeon .accordion-content-wrapper p { padding-top: var(--space-s); }

/* --------------------------------------------------------------------------
   16. Eventos pasados (páginas individuales)
   -------------------------------------------------------------------------- */
.pastevent-hero {
  position: relative;
  min-height: 30vh;
  justify-content: center;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.pastevent-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.31), rgba(0, 0, 0, 0.31));
  pointer-events: none;
}
.pastevent-hero > * { position: relative; }
.pastevent-hero .container { text-align: center; align-items: center; justify-content: center; }
.pastevent-hero h1 { color: #fff; }

.pastevent-body { padding-top: 43.82px; padding-bottom: 43.82px; }
.pastevent-body .rich-text { color: #2d2d2d; font-size: 18px; font-family: "Inter", "Gilmer", sans-serif; }

.pastevent-hosts { background-color: var(--cream); padding-top: 80px; padding-bottom: 80px; row-gap: 40px; }
.pastevent-presenters { background-color: var(--off-white); padding-top: 80px; padding-bottom: 80px; row-gap: 40px; }
.pastevent-hosts h2, .pastevent-presenters h2, .pastevent-gallery h2 { align-self: center; }

.teamgrid-wrap { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 20px; width: 100%; }
.teamgrid { display: flex; flex-direction: column; align-items: center; row-gap: 15px; }
.teamimg { align-self: center; width: 238px; margin-right: 40px; margin-bottom: 20px; }
.teamheading { text-align: center; font-family: "Gilmer", sans-serif; font-weight: 300; text-transform: none; }
.teamheading .teamname { display: block; }
.teamsubheading { font-size: var(--h4); margin-top: -10px; }

.presentergrid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; width: 100%; }
.presentergrid .block { align-items: center; row-gap: 7px; }
.presentergrid .link-role { font-size: 16px; font-family: "Inter", "Gilmer", sans-serif; color: var(--secondary); text-transform: uppercase; font-weight: 600; }
.presentergrid .link-linkedin { font-size: 16px; font-family: "Inter", "Gilmer", sans-serif; }

.pastevent-gallery .container { row-gap: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.gallery-grid a { display: block; overflow: hidden; border-radius: 4px; }
.gallery-grid img { width: 100%; display: block; transition: transform 0.6s var(--ease-out); }
.gallery-grid a:hover img { transform: scale(1.05); }

.video-embed { width: 100%; aspect-ratio: 16 / 9; }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 4vmin;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 3.4rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   17. Efectos de texto
   -------------------------------------------------------------------------- */

/* Palabras animadas: aparición al entrar en pantalla.
   El estado oculto SOLO se aplica si el JS está activo (html.js). Sin JS,
   o si algo falla, el texto siempre se ve. */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; }
.split-unit { display: inline-block; }

/* La animación SIEMPRE se ejecuta con un retardo de respaldo de 1,4 s: aunque
   el disparador por scroll no llegue nunca, el texto termina visible. Cuando el
   elemento entra en pantalla, el retardo se acorta y la entrada se ve al momento. */
.js .split-unit {
  will-change: transform, opacity, filter;
  opacity: 0;
  animation: unit-in 0.85s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0ms) + 1400ms);
}
.js .is-revealed .split-unit { animation-delay: var(--d, 0ms); }

@keyframes unit-in {
  from { transform: translateY(0.9em) rotate(2deg); opacity: 0; filter: blur(6px); }
  to   { transform: translateY(0) rotate(0);        opacity: 1; filter: blur(0); }
}

/* Palabras destacadas: color sólido, igual que en el original */
.accent { color: var(--accent); }
.accent-2 { color: var(--secondary); }
.underline-draw { position: relative; display: inline-block; }

/* Subrayado que se dibuja bajo las palabras de acento de los H2 */
.underline-draw::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.06em;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out) 0.45s;
}
.is-revealed .underline-draw::after { transform: scaleX(1); }

/* Aparición suave para bloques de texto e imágenes (mismo respaldo de 1,4 s) */
.js .fade-up {
  opacity: 0;
  animation: fade-up-in 0.8s var(--ease-out) forwards;
  animation-delay: calc(var(--d, 0ms) + 1400ms);
}
.js .fade-up.is-revealed { animation-delay: var(--d, 0ms); }

@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .split-unit { transform: none !important; opacity: 1 !important; filter: none !important; animation: none !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  .logo-strip__track { animation: none; }
  .underline-draw::after { transition: none; transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  /* Logo a la izquierda; botón y hamburguesa juntos a la derecha.
     El menú completo no cabe por debajo de ~900 px, así que pasa a desplegable. */
  .main-nav { display: none; }
  .nav-toggle { display: block; order: 3; margin-left: var(--space-s); }
  .header__cta { order: 2; margin-left: auto; }

  .ct-hero-section { background-image: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)); }
  .ct-hero-text { width: 85%; }
  .ct-squared-block { padding: var(--space-l); justify-content: center; }
  .home-intro__grid,
  .presenters-grid,
  .about-grid,
  .presenters-cta__grid { grid-template-columns: var(--grid-1); }
  /* El carrusel deja de ser absoluto: el envoltorio pasa a bloque para ocupar todo el ancho */
  .home-intro__gallery,
  .about-gallery,
  .presenters-gallery,
  .events-venue__gallery { display: block; }
  .ct-side-gallery { position: static; width: 100%; }
  .ct-side-gallery .image,
  .about-gallery .image,
  .events-venue__gallery .image { height: 200px; }
  .past-carousel { width: 100%; min-width: 100%; }
  .past-carousel .image { height: 300px; }
  .home-cards, .benefitsgrid { grid-template-columns: var(--grid-2); }
  .partnersgridd { grid-template-columns: var(--grid-2); grid-template-rows: none; }
  .partners-cell-1, .partners-cell-9 { grid-row: auto; grid-column: auto; }
  .team5 { grid-template-columns: var(--grid-3); }
  .team5-under { margin-top: 0; }
  .home-newsletter, .partners-join__container { padding-top: var(--space-s); padding-bottom: var(--space-s); }
  .teamgrid-wrap { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .ct-section-heading { text-align: center; font-size: var(--h2); align-self: center; }
  .ct-hero-text { max-width: 100%; width: 100%; text-align: center; font-weight: 300; }
  .home-intro__text,
  .about-text,
  .presenters-text,
  .events-venue__text,
  .reviews-text { align-items: center; padding: 0 0 var(--space-m); text-align: center; }
  .home-intro__text .text--base,
  .presenters-text .text--base,
  .about-text .text--base { text-align: center; width: 100%; }
  .events-rsvp__grid, .events-venue__grid, .reviews-grid, .contact-grid { grid-template-columns: var(--grid-1); }
  .home-cards, .benefitsgrid, .partnersgridd, .presenters-cards { grid-template-columns: var(--grid-1); }
  .team5 { grid-template-columns: var(--grid-2); }
  .map-head { flex-direction: column; gap: 6px; }
  .map-head h3:last-child { text-align: left; }
  .ct-form .form__cols { flex-direction: column; }
  .contact-photos, .contact-modules { grid-template-columns: var(--grid-1); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .presentergrid { grid-template-columns: 1fr; }

  /* Las flechas dejan de estar sobre el titular: pasan encima de la imagen,
     una a cada lado, que es lo cómodo con el pulgar. */
  .carousel__nav {
    top: 132px;
    left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .carousel__btn {
    width: 48px;
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  /* Puntos de paginación en el flujo, para que no se solapen con la sección siguiente */
  .events-strip .carousel__dots { position: static; margin-top: 16px; }
}

@media (max-width: 478px) {
  .header__cta { display: none; }
  .btn--orange { align-self: stretch; }
  .ct-squared-block { align-items: center; }
  .ct-smalltitle, .infocard-text { text-align: center; }
  .newsletterform { width: 100%; }
  .newsletterform button { width: 100%; }
  .home-cards, .team5, .ct-counters, .partnersgridd, .benefitsgrid { grid-template-columns: var(--grid-1); }
  .team5 { gap: var(--space-xl); }
  .home-rsvp__container .text--base,
  .home-newsletter .ct-hero-text,
  .partners-join__container .ct-hero-text { width: 100%; }
  .ct-counters__container { min-height: 18rem; height: 18rem; }
  .ct-counters__counter .count { font-size: 6.7rem; }
  .ct-counters__counter .suffix { font-size: 3.4rem; }
  .contact-module { justify-content: center; }
  .contact-module-container { align-items: center; }
  .teamgrid-wrap { grid-template-columns: 1fr; }
  .teamimg { margin-right: 0; }
  .footer__top { flex-direction: column; row-gap: var(--space-s); text-align: center; }
  .partnersgridd { display: flex; flex-direction: column; gap: var(--space-s); }
}

/* Pantallas muy estrechas: los titulares de una sola palabra larga
   ("Partnerships", "TacoCraft") no caben a 50 px. */
@media (max-width: 400px) {
  .ct-hero-heading,
  .pastevent-hero h1 { font-size: 4.4rem; line-height: 1.15; }
}
