/* =========================================================================
   CONSIVE Las Palmas - Tema DNN
   ========================================================================= */

/* ---------- Variables corporativas ---------- */
:root {
    --cs-red: #d2232a;
    --cs-red-dark: #a3161c;
    --cs-red-deep: #7c0f14;
    --cs-red-soft: #fdecec;
    --cs-grey: #6d6e71;
    --cs-grey-light: #b8b9bc;
    --cs-ink: #1d1d21;
    --cs-text: #3d3e42;
    --cs-bg: #ffffff;
    --cs-bg-soft: #f8f5f4;
    --cs-line: #ece7e6;

    --cs-font-title: 'Marcellus', 'Optima', 'Candara', Georgia, serif;
    --cs-font-text: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --cs-radius: 18px;
    --cs-radius-sm: 10px;
    --cs-shadow: 0 10px 30px -12px rgba(29, 29, 33, .18);
    --cs-shadow-lg: 0 30px 60px -20px rgba(124, 15, 20, .35);
    --cs-header-h: 84px;
    --cs-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
html {
    scroll-padding-top: var(--cs-header-h);
}

body {
    background: var(--cs-bg);
    color: var(--cs-text);
    font-family: var(--cs-font-text);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

#siteWrapper {
    overflow-x: clip;
}

#siteWrapper h1, #siteWrapper h2, #siteWrapper h3, #siteWrapper h4 {
    font-family: var(--cs-font-title);
    font-weight: 400;
    color: var(--cs-ink);
    line-height: 1.15;
    letter-spacing: .01em;
    margin: 0 0 .6em;
}

#siteWrapper p {
    margin: 0 0 1.1em;
}

#siteWrapper a {
    color: var(--cs-red);
    text-decoration: none;
    transition: color .2s;
}

#siteWrapper a:hover {
    color: var(--cs-red-dark);
}

.cs-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.cs-section {
    position: relative;
    padding: 110px 0;
}

/* ---------- Elementos comunes ---------- */
.cs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--cs-red);
    margin-bottom: 18px;
}

.cs-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.cs-eyebrow--light {
    color: rgba(255, 255, 255, .85);
}

#siteWrapper .cs-title {
    font-size: clamp(32px, 4.2vw, 50px);
}

#siteWrapper .cs-title em {
    font-style: normal;
    color: var(--cs-red);
    position: relative;
}

#siteWrapper .cs-title--light {
    color: #fff;
}

.cs-btn,
#siteWrapper a.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--cs-font-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    cursor: pointer;
    transition: transform .25s var(--cs-ease), box-shadow .25s var(--cs-ease), background-color .25s, color .25s, border-color .25s;
}

.cs-btn i {
    transition: transform .25s var(--cs-ease);
}

.cs-btn:hover {
    transform: translateY(-2px);
}

.cs-btn:hover i {
    transform: translateX(4px);
}

#siteWrapper a.cs-btn--primary {
    background: var(--cs-red);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(210, 35, 42, .7);
}

#siteWrapper a.cs-btn--primary:hover {
    background: var(--cs-red-dark);
    color: #fff;
}

#siteWrapper a.cs-btn--light {
    background: #fff;
    color: var(--cs-red);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
}

#siteWrapper a.cs-btn--light:hover {
    color: var(--cs-red-dark);
}

#siteWrapper a.cs-btn--ghost {
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

#siteWrapper a.cs-btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: #fff;
}

/* Botón con borde para fondos claros */
#siteWrapper a.cs-btn--outline {
    border-color: var(--cs-red);
    color: var(--cs-red);
}

#siteWrapper a.cs-btn--outline:hover {
    background: var(--cs-red-soft);
    color: var(--cs-red-dark);
}

#siteWrapper a.cs-btn--sm {
    padding: 11px 22px;
    font-size: 14px;
}

/* ---------- Animaciones de aparición ---------- */
.cs-js .cs-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--cs-ease), transform .8s var(--cs-ease);
}

.cs-js .cs-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.cs-reveal[data-delay="1"] { transition-delay: .1s; }
.cs-reveal[data-delay="2"] { transition-delay: .2s; }
.cs-reveal[data-delay="3"] { transition-delay: .3s; }

/* =========================================================================
   CABECERA
   ========================================================================= */
