/* ==========================================================
   HAPPY SINGLES · Brand Pack — SOLO presentación.
   No contiene reglas dirigidas a la lógica ni a los datos de Marga.
   Estructura compartida: vmon.css (Experience Pack). Aquí van los tokens
   de marca y las correcciones que Happy Singles necesita.
   ========================================================== */

.cth-brand--happysingles{
  --ink:var(--cth-ink);
  --paper:var(--cth-paper);
  --yellow:var(--cth-brand);
  --blue:var(--cth-brand);
  --cyan:var(--cth-brand-start);
  --blue2:var(--cth-brand-end);
  --blue-deep:var(--cth-deep);
  --hs-accent:#2ec4b6;      /* turquesa: SOLO sobre fondo oscuro (6,9:1) */
  --hs-warm:#ff8a5b;        /* coral: SOLO sobre fondo oscuro (6,4:1) */
}

/* ----------------------------------------------------------
   Cabecera y marca
   ---------------------------------------------------------- */
.cth-brand--happysingles .vmon-header{background:rgba(242,247,245,.96)}
.cth-brand--happysingles .vmon-brand__word{color:var(--cth-deep);font-size:1.34rem;line-height:1}
.cth-brand--happysingles .vmon-brand__word small{display:inline-block;margin-left:5px;background:var(--cth-brand);color:#fff;font-size:.7rem;vertical-align:.14em;padding:2px 6px;border-radius:6px}
@media(max-width:900px){.cth-brand--happysingles .vmon-nav{background:var(--cth-paper)}}

/* ----------------------------------------------------------
   HERO · corrección de composición
   ----------------------------------------------------------
   Problema heredado: el H1 se dimensiona con `vw` (hasta 7,2rem) mientras
   la columna de texto está fijada en 590px. En pantallas grandes el titular
   se parte en 8-10 líneas y empuja entradilla y CTA por debajo del pliegue.
   Aquí el titular se limita además por `ch`, de modo que nunca puede
   desbordar su columna sea cual sea el ancho de la pantalla.
   ---------------------------------------------------------- */
.cth-brand--happysingles .vmon-hero__copy{width:min(700px,50%)}
.cth-brand--happysingles .vmon-hero h1{
  font-size:clamp(2.9rem,4.4vw,4.6rem);
  line-height:.88;
  max-width:18ch;
  letter-spacing:-.055em;
  overflow-wrap:break-word;
}
.cth-brand--happysingles .vmon-hero__lead{max-width:34rem}
/* Con el titular acotado, la llamada a la acción vuelve a caber sobre el pliegue. */
.cth-brand--happysingles .vmon-hero{min-height:min(680px,86vh)}
.cth-brand--happysingles .vmon-hero .vmon-kicker{color:var(--hs-accent);letter-spacing:.14em}

/* Póster del hero.
   Problema heredado: `strong` tiene max-width:210px y el contenedor
   overflow:hidden, así que un hashtag largo se corta a media palabra.
   Además, cualquier marca que aclare el fondo del póster deja el texto
   blanco sobre blanco. Aquí el fondo se mantiene con degradado de marca
   (blanco sobre #108076 = 4,80:1) y el titular no puede desbordar. */
.cth-brand--happysingles .vmon-hero-poster{background:var(--brand-grad);color:#fff;border-color:rgba(255,255,255,.9)}
.cth-brand--happysingles .vmon-hero-poster strong{
  font-size:clamp(1.4rem,1.5vw,2rem);
  max-width:100%;
  overflow-wrap:anywhere;
  hyphens:none;
}
.cth-brand--happysingles .vmon-hero-poster small{max-width:100%;color:rgba(255,255,255,.94)}
.cth-brand--happysingles .vmon-hero-poster__eyebrow{color:#fff}

/* ----------------------------------------------------------
   Componentes de marca
   ---------------------------------------------------------- */
.cth-brand--happysingles .vmon-age{background:var(--cth-deep)}
.cth-brand--happysingles .vmon-age .vmon-kicker{color:var(--hs-accent)}
.cth-brand--happysingles .vmon-age-grid a:hover{background:var(--cth-brand);color:#fff}
.cth-brand--happysingles .vmon-cta,
.cth-brand--happysingles .vmon-button{background:var(--cth-brand);color:#fff;border-color:var(--cth-deep);box-shadow:4px 4px 0 var(--cth-deep)}
.cth-brand--happysingles .vmon-button--light{background:#fff;color:var(--cth-deep)}
.cth-brand--happysingles .vmon-authority{background:linear-gradient(135deg,var(--cth-deep),#17454d)}
.cth-brand--happysingles .vmon-footer{background:var(--cth-deep)}
.cth-brand--happysingles .vmon-trip-geo__kicker{color:var(--cth-brand)}

/* Los 4 argumentos son el bloque que sostiene la promesa. Se refuerza el
   contraste del texto secundario: público +55, cuerpo pequeño sobre blanco. */
.cth-brand--happysingles .vmon-proof__copy small{color:#41585e}
.cth-brand--happysingles .vmon-proof__item:hover .vmon-proof__media{background:var(--cth-brand);color:#fff}

/* ----------------------------------------------------------
   Página #Somos
   ---------------------------------------------------------- */
.hs-2026 .vmon-somos-hero:after{content:"55+"}
.hs-2026 .vmon-somos-hero h1 span:last-child{color:#fff}
.hs-2026 .vmon-somos-history__poster{background:linear-gradient(150deg,var(--brand-deep),var(--brand-end))}
.hs-2026 .vmon-somos-history__poster b{color:var(--hs-accent)}
.hs-2026 .vmon-somos-history__poster em{color:var(--hs-warm);font-style:normal}
.hs-2026 .vmon-somos-do article:nth-child(2),
.hs-2026 .vmon-somos-person:nth-child(3),
.hs-2026 .vmon-somos-person:nth-child(8){background:#eef6f4}

/* ----------------------------------------------------------
   Accesibilidad · público +55
   ----------------------------------------------------------
   Objetivo declarado de esta marca: no perder al usuario por tamaño de
   texto ni por foco invisible. Reglas mínimas, sin tocar el DOM funcional.
   ---------------------------------------------------------- */
.cth-brand--happysingles{font-size:17px}
.cth-brand--happysingles .vmon-editorial__content{font-size:1.06rem;line-height:1.65}
.cth-brand--happysingles a:focus-visible,
.cth-brand--happysingles button:focus-visible,
.cth-brand--happysingles summary:focus-visible,
.cth-brand--happysingles [tabindex]:focus-visible{
  outline:3px solid var(--hs-accent);
  outline-offset:2px;
  border-radius:4px;
}
@media(prefers-reduced-motion:reduce){
  .cth-brand--happysingles *,
  .cth-brand--happysingles *:before,
  .cth-brand--happysingles *:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* HS3 · the shared legacy hub renderer still prints its historical CTA. The
   Core now owns the complete closing, so Happy Singles shows only one close. */

/* ==========================================================
   HS3.2 · Production hardening
   Loaded before the shared Marga sheets, so selectors here deliberately carry
   the brand scope and enough specificity to win without editing protected
   Marga files. Business logic, field values and JS remain untouched.
   ========================================================== */

/* Marga must inherit Happy Singles, never the historical VMON blue/yellow
   defaults. This covers trip tabs, price/include tables and controls that use
   the integration variables downstream. */
.cth-brand--happysingles .vmon-marga,
.cth-brand--happysingles .vmon-marga-page{
  --md-ink:var(--cth-ink);
  --md-paper:var(--cth-paper);
  --md-white:#fff;
  --md-yellow:var(--cth-brand);
  --md-blue:var(--cth-brand);
  --md-cyan:var(--cth-brand-start);
  --md-blue2:var(--cth-brand-end);
  --md-line:rgba(16,51,58,.16);
  --md-brand-grad:var(--cth-gradient);
}
.cth-brand--happysingles.vmon-marga-page .h-tabs-navigation-active-item,
.cth-brand--happysingles .vmon-marga-page .h-tabs-navigation-active-item,
.cth-brand--happysingles.vmon-marga-page #precioIncluye table thead tr>:is(th,td),
.cth-brand--happysingles .vmon-marga-page #precioIncluye table thead tr>:is(th,td){
  background:var(--cth-gradient)!important;
  background-color:var(--cth-brand)!important;
  color:#fff!important;
}
.cth-brand--happysingles.vmon-marga-page #price-container,
.cth-brand--happysingles .vmon-marga-page #price-container{color:var(--cth-deep)!important}

/* /informacion/ is a protected Marga form. We change presentation only.
   The legacy form mixes fixed-width h-column descendants with fluid rows;
   on phones that leaves email/phone/select fields at desktop widths. */
.cth-brand--happysingles .hs-contact-page .vmon380-contact-form,
.cth-brand--happysingles .hs-contact-page .vmon380-contact-form__surface,
.cth-brand--happysingles .hs-contact-page .vmon-marga--contact,
.cth-brand--happysingles .hs-contact-page #contacto-form{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.cth-brand--happysingles .hs-contact-page #contacto-form :where(.h-row,.row){
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.cth-brand--happysingles .hs-contact-page #contacto-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),select,textarea){
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.cth-brand--happysingles .hs-contact-page #contacto-form textarea{resize:vertical!important}
.cth-brand--happysingles .hs-contact-page #contacto-form :where(input[type="checkbox"],input[type="radio"]){
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  min-height:0!important;
  flex:0 0 auto!important;
}
.cth-brand--happysingles .hs-contact-page #contacto-form :where(.g-recaptcha,iframe,img,table){max-width:100%!important}
.cth-brand--happysingles .hs-contact-page #contacto-form .g-recaptcha{transform-origin:left top}

@media(max-width:767px){
  .cth-brand--happysingles .hs-contact-page .vmon380-contact-form{padding:28px 0 42px!important}
  .cth-brand--happysingles .hs-contact-page .vmon380-contact-form .vmon-shell{width:min(100% - 20px,1240px)!important}
  .cth-brand--happysingles .hs-contact-page .vmon380-contact-form__surface{padding:0!important;border-radius:16px!important;overflow:hidden!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form{padding:20px 14px 24px!important;border-radius:16px!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(.h-row,.row){
    display:flex!important;
    flex-wrap:wrap!important;
    margin-left:0!important;
    margin-right:0!important;
    gap:0!important;
  }
  .cth-brand--happysingles .hs-contact-page #contacto-form [class*="h-col-"],
  .cth-brand--happysingles .hs-contact-page #contacto-form [class*="col-"]{
    display:block!important;
    float:none!important;
    flex:0 0 100%!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
  }
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(.control-group,.form-group){width:100%!important;max-width:100%!important;min-width:0!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(label,.md-label){font-size:.82rem!important;line-height:1.25!important;letter-spacing:.04em!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),select){min-height:48px!important;font-size:16px!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form textarea{min-height:150px!important;font-size:16px!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(h2,h3,h4){overflow-wrap:anywhere!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(p,li){font-size:.94rem!important;line-height:1.55!important;overflow-wrap:anywhere!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(.privacy-policy,.politica-privacidad,.rgpd,.lopd){max-width:100%!important;font-size:.94rem!important;line-height:1.55!important}
  .cth-brand--happysingles .hs-contact-page #contacto-form :where(button,input[type="submit"],.md-btn){max-width:100%!important;min-height:46px!important}
}

@media(max-width:390px){
  .cth-brand--happysingles .hs-contact-page #contacto-form .g-recaptcha{transform:scale(.88);margin-right:-36px;margin-bottom:-10px}
}