.cs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--cs-header-h);
    display: flex;
    align-items: center;
    transition: background-color .35s, box-shadow .35s, height .35s;
}

/* En páginas sin hero la cabecera siempre es sólida */
#siteWrapper:not(.cs-home) .cs-header,
.cs-header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--cs-line), 0 10px 30px -18px rgba(0, 0, 0, .25);
}

.cs-header.is-scrolled {
    --cs-header-h: 70px;
}

#siteWrapper:not(.cs-home) #pageContent {
    padding-top: var(--cs-header-h);
}

.cs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cs-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Logo transparente (images/logo-consive.png) */
.cs-header__logo img {
    display: block;
    height: 52px;
    width: auto;
    transition: height .35s var(--cs-ease), filter .35s;
}

.cs-header.is-scrolled .cs-header__logo img {
    height: 42px;
}

/* Sobre el hero rojo (cabecera transparente o menú móvil abierto) el logo va en blanco */
#siteWrapper.cs-home .cs-header:not(.is-scrolled) .cs-header__logo img,
.cs-menu-open .cs-header .cs-header__logo img {
    filter: brightness(0) invert(1);
}

.cs-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.cs-nav__list {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#siteWrapper .cs-nav__list a {
    position: relative;
    display: block;
    padding: 6px 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #fff;
}

#siteWrapper:not(.cs-home) .cs-nav__list a,
#siteWrapper .cs-header.is-scrolled .cs-nav__list a {
    color: var(--cs-ink);
}

.cs-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--cs-ease);
}

#siteWrapper .cs-header.is-scrolled .cs-nav__list a::after,
#siteWrapper:not(.cs-home) .cs-nav__list a::after {
    background: var(--cs-red);
}

.cs-nav__list a:hover::after,
.cs-nav__list a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* En la cabecera transparente, el botón "Afíliate" va en blanco */
#siteWrapper.cs-home .cs-header:not(.is-scrolled) .cs-nav a.cs-btn--primary {
    background: #fff;
    color: var(--cs-red);
    box-shadow: none;
}

/* Botón hamburguesa */
.cs-nav-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    cursor: pointer;
}

.cs-nav-toggle span {
    position: absolute;
    left: 13px;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s var(--cs-ease), opacity .2s, background-color .3s;
}

.cs-nav-toggle span:nth-child(1) { top: 16px; }
.cs-nav-toggle span:nth-child(2) { top: 22px; }
.cs-nav-toggle span:nth-child(3) { top: 28px; }

#siteWrapper:not(.cs-home) .cs-nav-toggle,
.cs-header.is-scrolled .cs-nav-toggle {
    background: var(--cs-red-soft);
}

#siteWrapper:not(.cs-home) .cs-nav-toggle span,
.cs-header.is-scrolled .cs-nav-toggle span {
    background: var(--cs-red);
}

.cs-menu-open .cs-nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cs-menu-open .cs-nav-toggle span:nth-child(2) { opacity: 0; }
.cs-menu-open .cs-nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================================
   HERO
   ========================================================================= */
.cs-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--cs-header-h) + 40px) 0 160px;
    color: #fff;
    background: radial-gradient(120% 90% at 85% 20%, #e8333a 0%, var(--cs-red) 35%, var(--cs-red-dark) 70%, var(--cs-red-deep) 100%);
    overflow: hidden;
    isolation: isolate;
}

.cs-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.cs-hero__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 60%, transparent 95%);
    mask-image: linear-gradient(115deg, transparent 20%, #000 60%, transparent 95%);
}

.cs-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    animation: cs-float 14s ease-in-out infinite alternate;
}

.cs-blob--1 {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -140px;
    background: #ff5a5f;
}

.cs-blob--2 {
    width: 460px;
    height: 460px;
    bottom: -180px;
    right: 10%;
    background: #5c0a0e;
    animation-delay: -6s;
}

@keyframes cs-float {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 40px) scale(1.12); }
}

.cs-hero__inner {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 60px;
}

#siteWrapper .cs-hero__title {
    color: #fff;
    font-size: clamp(42px, 6.4vw, 84px);
    line-height: 1.02;
    margin-bottom: 28px;
}

#siteWrapper .cs-hero__title span {
    display: inline-block;
    color: rgba(255, 255, 255, .78);
}

.cs-hero__lead {
    max-width: 560px;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 300;
    color: rgba(255, 255, 255, .92);
}

.cs-hero__lead strong {
    font-weight: 700;
    color: #fff;
}

.cs-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 38px;
}

/* Sello circular (eco del logotipo) */
.cs-hero__badge {
    display: flex;
    justify-content: center;
}

.cs-seal {
    position: relative;
    width: min(400px, 80vw);
    aspect-ratio: 1;
}

.cs-seal__circle {
    position: absolute;
    inset: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 50%;
    background: #fdfdfc;
    box-shadow: inset 0 0 0 3px var(--cs-red), inset 0 0 0 9px #fdfdfc, inset 0 0 0 10px rgba(210, 35, 42, .25), var(--cs-shadow-lg);
    animation: cs-bob 6s ease-in-out infinite;
}

.cs-seal__name {
    font-family: var(--cs-font-title);
    font-size: clamp(40px, 5.2vw, 66px);
    line-height: 1;
    color: var(--cs-red);
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.cs-seal__name b {
    font-weight: 400;
    margin: 0 .02em;
}

.cs-seal__place {
    font-family: var(--cs-font-text);
    font-size: clamp(13px, 1.4vw, 18px);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cs-grey);
}

.cs-seal__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .35);
    animation: cs-pulse 4s var(--cs-ease) infinite;
}

.cs-seal__ring--2 {
    animation-delay: 2s;
}

@keyframes cs-pulse {
    0%   { transform: scale(.85); opacity: 0; }
    30%  { opacity: 1; }
    100% { transform: scale(1.2); opacity: 0; }
}

@keyframes cs-bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* Indicador de scroll */
.cs-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 110px;
    width: 28px;
    height: 46px;
    margin-left: -14px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 16px;
}

.cs-hero__scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: #fff;
    animation: cs-scroll 1.8s ease-in-out infinite;
}

@keyframes cs-scroll {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

.cs-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 90px;
    display: block;
}

.cs-wave path {
    fill: var(--cs-bg);
}

/* =========================================================================
   QUIÉNES SOMOS
   ========================================================================= */
.cs-about {
    padding-top: 80px;
}

.cs-about__grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 70px;
    align-items: center;
}

.cs-about__text p {
    font-size: 18px;
}

.cs-about__text strong {
    color: var(--cs-ink);
}

.cs-stats {
    display: grid;
    gap: 18px;
}

.cs-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
    border-radius: var(--cs-radius);
    background: var(--cs-bg-soft);
    border: 1px solid var(--cs-line);
    transition: transform .35s var(--cs-ease), box-shadow .35s var(--cs-ease);
}

.cs-stat:hover {
    transform: translateX(-6px);
    box-shadow: var(--cs-shadow);
}

.cs-stat__value {
    flex: 0 0 110px;
    font-family: var(--cs-font-title);
    font-size: 44px;
    line-height: 1;
    color: var(--cs-red);
}

.cs-stat__value sup {
    font-size: .45em;
    vertical-align: super;
}

.cs-stat__label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--cs-ink);
}

.cs-stat--accent {
    background: linear-gradient(135deg, var(--cs-red), var(--cs-red-dark));
    border-color: transparent;
    box-shadow: var(--cs-shadow-lg);
}

.cs-stat--accent .cs-stat__value,
.cs-stat--accent .cs-stat__label {
    color: #fff;
}

/* Perfiles */
.cs-profiles {
    margin-top: 90px;
}

#siteWrapper .cs-profiles__title {
    font-size: clamp(24px, 2.6vw, 32px);
    text-align: center;
    margin-bottom: 40px;
}

.cs-profiles__list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 14px;
    text-align: center;
    border-radius: var(--cs-radius);
    background: #fff;
    border: 1px solid var(--cs-line);
    transition: transform .35s var(--cs-ease), box-shadow .35s var(--cs-ease), border-color .35s;
}

.cs-profile:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--cs-shadow);
}

.cs-profile__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 26px;
    color: var(--cs-red);
    background: var(--cs-red-soft);
    transition: background-color .35s, color .35s, transform .35s var(--cs-ease);
}

.cs-profile:hover .cs-profile__icon {
    background: var(--cs-red);
    color: #fff;
    transform: rotate(-8deg) scale(1.08);
}

.cs-profile__name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cs-ink);
}

/* =========================================================================
   PANES
   ========================================================================= */
/* Sección de contenido libre: oculta si está vacía (salvo en modo edición) */
body:not(.dnnEditState) .cs-section--optional:has(.DNNEmptyPane) {
    display: none;
}

.cs-section--optional {
    padding: 60px 0;
}

/* Marcador de posición para panes reservados a módulos futuros */
.cs-pane--placeholder.DNNEmptyPane {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--cs-grey-light);
    border-radius: var(--cs-radius-sm);
}

.cs-pane--placeholder.DNNEmptyPane::before {
    content: attr(data-placeholder);
    padding: 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--cs-grey);
}

/* =========================================================================
   AFILIACIÓN
   ========================================================================= */
.cs-join {
    color: rgba(255, 255, 255, .9);
    background: linear-gradient(135deg, var(--cs-red-dark) 0%, var(--cs-red) 55%, #e2363d 100%);
    overflow: hidden;
    isolation: isolate;
}

.cs-join__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 12% 110%, rgba(255, 255, 255, .14) 0 180px, transparent 181px),
        radial-gradient(circle at 12% 110%, transparent 0 260px, rgba(255, 255, 255, .08) 261px 262px, transparent 263px),
        radial-gradient(circle at 95% -10%, rgba(0, 0, 0, .14) 0 220px, transparent 221px);
}

/* Afiliación justo debajo del hero (sin "Quiénes somos"): la propia sección sube
   sobre el hero recortada con la forma de la ola, para que ambos rojos enlacen */
.cs-join--wave {
    --cs-wave-h: 90px;
    margin-top: calc(var(--cs-wave-h) * -1);
    padding-top: calc(110px + var(--cs-wave-h));
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C240,120 480,120 720,80 C960,40 1200,16 1440,48 L1440,120 L0,120 Z'/%3E%3C/svg%3E") 0 0 / 100% var(--cs-wave-h) no-repeat,
        linear-gradient(#000, #000) 0 calc(var(--cs-wave-h) - 1px) / 100% 100% no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0,64 C240,120 480,120 720,80 C960,40 1200,16 1440,48 L1440,120 L0,120 Z'/%3E%3C/svg%3E") 0 0 / 100% var(--cs-wave-h) no-repeat,
        linear-gradient(#000, #000) 0 calc(var(--cs-wave-h) - 1px) / 100% 100% no-repeat;
}

/* En modo edición aparece el pane opcional entre ambas secciones: sin solapamiento */
body.dnnEditState .cs-join--wave {
    margin-top: 0;
    padding-top: 110px;
    -webkit-mask: none;
    mask: none;
}

/* Texto arriba y formulario debajo a todo el ancho (el formulario tiene muchos campos) */
.cs-join__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.cs-join__text {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

#siteWrapper .cs-join__text p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.cs-join__text .cs-eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.cs-join__text p {
    font-size: 18px;
}

.cs-checks {
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cs-checks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.cs-checks i {
    font-size: 20px;
}

.cs-join__card {
    box-sizing: border-box;
    width: 100%;
    max-width: 960px;
    padding: 56px 64px;
    border-radius: 24px;
    background: #fff;
    color: var(--cs-text);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}

/* =========================================================================
   FAQ
   ========================================================================= */
.cs-faq {
    background: var(--cs-bg-soft);
}

.cs-faq__grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 70px;
    align-items: start;
}

.cs-faq__intro {
    position: sticky;
    top: calc(var(--cs-header-h) + 30px);
}

.cs-faq__intro p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Estilos base para el futuro módulo de FAQ (usa <details>/<summary>) */
.cs-faq__list details {
    margin-bottom: 14px;
    border-radius: var(--cs-radius-sm);
    background: #fff;
    border: 1px solid var(--cs-line);
    transition: box-shadow .3s, border-color .3s;
}

.cs-faq__list details[open] {
    border-color: transparent;
    box-shadow: var(--cs-shadow);
}

.cs-faq__list summary {
    position: relative;
    padding: 22px 64px 22px 26px;
    font-family: var(--cs-font-title);
    font-size: 19px;
    color: var(--cs-ink);
    cursor: pointer;
    list-style: none;
}

.cs-faq__list summary::-webkit-details-marker {
    display: none;
}

/* El "+" se dibuja con dos líneas (no con un carácter) para que quede centrado al píxel;
   al abrir gira 45° y se convierte en "×" */
.cs-faq__list summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    color: var(--cs-red);
    background-color: var(--cs-red-soft);
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-size: 12px 2px, 2px 12px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .3s var(--cs-ease), background-color .3s, color .3s;
}

.cs-faq__list details[open] summary::after {
    transform: rotate(45deg);
    background-color: var(--cs-red);
    color: #fff;
}

.cs-faq__list details > :not(summary) {
    padding: 0 26px 22px;
    margin: 0;
}

/* =========================================================================
   PIE
   ========================================================================= */
.cs-footer {
    background: var(--cs-ink);
    color: rgba(255, 255, 255, .65);
    font-size: 15px;
}

.cs-footer__grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-top: 70px;
    padding-bottom: 50px;
}

.cs-footer__brand {
    max-width: 380px;
}

.cs-footer__name {
    display: block;
    font-family: var(--cs-font-title);
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

.cs-footer__name b {
    font-weight: 400;
    color: var(--cs-red);
}

.cs-footer__place {
    display: block;
    margin: 8px 0 18px;
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--cs-grey-light);
}

.cs-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 34px;
}

#siteWrapper .cs-footer__nav a {
    color: #fff;
    font-weight: 700;
}

#siteWrapper .cs-footer__nav a:hover {
    color: var(--cs-red);
}

.cs-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}

.cs-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.cs-footer__bottom .footer-terms-privacy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

#siteWrapper .cs-footer__bottom a,
#siteWrapper .cs-footer__bottom .SkinObject {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
}

#siteWrapper .cs-footer__bottom a:hover {
    color: #fff;
}

/* =========================================================================
   PÁGINAS LEGALES (privacidad, términos, cookies) — módulo HTML con .cs-legal
   ========================================================================= */
.cs-legal {
    padding: 60px 0 100px;
}

#siteWrapper .cs-legal h1 {
    font-size: clamp(34px, 5vw, 50px);
    margin-bottom: .25em;
}

#siteWrapper .cs-legal h2 {
    font-size: clamp(22px, 2.6vw, 27px);
    margin-top: 2.2em;
    padding-left: 16px;
    border-left: 3px solid var(--cs-red);
}

.cs-legal__updated {
    color: var(--cs-grey);
    font-size: 15px;
    margin-bottom: 40px;
}

.cs-legal ul {
    padding-left: 1.3em;
    margin: 0 0 1.2em;
}

.cs-legal li {
    margin-bottom: .45em;
}

.cs-legal li::marker {
    color: var(--cs-red);
}

.cs-legal mark {
    background: #fff1a8;
    color: var(--cs-ink);
    padding: 0 .25em;
    border-radius: 3px;
}

.cs-legal__table {
    overflow-x: auto;
    margin: 1.2em 0 1.6em;
    border: 1px solid var(--cs-line);
    border-radius: var(--cs-radius-sm);
}

.cs-legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}

.cs-legal th,
.cs-legal td {
    text-align: left;
    vertical-align: top;
    padding: 12px 16px;
    border-bottom: 1px solid var(--cs-line);
}

.cs-legal th {
    background: var(--cs-bg-soft);
    color: var(--cs-ink);
    font-weight: 700;
}

.cs-legal tr:last-child td {
    border-bottom: 0;
}

.cs-legal__btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--cs-red);
    color: #fff;
    font-family: var(--cs-font-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(210, 35, 42, .7);
    transition: background-color .25s, transform .25s var(--cs-ease);
}

.cs-legal__btn:hover {
    background: var(--cs-red-dark);
    transform: translateY(-2px);
}

/* =========================================================================
   PÁGINA 404 — módulo HTML con .cs-404
   ========================================================================= */
.cs-404 {
    max-width: 680px;
    margin: 0 auto;
    padding: 90px 0 120px;
    text-align: center;
}

.cs-404__code {
    display: block;
    margin-bottom: 10px;
    font-family: var(--cs-font-title);
    font-size: clamp(110px, 22vw, 210px);
    line-height: .9;
    letter-spacing: .02em;
    color: var(--cs-red);
    background: linear-gradient(135deg, #e8333a 0%, var(--cs-red) 40%, var(--cs-red-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
}

/* Centrado: línea también a la derecha, como en Afiliación */
.cs-404 .cs-eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

#siteWrapper .cs-404 h1 {
    font-size: clamp(30px, 4.4vw, 44px);
    margin-bottom: .45em;
}

#siteWrapper .cs-404 p {
    font-size: 18px;
    color: var(--cs-text);
}

.cs-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 34px 0 26px;
}

#siteWrapper .cs-404 .cs-404__help {
    font-size: 15px;
    color: var(--cs-grey);
}

#siteWrapper .cs-404 .cs-404__help a {
    font-weight: 700;
}

/* Volver arriba */
#siteWrapper a.cs-totop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cs-red);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 12px 26px -10px rgba(210, 35, 42, .8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s, transform .3s var(--cs-ease), visibility .3s, background-color .3s;
}

.cs-totop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#siteWrapper a.cs-totop:hover {
    background: var(--cs-red-dark);
    color: #fff;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
    .cs-profiles__list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    :root {
        --cs-header-h: 72px;
    }

    .cs-section {
        padding: 80px 0;
    }

    .cs-join--wave {
        padding-top: calc(80px + var(--cs-wave-h));
    }

    body.dnnEditState .cs-join--wave {
        padding-top: 80px;
    }

    .cs-nav-toggle {
        display: block;
    }

    .cs-header__logo img,
    .cs-header.is-scrolled .cs-header__logo img {
        height: 40px;
    }

    /* Menú móvil a pantalla completa */
    .cs-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        background: linear-gradient(160deg, var(--cs-red) 0%, var(--cs-red-deep) 100%);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .35s, transform .35s var(--cs-ease), visibility .35s;
    }

    .cs-menu-open .cs-nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .cs-menu-open {
        overflow: hidden;
    }

    /* backdrop-filter crearía un contexto que recortaría el menú fijo */
    .cs-menu-open .cs-header {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .cs-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 22px;
    }

    #siteWrapper .cs-nav__list a,
    #siteWrapper .cs-header.is-scrolled .cs-nav__list a,
    #siteWrapper:not(.cs-home) .cs-nav__list a {
        font-family: var(--cs-font-title);
        font-size: 30px;
        font-weight: 400;
        color: #fff;
    }

    #siteWrapper .cs-nav__list a::after {
        background: #fff;
    }

    #siteWrapper .cs-nav a.cs-btn--primary {
        background: #fff;
        color: var(--cs-red);
    }

    .cs-menu-open .cs-nav-toggle {
        background: rgba(255, 255, 255, .15);
    }

    .cs-menu-open .cs-nav-toggle span {
        background: #fff;
    }

    .cs-hero__inner,
    .cs-about__grid,
    .cs-faq__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .cs-hero {
        text-align: center;
        padding-bottom: 140px;
    }

    .cs-hero .cs-eyebrow::before {
        display: none;
    }

    .cs-hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .cs-hero__actions {
        justify-content: center;
    }

    .cs-hero__badge {
        order: -1;
    }

    .cs-seal {
        width: min(260px, 70vw);
    }

    .cs-hero__scroll {
        display: none;
    }

    .cs-stat:hover {
        transform: none;
    }

    .cs-faq__intro {
        position: static;
    }

    .cs-join__card {
        padding: 28px;
    }

    .cs-footer__grid {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .cs-checks li {
        width: 100%;
        text-align: left;
        border-radius: 14px;
    }

    .cs-join__card {
        padding: 26px 20px;
    }

    .cs-container {
        padding: 18px;
    }

    .cs-profiles__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .cs-stat {
        padding: 20px;
    }

    .cs-stat__value {
        flex-basis: 84px;
        font-size: 34px;
    }

    .cs-hero__actions .cs-btn {
        width: 100%;
        justify-content: center;
    }

    .cs-wave {
        height: 50px;
    }

    .cs-join--wave {
        --cs-wave-h: 50px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .cs-js .cs-reveal {
        opacity: 1;
        transform: none;
    }
}
