/* =====================================================================
   cssInicioSimple.css — Arita front page (CapaWeb/Auth)
   Connected 2026-10-26: byte-for-byte copy of the prototype
   Prototipos/AritaInicioClaudeAdjusted/Styles/cssInicioSimple_v3.css
   (only the file names in these comments changed).
   Stage 1: Background
   Stage 2: Header (adjusted: logo button, icon order/sizes, 60% background)
   Stage 4: Servicios (title + three sections joined by braces and arrows)
   Stage 5: Misión (title + five cards that wrap when the window narrows)
   Stage 6: Videos (title + subtitle + five topics, each a link with a video-like image)
   Stage 7: Quiénes Somos (title + picture at the left, presentation at the right)
   Stage 8: Pie de Página (navy band with three sections: left, center, right)
   Stage 9: "En Construcción" dialog, reduced motion, phone layout (< 1024px)
   Design review 2026-10-18: focus ring, chapter links, tabs grid, tooltip
   reach, tokens (see claude/PLAN-InicioSimple-design-review-2026-10-17.md)
   Taste-skill audit 2026-10-18: balanced headings, pills fill on keyboard
   focus only, enabled bullet scaled by transform
   Motion pass 2026-10-18 (emilkowalski-motion): one motion language
   (three duration tokens, one ease-out curve), the liquid fills fade in
   on a layer instead of snapping, press feedback on the controls, the
   dialog and its backdrop fade in, the trail dots pop in
   Critique 2026-10-18 (impeccable critique, P1-P3): thin scrollbar, H1
   one step above the area titles, Servicios sub-lines + tooltip in the
   page's own shape system + line-height 1.3, inline CTAs underlined at
   rest, Quiénes Somos at 60ch, footer links on :focus-visible; phones:
   explanation in the flow of the list, chapter strip fades at its edge
   Review-animations 2026-10-18: bullets crossfade (two images, no src
   swap), tooltip opens in the state tier, user-driven concept changes
   in the state tier, hover motion gated to fine pointers, reduced
   motion keeps the fades, the dialog exits, --duracionControl 160ms
   Review 2026-10-21: Videos (now area 6) is placed before Quiénes Somos
   (now area 7) in the HTML; the Videos subtitle is back
   (.titSubtituloVideos, one size step under the area title). The
   CSS blocks keep their place in this sheet.
   Review 2026-10-21 (b): Misión and Videos on a navy band (the
   tooltips' --colorAzulProfundo) with their text, rings and shadows
   reversed to white and light blue, so the page alternates light and
   dark while scrolling (block 6b, after Videos)
   Review 2026-10-21 (c): header in four columns (logo | chapter links |
   buttons | icons): the buttons moved before the icons, set apart from
   them; the chapter links in regular weight, centered between
   "Servicios Contables" and the buttons; presentation text under the H1
   (.descTituloPagina, the type of the Concepto Principal prose)
   2026-10-22: "Términos y Condiciones" dialog (block 12, before REDUCED
   MOTION), in the quote dialog's box
   2026-10-22 (c): footer link "Política de Privacidad" with a spaced
   hyphen before the terms link (block 8); block 12 also serves the
   "Política de Privacidad" dialog (.dlgTerminos), and its text now has
   several paragraphs per clause and H4 sub-headings
   2026-10-22 (d): footer label in singular; the links inside the two
   documents (email, WhatsApp, the policy) wear .enlaceInline, no new rule
   2026-10-22 (e): quote summary, the amounts of "Cotización preliminar"
   centered in their cards (.tarjetaMonto dd); the labels stay at the left;
   .titCotizacion:focus removed (the title no longer takes the focus)
   2026-10-23: "Solicitud de Reunión Virtual" dialog (block 14, before
   REDUCED MOTION), opened by the header pill "Contáctenos", in the quote
   dialog's box; 2026-10-23 (b): one line under its kicker, equal
   centered pills, gray placeholders, "Enviar" disabled (block 14 only)
   2026-10-23 (c): "Ingresar a Arita" dialog (block 15, before REDUCED
   MOTION), opened by the header icon "Entrar a Arita", in the quote
   dialog's box; 2026-10-23 (d): "¿Olvidó su contraseña?" in the row of
   "Ingresar", at its left end, the modal keeping its height and width;
   under 600px (phones) the two are stacked, "Ingresar" last
   2026-10-26: Servicios (now area 4) is placed before Misión (now area
   5) in the HTML (the CSS blocks keep their place in this sheet); block
   6b now reverses Servicios and Videos: Servicios on the navy band (its
   legend white, its tooltips a light box), Misión back on the page's
   own light background (block 5 unchanged)
   2026-10-26 (b): Servicios without tooltips: each .microExplanation
   opens in the flow under its service (the GAIS prototype's accordion
   and panel), on hover (fine pointers) and on click (.abierto, JS);
   the ▾ after the name (.iconoAcordeon) turns up while it is open
   2026-10-26 (c): the description unrolls from top to bottom like
   paper: its box animates its height (0 -> --altoHoja, published by the
   JS) and uncovers the sheet (.hojaExplicacion), which never moves nor
   fades; 500ms on a smooth ease-in-out (--curvaDesenrollar)
   2026-10-26 (e): block 14, the dialog's confirmation state once the
   email is sent from Arita: [hidden] rules for the medium pills, the
   confirmation line and the dialog buttons (the JS swaps them), the
   line in the quote's .confirmacionCotizacion type, centered
   2026-10-26 (h): the quote summary's own contact panel is gone from
   the HTML; its rules under block 10 stay for dialog 11 (no rule changed)
   2026-10-26 (i): the header legend "Servicios Contables" is gone from
   the HTML (the logo image reads it), and so are its .lemaEncabezado
   rules (block 2 and the phone block); in block 6b the descriptions'
   sheet (.hojaExplicacion) takes --colorSubtituloInvertido
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
    /* Sampled from the bottom edge of "Aritas Frontpage Background.png"
       (average of the last pixel row). The page continues in this color
       below the image, so the transition is invisible. */
    --colorFondoContinuo: #E3EDF6;

    /* Blues sampled from the login / notifications icons, so text and
       buttons match them. */
    --colorAzulProfundo: #1B327E;   /* darkest part of the icons */
    --colorAzulMedio:    #2F4D80;
    --colorCeleste:      #4FA5C9;   /* light glow of the icons   */
    --colorAzulTitular:  #2A64A8;   /* lighter blue for the H2 titles,
                                       taken from the middle of the
                                       liquid gradient and darkened a
                                       step (design review 6.3): 5.05:1
                                       on --colorFondoContinuo, so the
                                       bold legends pass AA too */

    /* Main text color on the light background */
    --colorTexto: #1B2A4E;

    /* Red and blue of the Costa Rica Contable logo (most frequent red and
       blue pixels of LogoGrande_t.png). */
    --colorRojoLogo: #B4001B;
    --colorAzulLogo: #00267B;

    /* Minimum width of the desktop layout; under it the phone layout at
       the end of this sheet applies (design review 6.1). */
    --anchoMinimo: 1024px;

    /* 2.- Header height
       The Stage 1 header placeholder measured 12vh; reduced by 20% -> 9.6vh. */
    --altoEncabezado: calc(12vh * 0.8);

    /* Header background: #F6F9FC at 60% opacity (only the background;
       the logo, buttons and icons stay at full opacity). */
    --colorFondoEncabezado: rgba(246, 249, 252, 0.6);

    /* Header images (transparent copies *_t.png, cropped to the drawing).
       Values chosen so the drawings keep their previous visible size,
       except: notifications -15%, login +10%. */
    --altoLogo:           calc(var(--altoEncabezado) * 0.84);
    --altoIconoNotif:     calc(var(--altoEncabezado) * 0.51);
    --altoIconoLogin:     calc(var(--altoEncabezado) * 0.60);

    /* Body font: Segoe UI on Windows; the system sans on macOS (San
       Francisco) and Linux (Noto Sans) before falling to Arial. */
    --fuentePrincipal: "Segoe UI", -apple-system, "Helvetica Neue", "Noto Sans",
                       Arial, sans-serif;

    /* Font for the header buttons: Cambria, falling back on similar
       serif faces. */
    --fuenteBotones: Cambria, "Palatino Linotype", Palatino, Georgia,
                     "Times New Roman", serif;

    /* "Liquid" gradient taken from the login icon: deep navy at the
       bottom-right, bright cyan at the top-left, like its glass shine. */
    --liquidoBorde: linear-gradient(150deg,
                    #8FDCF2 0%, #4FA5C9 30%, #2F6FB5 60%, #1B327E 100%);
    --liquidoRelleno: linear-gradient(165deg,
                    #6ECBE8 0%, #3D7FBF 48%, #1B327E 100%);

    /* Motion: one language for the whole page. Controls (hover, press,
       underline, fill) answer in --duracionControl; a change of state
       (the bullet growing, a thumbnail zooming, the dialog opening)
       takes --duracionEstado; the content of a concept (column 3 and
       column 4) arrives in --duracionRevelado. Everything moves on the
       same ease-out curve: fast start, soft landing. Only transform and
       opacity are animated (the one exception: a service description
       unrolling in the flow, its height, 2026-10-26). */
    --duracionControl:  160ms;
    --duracionEstado:   260ms;
    --duracionRevelado: 500ms;
    --curvaMotion:      cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background-color: var(--colorFondoContinuo);

    /* The page scrolls (mouse wheel, trackpad, keyboard) with a thin navy
       scrollbar: on a page three to seven screens tall it is the only cue
       of the page's length (critique 2026-10-18; it was hidden before). */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(27, 50, 126, 0.55) transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: var(--anchoMinimo);
    min-height: 100vh;
    font-family: var(--fuentePrincipal);
    color: var(--colorTexto);

    /* 1.- Background
       The image is anchored at the top, always at the full width of the window
       (keeps its 1440x900 proportion, never distorted or cropped sideways).
       Below the image, the page continues in --colorFondoContinuo. */
    background-color: var(--colorFondoContinuo);
    background-image: url("../Images/Aritas Frontpage Background_web.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    background-attachment: scroll;  /* the background scrolls with the page */
}

/* ---------- Page frame ----------
   Holds the 7 areas that sit on top of the background. */
.sexPaginaInicio {
    position: relative;
    width: 100%;
}

/* ---------- Focus ring ----------
   One rule for every interactive element (header buttons, chapter
   links, concept tabs, service items, video links, inline buttons,
   footer links, dialog button): navy, about 10:1 on the background.
   The footer links add a 1px white halo inside the ring so it reads on
   the navy band too. */
:focus-visible {
    outline: 2px solid var(--colorAzulProfundo);
    outline-offset: 2px;
}

.sexPiePagina :focus-visible {
    box-shadow: 0 0 0 1px #FFFFFF;
}

/* The chapter links land each area under the sticky header: the
   measured header height (written by the JS as --altoEncabezadoReal)
   is reserved above the area. */
.sexPaginaInicio section {
    scroll-margin-top: var(--altoEncabezadoReal, var(--altoEncabezado));
}

/* ---------- Scroll reveal of the areas ----------
   Servicios, Misión, Videos and Quiénes Somos arrive when they enter
   the screen: jsInicioSimple.js marks .revelable at start those that
   begin below the first screen (so without JS, and on the first
   screen, everything is simply visible) and .revelado the first
   time each one crosses into view. Opacity and transform only, in the
   content tier of the motion tokens. Once revealed the section has
   neither, so it creates no stacking context (the service tooltips
   that hung below their area had to paint over the next one; since
   2026-10-26 the descriptions open in the flow). Under reduced motion
   the JS never marks them. */
.revelable {
    opacity: 0;
    transform: translateY(16px);
}

.revelable.revelado {
    opacity: 1;
    transform: none;
    transition: opacity var(--duracionRevelado) var(--curvaMotion),
                transform var(--duracionRevelado) var(--curvaMotion);
}

/* =====================================================================
   2.- HEADER
   ===================================================================== */
.sexEncabezado {
    /* Sticky: stays at the top of the window while the page scrolls. */
    position: sticky;
    top: 0;
    z-index: 100;

    height: var(--altoEncabezado);
    padding: 0 3vw;

    /* Four columns: logo | chapter links | buttons | icons (review
       2026-10-21 (c)). The links take the free width between the logo
       and the first button, and sit at its center. */
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;

    /* 60% opaque background; the blur softens whatever scrolls underneath
       so the header content stays readable. */
    background-color: var(--colorFondoEncabezado);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 50, 126, 0.10);
    box-shadow: 0 2px 14px rgba(27, 50, 126, 0.08);
}

/* ----- Left: logo ----- */
.sexEncabezadoIzquierda {
    justify-self: start;
    height: 100%;
    display: flex;
    align-items: center;
}

.btnLogoEncabezado {
    /* Clicking the logo returns to the top of the page (see JS). */
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: transform var(--duracionControl) var(--curvaMotion);
}

@media (hover: hover) and (pointer: fine) {
    .btnLogoEncabezado:hover {
        transform: translateY(-2px) scale(1.06);   /* same as the right icons */
    }
}

/* Pressed: the lift settles back, so the click is felt. */
.btnLogoEncabezado:active {
    transform: translateY(0) scale(1.02);
}

.imgLogoCRC {
    height: var(--altoLogo);
    width: auto;
    display: block;
}

/* ----- Center: chapter links (the nav) -----
   Centered in its column, that is, halfway between the logo and the
   first button. The equal padding at both sides keeps some air from
   each of them without moving the center. */
.sexEncabezadoCentro {
    justify-self: center;
    display: flex;
    align-items: center;
    padding: 0 1.2vw;
}

/* ----- Right: buttons, before the icons -----
   The two pills keep their 1.2vw gap; the right margin, wider than any
   gap inside either pair, sets them apart from the icons, so the buttons
   and the icons read as two separate groups. */
.sexBotonesEncabezado {
    display: flex;
    align-items: center;
    gap: 1.2vw;
    margin-right: 3vw;
}

.btnEncabezado {
    position: relative;             /* anchor for the ::before border ring */
    isolation: isolate;             /* the ::after fill (z-index -1) stays inside the button */
    font-family: var(--fuenteBotones);
    font-size: clamp(14px, 2.0vh, 19px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--colorAzulProfundo);

    height: calc(var(--altoEncabezado) * 0.46);
    padding: 0 1.6em;
    border: none;
    border-radius: 999px;           /* pill shape */
    background-color: transparent;  /* the inside stays transparent */
    cursor: pointer;

    transition: color var(--duracionControl) var(--curvaMotion),
                box-shadow var(--duracionControl) var(--curvaMotion),
                text-shadow var(--duracionControl) var(--curvaMotion),
                transform var(--duracionControl) var(--curvaMotion);
}

/* Liquid border, like the login icon: a ring carrying the icon's
   navy-to-cyan glass gradient. The ring is painted on this layer and
   masked so that only the 2px edge remains; the button itself keeps a
   transparent background. */
.btnEncabezado::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;                   /* thickness of the ring */
    background: var(--liquidoBorde);
    -webkit-mask: linear-gradient(#FFF 0 0) content-box,
                  linear-gradient(#FFF 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#FFF 0 0) content-box,
          linear-gradient(#FFF 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Liquid fill, on its own layer under the text: a gradient cannot be
   transitioned, so the layer is always painted and only its opacity
   moves. The inset shadows (top shine, bottom shade of the icons) live
   on this layer too, so they fade in with it. */
.btnEncabezado::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;                    /* above the button's background, under its text */
    border-radius: inherit;
    background: var(--liquidoRelleno);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.55),
                inset 0 -4px 9px rgba(10, 22, 64, 0.45);
    opacity: 0;
    transition: opacity var(--duracionControl) var(--curvaMotion);
    pointer-events: none;
}

/* On hover (fine pointers only: a tap must not leave the pill filled)
   and on keyboard focus the inside fills with the liquid gradient (a
   mouse click does not leave the pill filled). */
.btnEncabezado:focus-visible {
    color: #FFFFFF;
    box-shadow: 0 3px 12px rgba(27, 50, 126, 0.30);
    text-shadow: 0 1px 2px rgba(10, 22, 64, 0.45);
}

.btnEncabezado:focus-visible::after {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    .btnEncabezado:hover {
        color: #FFFFFF;
        box-shadow: 0 3px 12px rgba(27, 50, 126, 0.30);
        text-shadow: 0 1px 2px rgba(10, 22, 64, 0.45);
    }

    .btnEncabezado:hover::after {
        opacity: 1;
    }
}

/* Pressed: the pill gives a little under the pointer. */
.btnEncabezado:active {
    transform: scale(0.97);
}

/* ----- Center: chapter links -----
   Four plain text links (Servicios · Misión · Videos · Quiénes Somos):
   Cambria, the pills' navy, no pill, regular weight (review 2026-10-21
   (c); bold before). The link of the chapter on screen (.actual, set by
   the JS) is underlined in celeste. */
.sexCapitulos {
    display: flex;
    align-items: center;
    gap: 1.2vw;
}

.enlaceCapitulo {
    font-family: var(--fuenteBotones);
    font-size: clamp(14px, 2.0vh, 19px);
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--colorAzulProfundo);
    white-space: nowrap;
    padding: 0.15em 0.1em;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
    transition: text-decoration-color var(--duracionControl) var(--curvaMotion);
}

.enlaceCapitulo:hover,
.enlaceCapitulo:focus-visible {
    text-decoration-color: var(--colorAzulProfundo);
}

.enlaceCapitulo.actual {
    text-decoration-color: var(--colorCeleste);
}

/* ----- Right: icons ----- */
.sexEncabezadoDerecha {
    justify-self: end;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.9vw;
}

.btnIconoEncabezado {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: transform var(--duracionControl) var(--curvaMotion);
}

@media (hover: hover) and (pointer: fine) {
    .btnIconoEncabezado:hover {
        transform: translateY(-2px) scale(1.06);
    }
}

/* Pressed: the lift settles back (as the logo). */
.btnIconoEncabezado:active {
    transform: translateY(0) scale(1.02);
}

.imgIconoEncabezado {
    width: auto;
    display: block;
}

#btnNotificaciones .imgIconoEncabezado {
    height: var(--altoIconoNotif);
}

#btnLogin .imgIconoEncabezado {
    height: var(--altoIconoLogin);
}

/* =====================================================================
   FIXED PAGE TITLE  (the page's only H1)
   ===================================================================== */
.sexTituloPagina {
    padding: 2.5vh 5vw 2vh;         /* bottom doubled: more air before the table */
    text-align: center;
}

.titPagina {
    margin: 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(32px, 5.5vh, 50px);    /* one step above the area titles
                                               (.titArea), so the page has a
                                               single top (critique 2026-10-18) */
    font-weight: bold;
    line-height: 1.15;
    color: var(--colorAzulProfundo);
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.25);
}

/* Presentation of the firm under the H1 (review 2026-10-21 (c)): the
   type of the Concepto Principal prose (.sexBloqueExplicax p; the brand
   names in .marcaDestacada), centered under the title in balanced lines. */
.descTituloPagina {
    margin: 0.8em 0 0 0;
    font-size: clamp(15px, 2.2vh, 19px);
    line-height: 1.55;
    color: var(--colorTexto);
    text-wrap: balance;
}

/* Every heading wraps in balanced lines, so no single word is left alone
   on its last line (at 1440px the H1 broke as "...en Costa" / "Rica").
   Browsers without text-wrap: balance ignore the rule. */
.titPagina,
.titExplicaxConcepto,
.titArea,
.titSeccionServicios,
.titQuienesSomos,
.titTarjetaMision,
.titTemaVideo,
.titSubtituloVideos,
.titDialogo {
    text-wrap: balance;
}

/* =====================================================================
   3.- MAIN CONCEPT  (Concepto Principal)
   Four columns of the screen's width:
   5% bullets | 15% concept text | 45% explanation | 35% image
   ===================================================================== */
.sexConceptoPrincipal {
    /* Vertical rhythm of the bullet list: each bullet sits at the center
       of a row this tall, so consecutive bullets are 3 cm apart. */
    --pasoBullet: 3cm;

    /* Diameter of the bullet image (disabled state). */
    --tamanoBullet: 0.55cm;

    /* The enabled image (bullet-enabled.png) is drawn larger so that its
       INNER circle has exactly the size of the disabled bullet: in the
       source image the ratio outer/inner is 964/440 = 2.19. It is scaled
       with a transform (no layout work, composited), so its layout box
       stays --tamanoBullet and the cells never move. */
    --escalaBulletActivo: 2.19;

    position: relative;                     /* anchors the dot trail */
    display: grid;
    grid-template-columns: 5% 15% 45% 35%;
    grid-auto-rows: var(--pasoBullet);
    width: 100%;
}

/* The tablist (bullets + concept texts) takes columns 1 and 2 of the
   section and the five rows; inside, its own grid repeats the 5% | 15%
   split (25% | 75% of its 20%), so the bullets and the texts sit exactly
   where they did when they were direct children of the section. */
.listaConceptos {
    grid-column: 1 / 3;
    grid-row: 1 / span 5;
    display: grid;
    grid-template-columns: 25% 75%;
    grid-auto-rows: var(--pasoBullet);
}

/* ----- 3.1 Bullets (column 1) -----
   Each cell holds the two images of the bullet, stacked at its center:
   the disabled disk and the enabled ring. A change of concept crossfades
   them (review-animations 2026-10-18: swapping one <img>'s src while its
   scale transitioned showed the ring at the disk's size for a frame, and
   the disk at the ring's). */
.sexBulletConcepto {
    grid-column: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.imgBulletConcepto {
    grid-area: 1 / 1;
    width: var(--tamanoBullet);
    height: var(--tamanoBullet);
    display: block;
    transition: opacity var(--duracionEstado) var(--curvaMotion),
                transform var(--duracionEstado) var(--curvaMotion);
}

/* Enabled ring: scaled around the cell's center (its layout box does
   not change). Hidden, it waits one step smaller, so it grows into
   place while it fades in. */
.imgBulletActivo {
    opacity: 0;
    transform: scale(calc(var(--escalaBulletActivo) * 0.9));
}

.sexBulletConcepto.activo .imgBulletActivo {
    opacity: 1;
    transform: scale(var(--escalaBulletActivo));
}

.sexBulletConcepto.activo .imgBulletInactivo {
    opacity: 0;
}

/* ----- 3.2 Concept text (column 2) ----- */
.sexTextoConcepto {
    grid-column: 2;
    display: flex;
    align-items: center;
    cursor: pointer;

    font-family: var(--fuenteBotones);      /* Cambria, like the header buttons */
    font-size: clamp(15.8px, 2.29vh, 22.9px);
    font-weight: normal;
    letter-spacing: 0.02em;
    color: var(--colorAzulProfundo);
    transition: text-shadow var(--duracionControl) var(--curvaMotion);
}

/* Hovering a concept (its bullet or its text) shows the text in italic
   (fine pointers only: a tap must not leave it in italic). The bullet
   div is immediately followed by its text div in the HTML, so the "+"
   selector reaches the text from the hovered bullet. */
@media (hover: hover) and (pointer: fine) {
    .sexBulletConcepto:hover + .sexTextoConcepto,
    .sexTextoConcepto:hover {
        font-style: italic;
    }
}

/* Text of the enabled concept. */
.sexTextoConcepto.activo {
    font-weight: bold;
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.35);
}

/* ----- Dot trail between the enabled bullet and the next one -----
   The overlay covers the whole section; jsInicioSimple.js creates it
   and adds the dots one by one, from the moment the concept is enabled
   until its time is over (review 2026-10-20: the trail is the time-left
   indicator of the concept on screen). */
#senderoConceptos {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Dot and glow at 75% of their first size (review 2026-10-20: 5px and
   6px before). The spacing between dots (JS) did not change. */
.dotSendero {
    position: absolute;
    width: 3.75px;
    height: 3.75px;
    transform: translateX(-50%);            /* centers the dot on the x given by JS */
    border-radius: 50%;
    background: var(--colorCeleste);
    box-shadow: 0 0 4.5px rgba(79, 165, 201, 0.9);

    /* Each dot pops in when the JS adds it (the trail is progress, so
       its steps are shown). The keyframes repeat the centering. */
    animation: aparecerDot var(--duracionControl) var(--curvaMotion);
}

@keyframes aparecerDot {
    from { opacity: 0; transform: translateX(-50%) scale(0.4); }
    to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* ----- 3.3 Explanation of the Concept (column 3) -----
   The five blocks (tab panels) live in the HTML; jsInicioSimple.js
   shows the enabled concept's block every time a concept becomes enabled. */
.sexExplicaxConcepto {
    grid-column: 3;
    grid-row: 1 / span 5;                   /* as tall as the 5 bullet rows */
    position: relative;                     /* anchors .leyendaReportes */
    display: flex;
    flex-direction: column;
    justify-content: center;                /* vertically centered */
    padding: 0 2vw;
}

/* Legend pinned to the bottom of column 3, right-aligned; same size as
   the description text, same font and color as the H2 titles. */
.leyendaReportes {
    position: absolute;
    right: 2vw;                             /* aligned with the text's right edge */
    bottom: 0.8vh;
    text-align: right;
    font-family: var(--fuenteBotones);      /* Cambria, like the H2 titles */
    font-size: clamp(15px, 2.2vh, 19px);
    font-weight: bold;
    color: var(--colorAzulTitular);
}

/* The five blocks live in the HTML; only the enabled concept's block is
   visible. Becoming visible restarts the entrance animation. */
.sexBloqueExplicax {
    display: none;
}

.sexBloqueExplicax.activo {
    display: block;
    animation: aparecerExplicax var(--duracionRevelado) var(--curvaMotion);
}

/* A change the user made (click, Enter, arrows: .porUsuario, set on the
   section by the JS) answers in the state tier, in column 3 and in
   column 4; the automatic cycle keeps the slower arrival
   (review-animations 2026-10-18). */
.sexConceptoPrincipal.porUsuario .sexBloqueExplicax.activo,
.sexConceptoPrincipal.porUsuario .imgConcepto.activo {
    animation-duration: var(--duracionEstado);
}

.titExplicaxConcepto {
    margin: 0 0 0.8em 0;
    font-family: var(--fuenteBotones);      /* Cambria, like the concepts */
    font-size: clamp(24px, 4.2vh, 38px);
    font-weight: bold;
    line-height: 1.15;
    color: var(--colorAzulTitular);
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.25);
}

/* Brand names highlighted inside the descriptions. */
.marcaDestacada {
    font-weight: bold;
    font-style: italic;
}

.sexBloqueExplicax p {
    margin: 0 0 1em 0;
    font-size: clamp(15px, 2.2vh, 19px);
    line-height: 1.55;
    color: var(--colorTexto);
}

/* Inline calls to action inside a paragraph (block 5: "WhatsApp",
   "correo electrónico", "Cotización Rápida"; review 2026-10-21 (d)):
   buttons that read as part of the sentence, in
   navy, with a dotted underline at rest so they read as links (critique
   2026-10-18) and a solid one while hovered or focused. */
.enlaceInline {
    display: inline;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    color: var(--colorAzulProfundo);
    cursor: pointer;
    text-decoration: underline dotted currentColor;
    text-underline-offset: 0.15em;
}

.enlaceInline:hover,
.enlaceInline:focus-visible {
    text-decoration-style: solid;
}

@keyframes aparecerExplicax {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ----- 3.4 Related image (column 4) -----
   One image per concept; only the enabled concept's image is visible.
   Becoming visible restarts the same entrance animation as column 3. */
.sexImagenConcepto {
    grid-column: 4;
    grid-row: 1 / span 5;                   /* as tall as the 5 bullet rows */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Right margin for the images: the same space that exists between the
       left edge of the screen and the bullet points (the bullets sit
       centered in the 5% column, so that space is 2.5vw minus the
       bullet's radius). Wide images shrink to respect it, keeping their
       proportion. */
    padding-right: calc(2.5vw - var(--tamanoBullet) / 2);
}

.imgConcepto {
    display: none;
    width: 100%;
    height: 100%;                           /* fill the whole column area */
    object-fit: contain;                    /* without distorting the image */
}

.imgConcepto.activo {
    display: block;
    animation: aparecerExplicax var(--duracionRevelado) var(--curvaMotion);
}

/* =====================================================================
   5.- MISIÓN
   Area title (same look as the page's H1) and five cards side by side.
   Each card: transparent background, elegant shadow, title framed by the
   liquid border of the header buttons, description without a frame
   (its ring was removed by the design review, decision 4.1: shadow and
   title ring are enough). When the window gets narrower the cards wrap
   onto more rows (and finally one per row), always keeping a readable
   minimum width.
   ===================================================================== */
.sexMision {
    /* Minimum width of a card: below it the cards wrap to the next row. */
    --anchoMinTarjeta: 215px;

    /* Space between cards, and between the cards and the window edges
       (the latter matches the placeholders' 4vw side margins). */
    --espacioTarjetas: 1.5vw;

    padding: 6vh 4vw 8vh;
}

/* Area title: same font, color and shadow as .titPagina (the H1), one
   size step under it (critique 2026-10-18), so every area opens with the
   page's own title style and the H1 stays the only top. */
.titArea {
    margin: 0 0 5vh 0;
    text-align: center;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(28px, 4.8vh, 44px);
    font-weight: bold;
    line-height: 1.15;
    color: var(--colorAzulProfundo);
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.25);
}

/* ----- The row of cards -----
   Flex with wrapping: every card is at least --anchoMinTarjeta wide and
   grows to share the row; when five no longer fit, the last ones move to
   a new row, centered. The max-width keeps a card that ends up alone on
   its row from stretching across the whole window. */
.sexTarjetasMision {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;                   /* all cards in a row: same height */
    gap: var(--espacioTarjetas);
}

/* ----- One card ----- */
.tarjetaMision {
    flex: 1 1 var(--anchoMinTarjeta);
    max-width: 24rem;

    display: flex;
    flex-direction: column;
    gap: 1.4vh;
    padding: 2vh 1.1vw 2.2vh;

    background: transparent;                /* the background shows through */
    border-radius: 16px;

    /* Elegant shadow: a wide, soft halo plus a thin contact shadow, both
       in the page's navy so they blend with the background. */
    box-shadow: 0 10px 28px rgba(27, 50, 126, 0.14),
                0 1px 3px  rgba(27, 50, 126, 0.10);
}

/* Card title: Cambria like the concepts, framed by the liquid border.
   Every title frame is at least two lines tall (text centered inside),
   so the five frames of a row have the same height whether the title
   takes one line or two, and the descriptions start at the same level. */
.titTarjetaMision {
    position: relative;                     /* anchor for the ::before ring */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(2 * 1.2em + 2 * 0.55em);   /* 2 lines + vertical padding */
    margin: 0;
    padding: 0.55em 0.6em;
    text-align: center;

    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(17px, 2.4vh, 22px);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--colorAzulProfundo);
    text-shadow: 1px 1px 2px rgba(27, 50, 126, 0.20);

    border-radius: 12px;
}

/* Card description: body font, no frame. It grows to the bottom of the
   card, so the five descriptions of a row end at the same height
   (position, padding and radius kept so nothing else moves). */
.descTarjetaMision {
    position: relative;
    flex: 1 1 auto;
    margin: 0;
    padding: 0.9em 0.9em;
    text-align: center;

    font-size: clamp(14px, 2.0vh, 17px);
    line-height: 1.5;
    color: var(--colorTexto);

    border-radius: 12px;
}

/* Liquid ring (the same technique as .btnEncabezado::before): the
   gradient is painted on this layer and masked so that only the 2px
   edge remains; the title keeps a transparent background. */
.titTarjetaMision::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--liquidoBorde);
    -webkit-mask: linear-gradient(#FFF 0 0) content-box,
                  linear-gradient(#FFF 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#FFF 0 0) content-box,
          linear-gradient(#FFF 0 0);
    mask-composite: exclude;
    pointer-events: none;
    padding: 2px;                           /* thickness of the title ring */
}

/* ----- Principios: list with the page's own bullet image ----- */
.listaPrincipios {
    list-style: none;                       /* keeps the <p> padding of .descTarjetaMision */
    text-align: left;
}

.listaPrincipios li {
    position: relative;
    padding-left: 1.5em;                    /* room for the bullet image */
    margin: 0.35em 0;
}

.listaPrincipios li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;                            /* center of the first line (line-height 1.5) */
    width: 0.85em;
    height: 0.85em;
    transform: translateY(-50%);
    background: url("../Images/bullet-disabled.png") center / contain no-repeat;
}

/* =====================================================================
   4.- SERVICIOS
   Area title (same look as the page's H1, via .titArea) and a diagram of
   three equal sections: Registros Automáticos | Módulos de Control |
   Mediciones de Desempeño. Each section has a centered title (same look
   as the H2 titles of Concepto Principal) over a list of services. The
   lists sit at the left of their section, leaving room on the right for
   the brace and the curved arrows that jsInicioSimple.js draws from
   one list to the next.
   ===================================================================== */
.sexServicios {
    position: relative;                     /* anchors .leyendaServicios */
    padding: 6vh 4vw 8vh;
}

/* Legend pinned to the bottom-right corner of the area, aligned with the
   diagram's right edge: same font, size and weight as the legend of
   Concepto Principal (.leyendaReportes), in the logo's red. */
.leyendaServicios {
    position: absolute;
    right: 4vw;
    bottom: 2.5vh;
    text-align: right;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(15px, 2.2vh, 19px);
    font-weight: bold;
    color: var(--colorRojoLogo);
}

/* Three rows (titles, sub-lines, lists) by three equal columns (one per
   section). The lists of a row share its height, so the first and last
   items of sections 1 and 3 can line up with the (taller) list of
   section 2. position: relative anchors the SVG overlay with the
   connectors. */
.sexDiagramaServicios {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1vw;
}

/* Section titles: same font, color and shadow as the H2 titles of
   Concepto Principal (.titExplicaxConcepto), one size step under the
   area title (design review 1.1), centered in their section.
   Bottom-aligned so that a title that wraps to two lines does not push
   its neighbors away from their sub-lines. */
.titSeccionServicios {
    grid-row: 1;
    align-self: end;
    margin: 0 0 1vh 0;
    text-align: center;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(21px, 3.3vh, 30px);
    font-weight: bold;
    line-height: 1.15;
    color: var(--colorAzulTitular);
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.25);
}

/* Sub-line under each section title: one plain sentence, in the body
   type, saying what the visitor gets from that section, so the lists
   can be scanned without opening a single description (critique 2026-10-18).
   Top-aligned under the bottom-aligned titles; its bottom margin is the
   air the titles used to leave before the lists. */
.subtituloServicios {
    grid-row: 2;
    align-self: start;
    margin: 0 0 4vh 0;
    padding: 0 1vw;
    text-align: center;
    text-wrap: balance;
    font-family: var(--fuentePrincipal);    /* Segoe UI */
    font-size: clamp(14px, 2.0vh, 17px);
    line-height: 1.5;
    color: var(--colorTexto);
}

/* ----- The three lists ----- */
.listaServicios {
    grid-row: 3;
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75em;
}

/* Section 1: items spread from the top to the bottom of the row, so the
   brace spans the same height as the list of section 2. The right
   padding reserves the room for that brace. */
.listaServicios[data-seccion="1"] {
    justify-content: space-between;
    padding: 0 28% 0 1vw;
}

/* Section 2: the nine modules, at their natural height (this list sets
   the row's height; sections 1 and 3 spread over it). The blank space
   between modules is twice the base gap of the lists. Left padding
   leaves room for the incoming arrows; right padding, for the outgoing
   brace. */
.listaServicios[data-seccion="2"] {
    justify-content: flex-start;
    gap: 1.5em;
    padding: 0 6% 0 22%;
}

/* Section 3: the two measurements, evenly spread around the middle of
   the row. Left padding leaves room for the incoming arrows. */
.listaServicios[data-seccion="3"] {
    justify-content: space-evenly;
    padding: 0 0 0 26%;
}

/* One service: same style as the concept texts of Concepto Principal
   (.sexTextoConcepto). The pointer cursor, the hover style and the ▾
   after the name tell the user that the item will explain itself: its
   description (.microExplanation, below) opens under it. The section
   titles have none of them.

   The item is a grid. Its first cell holds two layers: the visible text
   (.textoServicio, the name and its ▾) and an invisible copy of the
   same text in bold italic (::after, from data-texto, plus the ▾). The
   cell is as wide and as tall as that copy, so when the hover makes
   the visible text bold italic nothing moves: neither the other items
   nor the connectors. Both layers start at the top of the cell; the JS
   measures the visible text, not the cell, so the brace ticks and the
   arrows point at the text. The second row holds the description, as
   tall as the description's box: 0 while it is closed (no room taken)
   (2026-10-26). */
.itemServicio {
    display: grid;
    align-items: start;
    cursor: pointer;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(15.8px, 2.29vh, 22.9px);
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: var(--colorAzulProfundo);
}

.textoServicio {
    grid-area: 1 / 1;
    display: block;                         /* as wide as the column: the
                                               connectors leave from the
                                               column's right edge */
    transition: text-shadow var(--duracionControl) var(--curvaMotion);
}

.itemServicio::after {
    content: attr(data-texto) "\00A0\25BE";   /* the name, a no-break space and the ▾ */
    grid-area: 1 / 1;
    font-weight: bold;
    font-style: italic;
    visibility: hidden;
    pointer-events: none;
}

/* Hover (fine pointers only) and keyboard focus: the selected concept's
   style of Concepto Principal (.sexTextoConcepto.activo: bold with its
   text shadow) plus the italic of the hovered concept
   (.sexTextoConcepto:hover). The name is the control that takes the
   keyboard focus (2026-10-26). */
.textoServicio:focus-visible {
    font-weight: bold;
    font-style: italic;
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.35);
}

@media (hover: hover) and (pointer: fine) {
    .itemServicio:hover .textoServicio {
        font-weight: bold;
        font-style: italic;
        text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.35);
    }
}

/* Detail line under a measurement (section 3): smaller, body font. It
   keeps its regular weight and no shadow while the item is hovered. */
.detalleServicio {
    display: block;
    margin-top: 0.2em;
    font-family: var(--fuentePrincipal);    /* Segoe UI */
    font-size: clamp(13px, 1.9vh, 16px);
    font-weight: normal;
    letter-spacing: normal;
    line-height: 1.4;
    color: var(--colorTexto);
    text-shadow: none;
}

/* ----- Arrow after the name (2026-10-26) -----
   Tells the visitor that the item opens. It points down while the
   description is closed or only shown by the hover, and up while the
   item is open by a click (.abierto), as in the GAIS prototype. Body
   font, regular and upright, also while the name turns bold italic. */
.iconoAcordeon {
    display: inline-block;
    font-family: var(--fuentePrincipal);    /* Segoe UI */
    font-size: 0.8em;
    font-weight: normal;
    font-style: normal;
    color: var(--colorCeleste);
    transition: transform var(--duracionControl) var(--curvaMotion);
}

.itemServicio.abierto .iconoAcordeon {
    transform: rotate(180deg);
}

/* ----- microExplanation: brief explanation of a service -----
   Since 2026-10-26 it opens in the flow, right under the name of its
   service (the accordion of the GAIS prototype, Xergio's choice; before,
   a tooltip that hung over the items below), so it never covers another
   service: closed it takes no room; open it pushes the items below it
   down, and the JS redraws the connectors while the lists move. It
   opens while the pointer is over the item (fine pointers only) and
   stays open after a click, or Enter / Space on the name (.abierto,
   JS), until the next click; several can be open at once. Its look is
   the GAIS panel: a pale blue sheet (#EEF5FB) with a 3px blue left
   edge and the dark body text, in the page's body type.

   It unrolls like paper (2026-10-26 (c), Xergio's request): the box
   (.microExplanation, the second row of the item) only clips; the
   sheet inside it (.hojaExplicacion) carries the look and keeps its
   full height and place from the start. Opening, the box's height
   grows from 0 to the sheet's height (--altoHoja, measured and
   published on each box by the JS; without the JS, auto: it opens at
   once), so its top stays under the name and its bottom edge travels
   down, uncovering the sheet from top to bottom; the sheet neither
   moves nor fades. It unrolls in --duracionRevelado (500ms) on a
   smooth ease-in-out (--curvaDesenrollar), so the unrolling is seen;
   it rolls back up in the control tier, as before. */
.microExplanation {
    --curvaDesenrollar: cubic-bezier(0.4, 0, 0.2, 1);

    grid-row: 2;
    grid-column: 1;
    height: 0;
    overflow: hidden;

    font-family: var(--fuentePrincipal);    /* Segoe UI */
    font-size: clamp(14px, 2.0vh, 17px);
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    line-height: 1.45;
    text-align: left;
    text-shadow: none;

    visibility: hidden;
    transition: height var(--duracionControl) var(--curvaMotion),
                visibility 0s linear var(--duracionControl);
}

/* The sheet: 10px under the name, the GAIS panel's box. */
.hojaExplicacion {
    margin: 10px 0 0 0;
    padding: 10px 12px;
    background-color: #EEF5FB;
    color: var(--colorTexto);
    border-left: 3px solid var(--colorAzulTitular);
    border-radius: 4px;
}

/* Open by a click (.abierto) ... */
.itemServicio.abierto .microExplanation {
    height: var(--altoHoja, auto);
    visibility: visible;
    transition: height var(--duracionRevelado) var(--curvaDesenrollar);
}

/* ... or while the pointer is over the item (fine pointers only). */
@media (hover: hover) and (pointer: fine) {
    .itemServicio:hover .microExplanation {
        height: var(--altoHoja, auto);
        visibility: visible;
        transition: height var(--duracionRevelado) var(--curvaDesenrollar);
    }
}

/* ----- Connectors (SVG overlay drawn by the JS) -----
   Thin solid navy lines: a brace (rounded corners, long end ticks) that
   gathers the items of a list, a short stem to a hub, and one curved
   arrow from the hub to each item of the next list. */
.conectoresServicios {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.conectoresServicios path {
    fill: none;
    stroke: var(--colorAzulProfundo);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.conectoresServicios .puntaFlecha {
    fill: var(--colorAzulProfundo);
    stroke: none;
}

/* =====================================================================
   7.- QUIÉNES SOMOS
   Area title (same look as the page's H1, via .titArea) and three
   columns: the director's picture at the left, his presentation in the
   center and his career at the right (review 2026-10-22: the career has
   its own column, to use the free space at the right on PC and laptop),
   vertically centered on each other. The picture is framed like the
   Misión cards (16px radius, soft navy shadow). The text reuses the
   styles of Concepto Principal: the name looks like its H2 titles, the
   paragraphs like its descriptions, and the career is a list with the
   page's own bullet image (as in Principios), very small so it matches
   the size of the text; its dates are bold (<b> in the HTML).
   ===================================================================== */
.sexQuienesSomos {
    /* Width of the picture column (the rest is for the text). */
    --anchoFoto: 30%;

    padding: 6vh 4vw 8vh;
}

/* Three columns: picture | presentation | career. */
.sexContenidoQuienesSomos {
    display: grid;
    grid-template-columns: var(--anchoFoto) minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 3vw;
    align-items: center;
}

/* ----- Left: picture ----- */
.sexFotoQuienesSomos {
    margin: 0;                              /* <figure> has browser margins by default */
}

.imgQuienesSomos {
    display: block;
    width: 100%;
    height: auto;                           /* keeps the picture's proportion */
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(27, 50, 126, 0.14),
                0 1px 3px  rgba(27, 50, 126, 0.10);
}

/* ----- Center: presentation ----- */

/* Name: same font, color and shadow as the H2 titles of Concepto
   Principal (.titExplicaxConcepto), one size step under the area title
   (design review 1.1, as .titSeccionServicios). */
.titQuienesSomos {
    margin: 0 0 0.8em 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(21px, 3.3vh, 30px);
    font-weight: bold;
    line-height: 1.15;
    color: var(--colorAzulTitular);
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.25);
}

/* Paragraphs and career list: same text style as the descriptions of
   Concepto Principal (.sexBloqueExplicax p), capped at 60ch (about 70
   characters per line) so the lines stay readable on wide screens
   (critique 2026-10-18: they ran to ~99 characters at 1366px). */
.sexTextoQuienesSomos p,
.listaTrayectoria {
    max-width: 60ch;
    margin: 0 0 1em 0;
    font-size: clamp(15px, 2.2vh, 19px);
    line-height: 1.55;
    color: var(--colorTexto);
}

/* ----- Right: career -----
   List with the page's bullet image, very small. */
.listaTrayectoria {
    list-style: none;
    padding: 0;
}

.listaTrayectoria li {
    position: relative;
    padding-left: 1.2em;                    /* room for the bullet image */
    margin: 0.35em 0;
}

.listaTrayectoria li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.775em;                           /* center of the first line (line-height 1.55) */
    width: 0.5em;                           /* very small: about a third of the text height */
    height: 0.5em;
    transform: translateY(-50%);
    background: url("../Images/bullet-disabled.png") center / contain no-repeat;
}

/* =====================================================================
   6.- VIDEOS
   One area title (same look as the page's H1, via .titArea), a
   subtitle one size step under it (review 2026-10-21) and five
   topics in a row of equal columns. Each topic is a link: a centered
   title (same typography as the Misión card titles, two lines tall so
   the five images start at the same level) over its image framed as a
   video: a 16:9 frame with the Misión cards' rounded corners and
   shadow, the image filling the frame (cropped, centered, or from the
   left / top edge when the HTML asks for it) and a play button at its
   center. On hover and on keyboard focus the play button fills with the
   liquid gradient and the image zooms slightly; the focus ring is drawn
   on the frame.
   ===================================================================== */
.sexVideos {
    /* Space between the topics (same as between the Misión cards). */
    --espacioTemas: 1.5vw;

    /* Proportion of the video frames (video player). */
    --proporcionVideo: 16 / 9;

    /* Diameter of the play button, relative to the frame's width. */
    --tamanoPlay: 18%;

    padding: 6vh 4vw 8vh;
}

/* ----- Area title and subtitle (review 2026-10-21) -----
   "Videos" keeps the area title's look (.titArea) but sits close to its
   subtitle, which takes over the gap the area title leaves before the
   content (5vh). The subtitle "Artículos y Noticias" (H3) is one size
   step under the area title, with the same font, color and shadow as
   .titSeccionServicios and .titQuienesSomos (design review 1.1). */
.sexVideos .titArea {
    margin-bottom: 1vh;
}

.titSubtituloVideos {
    margin: 0 0 5vh 0;
    text-align: center;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(21px, 3.3vh, 30px);
    font-weight: bold;
    line-height: 1.15;
    color: var(--colorAzulTitular);
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.25);
}

/* ----- The row of topics: five equal columns ----- */
.sexTemasVideos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: var(--espacioTemas);
    align-items: start;
}

/* ----- One topic: a link holding the title and the frame ----- */
.enlaceTemaVideo {
    display: flex;
    flex-direction: column;
    gap: 1.4vh;                             /* title / frame (as in the Misión cards) */
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
}

/* The focus ring is drawn on the frame, not around the whole link. */
.enlaceTemaVideo:focus-visible {
    outline: none;
}

.enlaceTemaVideo:focus-visible .marcoVideo {
    outline: 2px solid var(--colorAzulProfundo);
    outline-offset: 2px;
}

/* Topic title: same typography as the Misión card titles
   (.titTarjetaMision), without the ring. Two lines tall with the text
   at the bottom, so a title of one line and a title of two lines leave
   their frames at the same level. */
.titTemaVideo {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: calc(2 * 1.2em);            /* 2 lines */
    margin: 0;
    text-align: center;

    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(17px, 2.4vh, 22px);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--colorAzulProfundo);
    text-shadow: 1px 1px 2px rgba(27, 50, 126, 0.20);
}

/* Video frame: 16:9, framed like the Misión cards (16px radius, soft
   navy shadow). The image is clipped to the rounded corners. */
.marcoVideo {
    position: relative;                     /* anchors .iconoPlay */
    margin: 0;                              /* <figure> has browser margins by default */
    width: 100%;
    aspect-ratio: var(--proporcionVideo);
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(27, 50, 126, 0.14),
                0 1px 3px  rgba(27, 50, 126, 0.10);
    cursor: pointer;                        /* the whole topic is a link */
}

/* The image fills the whole frame, keeping its proportion: whatever
   exceeds the 16:9 frame is cropped evenly on both sides (centered). */
.imgVideo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--duracionEstado) var(--curvaMotion);
}

/* Framing exceptions (data-encuadre in the HTML): the crop keeps the
   left edge of a wide image, or the top of a tall image, so the frame
   shows the part that identifies the topic. The hover zoom grows from
   that same edge, so it stays visible. */
.imgVideo[data-encuadre="izquierda"] {
    object-position: left center;
    transform-origin: left center;
}

.imgVideo[data-encuadre="superior"] {
    object-position: center top;
    transform-origin: center top;
}

/* Play button: a translucent navy circle with a white edge, centered
   on the frame; the white triangle (::before) is drawn slightly to the
   right of the center, as in video players, so it looks centered. */
.iconoPlay {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--tamanoPlay);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(27, 50, 126, 0.60);
    border: 2px solid rgba(255, 255, 255, 0.90);
    box-shadow: 0 4px 14px rgba(10, 22, 64, 0.45);
    pointer-events: none;                   /* the frame receives the click */
    isolation: isolate;                     /* the ::after fill (z-index -1) stays inside the circle */
    transition: transform var(--duracionControl) var(--curvaMotion);
}

/* Liquid fill of the play button, on its own layer under the triangle
   (same technique as .btnEncabezado::after): always painted, only its
   opacity moves. */
.iconoPlay::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;                            /* above the circle's background, under the triangle */
    border-radius: inherit;
    background: var(--liquidoRelleno);
    opacity: 0;
    transition: opacity var(--duracionControl) var(--curvaMotion);
}

.iconoPlay::before {
    content: "";
    position: absolute;
    left: 56%;
    top: 50%;
    width: 38%;
    height: 44%;
    transform: translate(-50%, -50%);
    background: #FFFFFF;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Hover (fine pointers only: a tap must not leave the zoom on) and
   keyboard focus of the link: the play button fills with the liquid
   gradient (as the header buttons) and grows a little; the image zooms
   slightly. */
.enlaceTemaVideo:focus-visible .iconoPlay {
    transform: translate(-50%, -50%) scale(1.08);
}

.enlaceTemaVideo:focus-visible .iconoPlay::after {
    opacity: 1;
}

.enlaceTemaVideo:focus-visible .imgVideo {
    transform: scale(1.04);
}

@media (hover: hover) and (pointer: fine) {
    .enlaceTemaVideo:hover .iconoPlay {
        transform: translate(-50%, -50%) scale(1.08);
    }

    .enlaceTemaVideo:hover .iconoPlay::after {
        opacity: 1;
    }

    .enlaceTemaVideo:hover .imgVideo {
        transform: scale(1.04);
    }
}

/* Pressed: the play button settles back to its size. */
.enlaceTemaVideo:active .iconoPlay {
    transform: translate(-50%, -50%) scale(1);
}

/* =====================================================================
   6b.- REVERSED AREAS: SERVICIOS AND VIDEOS  (review 2026-10-21;
   Servicios in the place of Misión since 2026-10-26)
   To break the monotony of the scroll, Servicios and Videos sit on a
   navy band (--colorAzulProfundo, the footer's navy), so the page
   alternates light and dark: Concepto Principal (light), Servicios
   (navy), Misión (light), Videos (navy), Quiénes Somos (light), footer
   (navy). Each element keeps its look with the colors reversed: the
   navy text turns white, the lighter blue of the section titles and of
   the subtitle turns light blue, the dark body text takes the page's
   light background color, and the navy shadows become light blue
   glows. In Servicios the connectors turn white and so does the legend
   (the logo's red is 1.64:1 on navy); the ▾ after each name turns light
   blue, and the descriptions' sheet takes that same light blue of the
   section titles instead of the pale panel of block 4 (2026-10-26 (i),
   Xergio's request; they were tooltips in a light box before). Only
   colors change here; sizes, spacing and motion stay in blocks 4 and 6.
   The play buttons sit on the thumbnails, not on the band, so they keep
   their own colors.
   ===================================================================== */
.sexServicios,
.sexVideos {
    /* Reversed palette of the two areas. */
    --colorTituloInvertido:    #FFFFFF;                         /* was --colorAzulProfundo */
    --colorSubtituloInvertido: #8FDCF2;                         /* was --colorAzulTitular (light end of --liquidoBorde) */
    --colorTextoInvertido:     var(--colorFondoContinuo);       /* was --colorTexto */
    --sombraTextoInvertida:    rgba(143, 220, 242, 0.35);       /* was rgba(27, 50, 126, 0.25) */
    --sombraTextoInvertidaSuave: rgba(143, 220, 242, 0.30);     /* was rgba(27, 50, 126, 0.20) */
    --sombraMarcoInvertida:    0 10px 28px rgba(143, 220, 242, 0.20),
                               0 1px 3px  rgba(143, 220, 242, 0.28);

    background-color: var(--colorAzulProfundo);
}

/* Area titles ("Servicios", "Videos"). */
.sexServicios .titArea,
.sexVideos .titArea {
    color: var(--colorTituloInvertido);
    text-shadow: 1px 2px 3px var(--sombraTextoInvertida);
}

/* ----- Servicios ----- */
.sexServicios .titSeccionServicios {
    color: var(--colorSubtituloInvertido);
    text-shadow: 1px 2px 3px var(--sombraTextoInvertida);
}

.sexServicios .subtituloServicios,
.sexServicios .detalleServicio {
    color: var(--colorTextoInvertido);
}

.sexServicios .itemServicio {
    color: var(--colorTituloInvertido);
}

/* Hover and keyboard focus keep their bold italic (block 4); only the
   shadow turns into the light blue glow. */
.sexServicios .textoServicio:focus-visible {
    text-shadow: 1px 2px 3px var(--sombraTextoInvertida);
}

@media (hover: hover) and (pointer: fine) {
    .sexServicios .itemServicio:hover .textoServicio {
        text-shadow: 1px 2px 3px var(--sombraTextoInvertida);
    }
}

/* The navy focus ring would vanish on the band: white instead. */
.sexServicios .textoServicio:focus-visible {
    outline-color: var(--colorTituloInvertido);
}

/* The ▾ after each name: celeste in block 4, light blue on the band. */
.sexServicios .iconoAcordeon {
    color: var(--colorSubtituloInvertido);
}

/* The descriptions' sheet: the light blue of the section titles; its
   dark text and blue left edge stay as in block 4. */
.sexServicios .hojaExplicacion {
    background-color: var(--colorSubtituloInvertido);
}

/* Connectors (brace, stems and arrows) and their arrowheads. The path
   rule also reaches the arrowhead, so its stroke is kept off here. */
.sexServicios .conectoresServicios path {
    stroke: var(--colorTituloInvertido);
}

.sexServicios .conectoresServicios .puntaFlecha {
    fill: var(--colorTituloInvertido);
    stroke: none;
}

.sexServicios .leyendaServicios {
    color: var(--colorTituloInvertido);
}

/* ----- Videos ----- */
.sexVideos .titSubtituloVideos {
    color: var(--colorSubtituloInvertido);
    text-shadow: 1px 2px 3px var(--sombraTextoInvertida);
}

.sexVideos .titTemaVideo {
    color: var(--colorTituloInvertido);
    text-shadow: 1px 1px 2px var(--sombraTextoInvertidaSuave);
}

.sexVideos .marcoVideo {
    box-shadow: var(--sombraMarcoInvertida);
}

/* The navy focus ring would vanish on the band: white instead. */
.sexVideos .enlaceTemaVideo:focus-visible .marcoVideo {
    outline-color: var(--colorTituloInvertido);
}

/* =====================================================================
   8.- PIE DE PÁGINA  (Footer)
   A navy band across the whole width of the page, 2.5 cm tall, with
   white Cambria text and no title. Three sections on one row: the
   copyright at the far left, the link to the terms and conditions at
   the center, and the contact data (two lines) at the far right. The
   side padding is half the one of the other areas (2vw), so the texts
   sit closer to the window edges. Same grid as the header: the two
   outer columns have equal width, so the center section is exactly at
   the center of the window; a long side text wraps inside its column.
   ===================================================================== */
.sexPiePagina {
    height: 2.5cm;
    padding: 0 2vw;

    /* Three columns: left | center | right, vertically centered. */
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 2vw;
    align-items: center;

    background-color: var(--colorAzulProfundo);     /* navy */
    color: #FFFFFF;
    font-family: var(--fuenteBotones);              /* Cambria */
    font-size: clamp(14px, 2.0vh, 17px);
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.sexPiePaginaIzquierda {
    justify-self: start;
    text-align: left;
}

.sexPiePaginaCentro {
    justify-self: center;
    text-align: center;
}

.sexPiePaginaDerecha {
    justify-self: end;
    text-align: right;
}

/* Links of the footer: white like the rest of the text, underlined only
   while hovered or focused. */
.enlacePiePagina {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: transparent;     /* the underline fades in (as the chapter links) */
    text-underline-offset: 0.15em;
    transition: text-decoration-color var(--duracionControl) var(--curvaMotion);
}

.enlacePiePagina:hover,
.enlacePiePagina:focus-visible {
    text-decoration-color: currentColor;
}

/* The hyphen between "Política de Privacidad" and "Términos y
   Condiciones" (2026-10-22 (c)): one em of room at each side, so the two
   links read as two, without crowding. */
.separadorPiePagina {
    margin: 0 1em;
}

/* Narrow phones: the two links do not fit on one line (the hyphen was
   left hanging at the end of the first one), so they stack, one under
   the other, and the hyphen is not shown. */
@media (max-width: 599px) {
    .sexPiePaginaCentro {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .separadorPiePagina {
        display: none;
    }
}

/* =====================================================================
   9.- "EN CONSTRUCCIÓN" DIALOG
   Native <dialog> opened with showModal(): the page's tokens (navy
   Cambria title, body text, the header pill as the close button), the
   liquid ring of the header buttons as its frame (same ::before mask
   technique) and the Misión cards' corners. The backdrop dims and blurs
   the page.
   ===================================================================== */
.dlgMensaje {
    position: fixed;                        /* anchor for the ::before ring */
    width: min(28rem, calc(100vw - 32px));
    margin: auto;
    padding: 2.2em 2em 1.8em;
    border: none;
    border-radius: 16px;
    background: #F6F9FC;
    color: var(--colorTexto);
    text-align: center;
    box-shadow: 0 18px 48px rgba(27, 50, 126, 0.30);
}

.dlgMensaje::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;                           /* thickness of the ring */
    background: var(--liquidoBorde);
    -webkit-mask: linear-gradient(#FFF 0 0) content-box,
                  linear-gradient(#FFF 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#FFF 0 0) content-box,
          linear-gradient(#FFF 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

/* Opening: the box fades in while it settles up and grows to its size
   (--duracionEstado), and the backdrop fades in with it. Closing: both
   fade out, faster (--duracionControl; review-animations 2026-10-18:
   it closed in one frame). Transitions, not keyframes: @starting-style
   gives the entry, and display / overlay transition discretely so the
   box stays painted while it leaves. A browser without those features
   opens and closes at once, as before. */
.dlgMensaje {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    transition-property: opacity, transform, overlay, display;
    transition-duration: var(--duracionControl);
    transition-timing-function: var(--curvaMotion);
    transition-behavior: allow-discrete;
}

.dlgMensaje[open] {
    opacity: 1;
    transform: none;
    transition-duration: var(--duracionEstado);
}

.dlgMensaje::backdrop {
    background: rgba(27, 50, 126, 0.35);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition-property: opacity, overlay, display;
    transition-duration: var(--duracionControl);
    transition-timing-function: var(--curvaMotion);
    transition-behavior: allow-discrete;
}

.dlgMensaje[open]::backdrop {
    opacity: 1;
    transition-duration: var(--duracionEstado);
}

@starting-style {
    .dlgMensaje[open] {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }

    .dlgMensaje[open]::backdrop {
        opacity: 0;
    }
}

.titDialogo {
    margin: 0 0 0.5em 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(24px, 4.2vh, 38px);
    font-weight: bold;
    line-height: 1.15;
    color: var(--colorAzulProfundo);
    text-shadow: 1px 2px 3px rgba(27, 50, 126, 0.25);
}

.textoDialogo {
    margin: 0 0 1.4em 0;
    font-size: clamp(15px, 2.2vh, 19px);
    line-height: 1.55;
}

.btnDialogo {
    height: 44px;                           /* a comfortable target, also on touch */
    min-width: 9em;
}

/* =====================================================================
   10.- "COTIZACIÓN RÁPIDA" DIALOG
   The same box as the "En Construcción" dialog (.dlgMensaje: liquid
   ring, corners, backdrop, entrance and exit), wider and left-aligned,
   with a close button in its corner. The form inside is what scrolls
   on a short window, so the ring (::before, inset 0) and the corner
   button stay on the frame. Every screen opens with the same header:
   the dialog's name as a small-caps kicker, the step at the right and
   a six-segment progress bar; the question is the screen's heading.
   The options of a question are one segmented row in the pills'
   liquid ring (one line, equal cells, hairline dividers; the selected
   cell carries the liquid fill as an inset pill); on phones the row
   becomes a keypad grid. The summary is a receipt-like list of the
   answers and two cards with the amounts.
   ===================================================================== */
.dlgCotizacion {
    width: min(44rem, calc(100vw - 32px));
    padding: 1.6em 2em 1.6em;
    text-align: left;
}

/* 100vh minus the dialog's own margins (UA: 2em + 6px) and its vertical
   padding (3.2em). The 4px of padding, taken back by the margin, keep
   the focus rings at the edges inside the scrolling box. */
.frmCotizacion {
    max-height: calc(100vh - 5.2em - 8px);
    margin: -4px;
    padding: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ----- Corner close button: a navy cross in a round target, outside the
   scrolling form so it stays in the corner; its disc and halo are
   opaque, so the content that scrolls under it passes cleanly. Escape
   and "Cerrar" close the dialog too. ----- */
.btnCerrarCotizacion {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: #F6F9FC;              /* the dialog's background */
    box-shadow: 0 0 0 4px #F6F9FC;
    color: var(--colorAzulProfundo);
    cursor: pointer;
    transition: background-color var(--duracionControl) var(--curvaMotion),
                transform var(--duracionControl) var(--curvaMotion);
}

.btnCerrarCotizacion svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.btnCerrarCotizacion:active {
    transform: scale(0.94);
}

@media (hover: hover) and (pointer: fine) {
    .btnCerrarCotizacion:hover {
        background-color: #E4EAF5;          /* navy at 8% over the dialog's background */
    }
}

/* ----- Header of every screen -----
   Row 1: the kicker at the left, the step at the right (kept clear of
   the corner button); row 2: the progress bar across the width. */
.cabeceraCotizacion {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1em;
    align-items: baseline;
    margin: 0 0 1.1em 0;
}

.marcaCotizacion {
    margin: 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(13px, 1.8vh, 15px);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--colorAzulTitular);
}

.pasoCotizacion {
    margin: 0;
    padding-right: 36px;                    /* room for the corner button */
    font-size: clamp(13px, 1.8vh, 15px);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--colorAzulMedio);
    white-space: nowrap;
}

/* Six segments, one per question; the CSS lights the segments up to the
   screen's data-pantalla (all six on the summary). */
.progresoCotizacion {
    grid-column: 1 / -1;
    display: flex;
    gap: 4px;
    height: 4px;
    margin-top: 0.7em;
}

.progresoCotizacion i {
    flex: 1 1 0;
    border-radius: 2px;
    background-color: rgba(27, 50, 126, 0.14);
}

.pantallaCotizacion[data-pantalla="1"] .progresoCotizacion i:nth-child(-n + 1),
.pantallaCotizacion[data-pantalla="2"] .progresoCotizacion i:nth-child(-n + 2),
.pantallaCotizacion[data-pantalla="3"] .progresoCotizacion i:nth-child(-n + 3),
.pantallaCotizacion[data-pantalla="4"] .progresoCotizacion i:nth-child(-n + 4),
.pantallaCotizacion[data-pantalla="5"] .progresoCotizacion i:nth-child(-n + 5),
.pantallaCotizacion[data-pantalla="6"] .progresoCotizacion i,
.pantallaCotizacion[data-pantalla="7"] .progresoCotizacion i {
    background-color: var(--colorAzulTitular);
}

/* Screen 1 only: one line under the header that says what the dialog is for. */
.introCotizacion {
    margin: 0 0 1em 0;
    font-size: clamp(15px, 2.1vh, 17px);
    line-height: 1.5;
    color: var(--colorAzulMedio);
}

/* The question: the heading of its screen, in the titles' type; it also
   labels the radio group (aria-labelledby on the fieldset). */
.preguntaCotizacion {
    margin: 0 0 0.9em 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(21px, 3.3vh, 28px);
    font-weight: bold;
    line-height: 1.25;
    color: var(--colorAzulProfundo);
    text-wrap: balance;
}

.grupoCotizacion {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

/* ----- Options: one segmented row, one selectable at a time -----
   The group wears the pills' liquid ring; inside it, every option is a
   cell of equal width (the open-ended "Más de…" cell takes its text's
   width; the ranges share the row equally). Hairline dividers separate
   the cells; the selected cell draws the liquid fill as a pill inset in
   the row and hides the dividers at its sides. The radio stays in the
   page (arrows move the selection, Space selects, Enter advances) but
   is drawn by the span next to it: visually hidden, still focusable. */
.opcionesCotizacion {
    position: relative;                     /* anchor for the ring */
    isolation: isolate;
    display: flex;
    padding: 3px;
    border-radius: 999px;
}

/* Liquid ring (same technique as .btnEncabezado::before). */
.opcionesCotizacion::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;                           /* thickness of the ring */
    background: var(--liquidoBorde);
    -webkit-mask: linear-gradient(#FFF 0 0) content-box,
                  linear-gradient(#FFF 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#FFF 0 0) content-box,
          linear-gradient(#FFF 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.opcionCotizacion {
    position: relative;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}

.opcionCotizacion.opcionAbierta {
    flex: 0 0 auto;
}

.opcionCotizacion input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.pildoraOpcion {
    position: relative;                     /* anchor for the divider and the fill */
    isolation: isolate;                     /* the ::after fill (z-index -1) stays inside */
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 0.9em;
    border-radius: 999px;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(14px, 2.0vh, 18px);
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--colorAzulProfundo);
    cursor: pointer;
    user-select: none;
    transition: color var(--duracionControl) var(--curvaMotion),
                text-shadow var(--duracionControl) var(--curvaMotion);
}

/* Divider at the left of every cell but the first. */
.pildoraOpcion::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 0;
    width: 1px;
    height: 50%;
    background-color: rgba(27, 50, 126, 0.22);
    transition: opacity var(--duracionControl) var(--curvaMotion);
    pointer-events: none;
}

.opcionCotizacion:first-child .pildoraOpcion::before {
    display: none;
}

/* Liquid fill (same as .btnEncabezado::after), inset in the cell so it
   reads as a pill inside the row: always painted, only its opacity moves. */
.pildoraOpcion::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 999px;
    background: var(--liquidoRelleno);
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.55),
                inset 0 -4px 9px rgba(10, 22, 64, 0.45);
    opacity: 0;
    transition: opacity var(--duracionControl) var(--curvaMotion);
    pointer-events: none;
}

/* Selected: filled, white text (the header pill's hover state); the
   dividers at both sides of the selected cell disappear. */
.opcionCotizacion input:checked + .pildoraOpcion {
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(10, 22, 64, 0.45);
}

.opcionCotizacion input:checked + .pildoraOpcion::after {
    opacity: 1;
}

.opcionCotizacion input:checked + .pildoraOpcion::before {
    opacity: 0;
}

.opcionCotizacion:has(input:checked) + .opcionCotizacion .pildoraOpcion::before {
    opacity: 0;                             /* its own rule: without :has() only this one is dropped */
}

/* Keyboard focus on the hidden radio: the page's focus ring, on the cell
   (lifted over its neighbours so the ring is whole). */
.opcionCotizacion input:focus-visible + .pildoraOpcion {
    z-index: 1;
    outline: 2px solid var(--colorAzulProfundo);
    outline-offset: 2px;
}

/* Hover (fine pointers only): a hint of the fill, short of selected. */
@media (hover: hover) and (pointer: fine) {
    .opcionCotizacion input:not(:checked) + .pildoraOpcion:hover::after {
        opacity: 0.18;
    }
}

/* ----- Messages: a missing answer, an invalid contact ----- */
.avisoCotizacion {
    margin: 0.7em 0 0 0;
    font-size: clamp(14px, 2.0vh, 17px);
    line-height: 1.4;
    color: var(--colorRojoLogo);
}

/* ----- Screen 7: summary -----
   "Sus respuestas" and "Cotización preliminar" share one type, a step
   under the questions. The answers are a receipt-like list: label at
   the left, value at the right, a hairline under every row, the total
   closing the list in bold. */
.titCotizacion,
.subtituloCotizacion {
    margin: 0 0 0.5em 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(19px, 2.9vh, 24px);
    font-weight: bold;
    line-height: 1.2;
    color: var(--colorAzulProfundo);
    text-wrap: balance;
}

.resumenCotizacion {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0 0 1.2em 0;
    font-size: clamp(15px, 2.2vh, 18px);
    line-height: 1.4;
}

.resumenCotizacion dt,
.resumenCotizacion dd {
    margin: 0;
    padding: 0.35em 0;
    border-bottom: 1px solid rgba(27, 50, 126, 0.12);   /* one rule across both columns */
}

.resumenCotizacion dt {
    padding-right: 1.2em;
    color: var(--colorAzulMedio);
}

.resumenCotizacion dd {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    color: var(--colorAzulProfundo);
}

.resumenCotizacion .totalCotizacion {
    padding-top: 0.6em;
    border-bottom: none;
    font-weight: 700;
    color: var(--colorAzulProfundo);
}

/* The row before the total closes the answers with a firmer rule. */
.resumenCotizacion dt:has(+ dd + .totalCotizacion),
.resumenCotizacion dd:has(+ .totalCotizacion) {
    border-bottom-color: rgba(27, 50, 126, 0.35);
}

/* The two amounts as cards: label over figure, side by side; the label
   at the left, the figure centered in the card (2026-10-22 (e)). */
.cotizacionPreliminar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 1.1em;
}

.tarjetaMonto {
    padding: 0.85em 1.1em 0.9em;
    border: 1px solid rgba(27, 50, 126, 0.10);
    border-radius: 12px;                    /* the tooltips' radius */
    background: #FFFFFF;
    box-shadow: 0 6px 18px rgba(27, 50, 126, 0.10);
}

.tarjetaMonto dt,
.tarjetaMonto dd {
    padding: 0;
    border: none;
    text-align: left;
}

.tarjetaMonto dt {
    font-size: clamp(13px, 1.8vh, 15px);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tarjetaMonto dd {
    margin-top: 0.2em;
    text-align: center;                     /* after the shared left (2026-10-22 (e)) */
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(22px, 3.4vh, 30px);
    font-weight: bold;
    line-height: 1.15;
}

.notaCotizacion {
    margin: 0 0 1em 0;
    font-size: clamp(13px, 1.8vh, 15px);
    line-height: 1.5;
    color: var(--colorAzulMedio);
}

.pieCotizacion {
    margin: 0 0 1em 0;
    font-size: clamp(15px, 2.2vh, 18px);
    line-height: 1.55;
}

/* ----- Contact panel (WhatsApp / email). Born as the summary's own
   panel; since 2026-10-26 (h) only the "Sesión de Diagnóstico" dialog
   (block 11) wears these classes, and .confirmacionCotizacion also the
   confirmation line of dialog 14. ----- */
.sexEnvioCotizacion {
    margin: 0 0 1em 0;
}

.etiquetaCotizacion {
    display: block;
    margin: 0 0 0.4em 0;
    font-size: clamp(15px, 2.2vh, 18px);
    font-weight: 600;
}

.filaEnvioCotizacion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.txbCotizacion {
    flex: 1 1 14em;
    min-width: 0;
    height: 44px;
    padding: 0 1em;
    border: 1px solid rgba(27, 50, 126, 0.35);
    border-radius: 999px;
    background: #FFFFFF;
    font: inherit;
    font-size: clamp(15px, 2.2vh, 18px);
    color: var(--colorTexto);
    transition: border-color var(--duracionControl) var(--curvaMotion);
}

.txbCotizacion:focus {
    border-color: var(--colorAzulProfundo);
}

.confirmacionCotizacion {
    margin: 0 0 1em 0;
    font-size: clamp(14px, 2.0vh, 17px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--colorAzulProfundo);
}

/* ----- Buttons: "Anterior" at the left, "Siguiente" / "Cerrar" at the right.
   The main action of a screen (.btnPrimario: "Siguiente", "Enviar") is
   drawn filled, the header pill's hover state at rest. ----- */
.botonesCotizacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 1.4em;
}

.botonesCotizacion .btnAnterior {
    margin-right: auto;
}

.btnPrimario {
    color: #FFFFFF;
    box-shadow: 0 3px 12px rgba(27, 50, 126, 0.30);
    text-shadow: 0 1px 2px rgba(10, 22, 64, 0.45);
}

.btnPrimario::after {
    opacity: 1;
}

/* Phones and tablets: 16px gutters, 44px targets. The header keeps the
   kicker alone on its row (clear of the corner button) and puts the
   step beside the progress bar. The options become a keypad: the counts
   in four columns (0 1 2 3 / 4 5 6 7 / 8 9 10 Más de 10; the last column
   takes its text's width), the ranges one per row. The dividers run
   between the columns, a hairline between the rows. */
@media (max-width: 1023px) {
    .dlgCotizacion {
        padding: 1.4em 16px 1.2em;
    }

    .frmCotizacion {
        max-height: calc(100vh - 4.6em - 8px);
    }

    .btnCerrarCotizacion {
        top: 8px;
        right: 8px;
    }

    .cabeceraCotizacion {
        align-items: center;
        row-gap: 0.6em;
    }

    .marcaCotizacion {
        grid-column: 1 / -1;
        padding-right: 40px;                /* room for the corner button */
        font-size: 13px;
    }

    .pasoCotizacion {
        grid-row: 2;
        grid-column: 2;
        padding-right: 0;
        font-size: 13px;
    }

    .progresoCotizacion {
        grid-row: 2;
        grid-column: 1;
        margin-top: 0;
    }

    .opcionesCotizacion {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
        border-radius: 16px;
    }

    .opcionesRango {
        grid-template-columns: minmax(0, 1fr);
    }

    .preguntaCotizacion {
        font-size: 22px;
    }

    .pildoraOpcion {
        height: 44px;
        padding: 0 0.6em;
    }

    .opcionesCotizacion .opcionCotizacion:nth-child(4n + 1) .pildoraOpcion::before,
    .opcionesRango .pildoraOpcion::before {
        display: none;
    }

    .opcionesCotizacion .opcionCotizacion:nth-child(n + 5) .pildoraOpcion,
    .opcionesRango .opcionCotizacion:nth-child(n + 2) .pildoraOpcion {
        border-top: 1px solid rgba(27, 50, 126, 0.12);
    }

    .cotizacionPreliminar {
        grid-template-columns: minmax(0, 1fr);
    }

    .botonesCotizacion .btnDialogo {
        flex: 1 1 auto;
    }
}

/* =====================================================================
   11.- "SESIÓN DE DIAGNÓSTICO" DIALOG  (review 2026-10-21 (d))
   Opened by the inline "WhatsApp" and "correo electrónico" of concept
   5. It wears the quote dialog's box and classes (.dlgCotizacion: the
   corner button, the kicker, the heading, the contact field, the
   messages and the buttons), so both read as one family; it asks for
   one field only, so it is narrower. Phones: the rules of block 10.
   ===================================================================== */
.dlgContacto {
    width: min(32rem, calc(100vw - 32px));
}

/* =====================================================================
   12.- "TÉRMINOS Y CONDICIONES" AND "POLÍTICA DE PRIVACIDAD" DIALOGS
   (2026-10-22; the privacy dialog since 2026-10-22 (c), with the same
   rules through .dlgTerminos)
   Opened by the footer links. They wear the quote dialog's box and
   classes (.dlgCotizacion: the width, the corner button, the kicker,
   the title, the intro line and the buttons; .frmCotizacion is the
   scrolling box), so the three dialogs read as one family. The header
   has no progress bar: the step's place at the right holds the date of
   the last update. Each clause is an H3 a step under the title, over
   body text at the page's reading size (paragraphs and lists 0.6em
   apart); a clause may hold H4 sub-headings, a step under the H3, in
   the H2 blue; the lists use the H2 blue for their markers. Phones: the rules of block 10, plus the date on its
   own row under the kicker (block 10 puts the step beside the progress
   bar, which this dialog does not have).
   ===================================================================== */
.titTerminos:focus {
    outline: none;                          /* takes the focus for the reading order only */
}

.seccionTerminos {
    margin: 0 0 1.1em 0;
}

.titSeccionTerminos {
    margin: 0 0 0.35em 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(16px, 2.4vh, 20px);
    font-weight: bold;
    line-height: 1.25;
    color: var(--colorAzulProfundo);
    text-wrap: balance;
}

.textoTerminos,
.listaTerminos {
    margin: 0 0 0.6em 0;
    font-size: clamp(14px, 2.0vh, 16px);
    line-height: 1.6;
    color: var(--colorTexto);
}

.listaTerminos {
    padding-left: 1.3em;
}

.listaTerminos li + li {
    margin-top: 0.35em;
}

.listaTerminos li::marker {
    color: var(--colorAzulTitular);
}

.seccionTerminos > :last-child {
    margin-bottom: 0;                       /* the section's own margin follows */
}

/* Sub-heading inside a clause (e.g. "Uso permitido"). */
.subtitSeccionTerminos {
    margin: 0.9em 0 0.3em 0;
    font-family: var(--fuenteBotones);      /* Cambria */
    font-size: clamp(15px, 2.1vh, 17px);
    font-weight: bold;
    line-height: 1.25;
    color: var(--colorAzulTitular);
    text-wrap: balance;
}

/* The WhatsApp number never breaks at its hyphen. */
.sinCorteTerminos {
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .dlgTerminos .pasoCotizacion {
        grid-column: 1 / -1;
    }
}

/* =====================================================================
   14.- "SOLICITUD DE REUNIÓN VIRTUAL" DIALOG  (2026-10-23)
   Opened by the header pill "Contáctenos". It wears the quote dialog's
   box and classes (.dlgCotizacion: the corner button, the kicker, the
   title, the field style, the message and the buttons), so the dialogs
   read as one family. Under the kicker, the quote's progress bar with a
   single segment, lit (.lineaContactenos: one continuous line, 2026-10-23
   (b)). Under the title, the two medium pills (the header pill, 44px as
   the dialog buttons), both as wide as the wider one ("Correo
   Electrónico") and centered as a pair; the selected one (aria-pressed)
   is filled, as .btnPrimario. Each medium's panel is a two-column grid,
   label | value: "Enviar a:" as text, in line with the text inside the
   fields; "De:" and "Asunto:" fields (the placeholders gray);
   "Detalle:" a text area (16px corners, the page's shape for boxes),
   its label on its first line. "Enviar" is disabled until "De:" is
   valid: faded, no shadow, no press. Phones: the rules of block 10
   ("Enviar" full width); under 600px the pills are stacked (same width,
   centered) and each label sits above its value, so the values (the
   email address, the text area) get the dialog's whole width.
   ===================================================================== */
.dlgContactenos {
    width: min(36rem, calc(100vw - 32px));
}

/* One continuous line in the place of the quote's progress bar: the
   bar's own box (4px, rounded) with one segment, in the lit color. It
   sits a little lower than the bar (1em, at least 14px, instead of
   0.7em), so its right end clears the corner button and its halo. */
.lineaContactenos {
    margin-top: max(1em, 14px);
}

.lineaContactenos i {
    background-color: var(--colorAzulTitular);
}

/* Two equal columns as wide as the wider pill: the grid is only as wide
   as its content (width: max-content), so each 1fr column takes the
   width of the widest pill; the pair is centered by its auto margins. */
.mediosContactenos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 1.2em;
}

.btnMedioContactenos[aria-pressed="true"] {
    color: #FFFFFF;
    box-shadow: 0 3px 12px rgba(27, 50, 126, 0.30);
    text-shadow: 0 1px 2px rgba(10, 22, 64, 0.45);
}

.btnMedioContactenos[aria-pressed="true"]::after {
    opacity: 1;
}

.panelContactenos {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1em;
    row-gap: 0.8em;
    align-items: center;
    font-size: clamp(15px, 2.2vh, 18px);    /* the size of the fields' text */
    line-height: 1.45;
}

.panelContactenos[hidden] {
    display: none;
}

.etiquetaContactenos {
    color: var(--colorTexto);
}

.destinoContactenos {
    padding-left: calc(1em + 1px);          /* the fields' padding and border */
    color: var(--colorTexto);
    overflow-wrap: anywhere;
}

.txbContactenos {
    width: 100%;
}

.txbContactenos::placeholder {
    color: #707A8A;                         /* gray, 4.5:1 on the field's white */
    opacity: 1;
}

/* "Enviar" while "De:" is not valid. */
.dlgContactenos .btnPrimario:disabled {
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.txaContactenos {
    height: auto;                           /* rows="3" */
    padding: 0.55em 1em;
    border-radius: 16px;
    line-height: 1.45;
    resize: vertical;
}

.etiquetaDetalleContactenos {
    align-self: start;
    padding-top: calc(0.55em + 1px);        /* on the text area's first line */
}

@media (max-width: 1023px) {
    .mediosContactenos {
        gap: 8px;
    }

    .lineaContactenos {
        grid-column: 1 / -1;                /* block 10 puts the bar beside the step; there is no step here */
        margin-top: 4px;                    /* clear of the corner button (block 10 sets 0) */
    }
}

@media (max-width: 599px) {
    .mediosContactenos {
        grid-template-columns: 1fr;         /* stacked, same width, centered */
    }

    .panelContactenos {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 0.3em;
    }

    .etiquetaContactenos ~ .etiquetaContactenos {
        margin-top: 0.6em;                  /* between the rows */
    }

    .etiquetaDetalleContactenos {
        padding-top: 0;
    }
}

/* Confirmation state (2026-10-26 (e)): once the email is sent from
   Arita, the JS hides the medium pills, the panel and "Enviar" and
   shows the confirmation line and "Cerrar". The pills' grid sets its
   own display, and the buttons may too, so [hidden] needs these rules;
   the line wears the quote's .confirmacionCotizacion type, centered,
   with the panel's air under it. */
.mediosContactenos[hidden],
.confirmacionContactenos[hidden],
.dlgContactenos .btnDialogo[hidden] {
    display: none;
}

.confirmacionContactenos {
    margin: 0.4em 0 1.2em;
    text-align: center;
}

/* =====================================================================
   15.- "INGRESAR A ARITA" DIALOG  (2026-10-23 (c))
   Opened by the header icon "Entrar a Arita" (button#btnLogin). It wears
   the quote dialog's box and classes (.dlgCotizacion: the corner button,
   the kicker, the field style, the message and the buttons) and dialog
   14's continuous line under the kicker (.lineaContactenos), so the
   dialogs read as one family; as narrow as dialog 11. The two rows
   (label | field) are a grid as wide as its content, centered in the
   body, with the same air above and below; the fields keep one width
   and shrink only when the window is too narrow. "Ingresar" at the
   bottom right is disabled until both fields are valid (dialog 14's
   disabled look); in the same row, at the left end (2026-10-23 (d); it
   was centered under "Ingresar"), "¿Olvidó su contraseña?" is a text
   button in the page's navy, italic on hover (fine pointers) and on
   keyboard focus. The rows keep the air the old last row took, so the
   modal keeps its height and width. Phones: the rules of block 10;
   under 600px (2026-10-23 (e)) the last row is stacked:
   "¿Olvidó su contraseña?" centered, then "Ingresar" full width as the
   last element, 1rem apart (the gap the old last row had), and the rows
   lose the extra air, so the modal keeps its earlier height there too.
   ===================================================================== */
.dlgLogin {
    width: min(32rem, calc(100vw - 32px));
}

.panelLogin {
    display: grid;
    grid-template-columns: auto minmax(0, 15em);
    column-gap: 1em;
    row-gap: 0.8em;
    align-items: center;
    width: max-content;
    max-width: 100%;
    /* 1.6em above and below, plus half the height of the row that
       "¿Olvidó su contraseña?" had under "Ingresar" until 2026-10-23 (d):
       its 1em margin (the form's text, 1rem) and its own height (0.2em
       padding above and below and one line of 'normal' height, 1.33 in
       Segoe UI, at its font size), so the modal keeps its height. */
    --altoFilaOlvido: calc(1rem + 1.73 * clamp(14px, 2.0vh, 17px));
    margin: calc(1.6em + var(--altoFilaOlvido) / 2) auto;
    font-size: clamp(15px, 2.2vh, 18px);    /* the size of the fields' text */
    line-height: 1.45;
}

.etiquetaLogin {
    color: var(--colorTexto);
}

.txbLogin {
    width: 100%;
}

.avisoLogin {
    text-align: center;
}

/* "Ingresar" while a field is empty or not valid. */
.dlgLogin .btnPrimario:disabled {
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* The last row: "¿Olvidó su contraseña?" at the left end, "Ingresar" at
   the right end (2026-10-23 (d)); the text sits on the button's middle
   line and starts at the content's left edge, as the kicker does. */
.botonesLogin {
    align-items: center;
}

.botonesLogin .enlaceOlvidoLogin {
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

.enlaceOlvidoLogin {
    margin: 0;
    padding: 0.2em 0.4em;
    border: none;
    border-radius: 6px;
    background: transparent;
    font: inherit;
    font-size: clamp(14px, 2.0vh, 17px);
    color: var(--colorAzulProfundo);
    cursor: pointer;
}

.enlaceOlvidoLogin:focus-visible {
    font-style: italic;
}

@media (hover: hover) and (pointer: fine) {
    .enlaceOlvidoLogin:hover {
        font-style: italic;
    }
}

@media (max-width: 599px) {
    .panelLogin {
        margin: 1.6em auto;                 /* the stacked row is as tall as the old last row */
    }

    .botonesLogin {
        flex-direction: column;
        align-items: stretch;               /* "Ingresar" full width */
        gap: 1rem;
    }

    .botonesLogin .enlaceOlvidoLogin {
        align-self: center;
        margin-right: 0;
    }
}

/* =====================================================================
   REDUCED MOTION
   Gentler, not still (review-animations 2026-10-18: before, every
   transition collapsed to 0.01ms, fades included): whatever moves
   stops moving, whatever fades keeps fading. No lift or press on the
   controls, no zoom on the thumbnails, the bullet ring always at its
   size, the service descriptions opening at once, the explanation, the image and
   the dialog arriving by opacity alone, the areas without their rise.
   The pill fills, the underlines, the backdrop and the crossfades stay.
   The JS never starts the cycle of concepts, nor marks the areas, under
   this preference.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    /* Controls: no lift, no press. */
    .btnLogoEncabezado:hover,
    .btnLogoEncabezado:active,
    .btnIconoEncabezado:hover,
    .btnIconoEncabezado:active,
    .btnEncabezado:active,
    .enlaceTemaVideo:hover .imgVideo,
    .enlaceTemaVideo:focus-visible .imgVideo {
        transform: none;
    }

    .enlaceTemaVideo:hover .iconoPlay,
    .enlaceTemaVideo:focus-visible .iconoPlay {
        transform: translate(-50%, -50%);
    }

    /* Bullets: the ring is always at its size; only the crossfade runs. */
    .imgBulletActivo {
        transform: scale(var(--escalaBulletActivo));
    }

    /* Service descriptions: open and close at once, so the items below
       do not slide; the arrow turns at once. */
    .microExplanation,
    .itemServicio.abierto .microExplanation,
    .itemServicio:hover .microExplanation,
    .iconoAcordeon {
        transition-duration: 0.01ms;
        transition-delay: 0s;
    }

    /* Entrances by opacity alone. */
    .sexBloqueExplicax.activo,
    .imgConcepto.activo,
    .dotSendero {
        animation-name: aparecerSuave;
        animation-duration: var(--duracionEstado);
    }

    .dlgMensaje,
    .dlgMensaje[open] {
        transform: none;
    }

    /* The areas never rise; if the preference turns on later, whatever
       the JS still reveals only fades. */
    .revelable {
        transform: none;
    }
}

@keyframes aparecerSuave {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* =====================================================================
   PHONES AND TABLETS  (under 1024px; design review 6.1 and 7.5)
   The desktop rules above do not change; this block restates each area
   for a narrow window: single columns, 16px gutters, 44px targets.
   ===================================================================== */
@media (max-width: 1023px) {

    /* ----- Frame ----- */
    body {
        min-width: 320px;
        /* The background fills the first screen (cropped sideways,
           centered) and the page continues in the same color below. */
        background-size: auto 100vh;
    }

    /* ----- Header: three rows -----
       Row 1: logo at the left, the two icons at the right.
       Row 2: the two pills, full width (half each), 44px tall.
       Row 3: the four chapter links in a horizontally scrollable strip.
       (Review 2026-10-21 (c): the pills are no longer inside the nav, so
       they take their own grid area; the rows are as before.) */
    .sexEncabezado {
        height: auto;
        padding: 8px 16px 6px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo    iconos"
            "botones botones"
            "nav     nav";
        row-gap: 8px;
    }

    .sexEncabezadoIzquierda {
        grid-area: logo;
        height: auto;
    }

    .imgLogoCRC {
        height: 56px;
    }

    .sexEncabezadoDerecha {
        grid-area: iconos;
        height: auto;
        gap: 8px;
    }

    .btnIconoEncabezado {
        min-width: 44px;
        min-height: 44px;
    }

    .sexEncabezadoCentro {
        grid-area: nav;
        justify-self: stretch;
        padding: 0;
    }

    .sexBotonesEncabezado {
        grid-area: botones;
        gap: 8px;
        margin-right: 0;
    }

    .btnEncabezado {
        flex: 1 1 calc(50% - 4px);
        height: 44px;
        padding: 0 0.8em;
        font-size: 16px;
    }

    .sexCapitulos {
        flex: 1 1 100%;
        margin: 0 -16px;                    /* the strip runs edge to edge */
        padding: 0 40px 0 16px;
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;

        /* The right edge fades out, so a link cut there is seen to
           continue (critique 2026-10-18: "Videos" was simply cut). The
           extra right padding keeps the last link clear of the fade once
           the strip is scrolled to its end. */
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    }

    .sexCapitulos::-webkit-scrollbar {
        display: none;
    }

    .enlaceCapitulo {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        font-size: 16px;
    }

    /* ----- Page title ----- */
    .sexTituloPagina {
        padding: 2.5vh 16px 2vh;
    }

    .titPagina {
        font-size: clamp(24px, 7vw, 32px);
    }

    /* ----- Concepto Principal: one column, accordion -----
       The section becomes a two-column grid (bullet | text); the
       tablist and the explanation container dissolve into it (display:
       contents) so that the active explanation block, placed by order,
       renders directly under its concept. The image closes the list at
       full width; the legend follows it. No trail (the JS skips it). */
    .sexConceptoPrincipal {
        --pasoBullet: 44px;
        --tamanoBullet: 0.5cm;
        grid-template-columns: 44px minmax(0, 1fr);
        grid-auto-rows: auto;
        row-gap: 4px;
        padding: 0 16px 0 4px;
    }

    .listaConceptos,
    .sexExplicaxConcepto {
        display: contents;
    }

    .sexBulletConcepto {
        min-height: var(--pasoBullet);
    }

    .sexTextoConcepto {
        min-height: var(--pasoBullet);
        padding-left: 8px;
    }

    .sexBloqueExplicax {
        grid-column: 1 / -1;
        padding: 8px 12px 12px;
    }

    /* Each concept's block follows its own row: bullet n and text n
       take order 10n, the block 10n + 1. */
    .sexBulletConcepto[data-concepto="1"], .sexTextoConcepto[data-concepto="1"] { order: 10; }
    .sexBloqueExplicax[data-concepto="1"]                                        { order: 11; }
    .sexBulletConcepto[data-concepto="2"], .sexTextoConcepto[data-concepto="2"] { order: 20; }
    .sexBloqueExplicax[data-concepto="2"]                                        { order: 21; }
    .sexBulletConcepto[data-concepto="3"], .sexTextoConcepto[data-concepto="3"] { order: 30; }
    .sexBloqueExplicax[data-concepto="3"]                                        { order: 31; }
    .sexBulletConcepto[data-concepto="4"], .sexTextoConcepto[data-concepto="4"] { order: 40; }
    .sexBloqueExplicax[data-concepto="4"]                                        { order: 41; }
    .sexBulletConcepto[data-concepto="5"], .sexTextoConcepto[data-concepto="5"] { order: 50; }
    .sexBloqueExplicax[data-concepto="5"]                                        { order: 51; }

    .titExplicaxConcepto {
        font-size: clamp(21px, 6vw, 28px);
    }

    .sexImagenConcepto {
        order: 90;
        grid-column: 1 / -1;
        grid-row: auto;
        padding: 8px 0 0;
    }

    .imgConcepto {
        height: auto;
        max-height: 70vh;
    }

    .leyendaReportes {
        order: 91;
        grid-column: 1 / -1;
        position: static;
        padding: 12px 0 8px;
        text-align: center;
    }

    /* ----- Misión: cards stacked ----- */
    .sexMision,
    .sexServicios,
    .sexQuienesSomos,
    .sexVideos {
        padding: 5vh 16px 6vh;
    }

    .tarjetaMision {
        flex-basis: 100%;
        max-width: none;
        padding: 2vh 16px 2.2vh;
    }

    /* ----- Servicios: the three lists stacked under their titles -----
       No connectors (the JS does not draw them; the overlay is hidden
       in case it was drawn at a wider size). */
    .sexDiagramaServicios {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
    }

    .titSeccionServicios,
    .subtituloServicios,
    .listaServicios {
        grid-row: auto;
        grid-column: 1;
    }

    .titSeccionServicios {
        margin: 3vh 0 0.5vh 0;
    }

    .subtituloServicios {
        margin: 0 0 1.5vh 0;
        padding: 0 8px;
    }

    /* Each section in its own run: title 10n, sub-line 10n + 1, list 10n + 2. */
    .titSeccionServicios[data-seccion="1"] { order: 10; }
    .subtituloServicios[data-seccion="1"]  { order: 11; }
    .listaServicios[data-seccion="1"]      { order: 12; }
    .titSeccionServicios[data-seccion="2"] { order: 20; }
    .subtituloServicios[data-seccion="2"]  { order: 21; }
    .listaServicios[data-seccion="2"]      { order: 22; }
    .titSeccionServicios[data-seccion="3"] { order: 30; }
    .subtituloServicios[data-seccion="3"]  { order: 31; }
    .listaServicios[data-seccion="3"]      { order: 32; }

    .listaServicios,
    .listaServicios[data-seccion="1"],
    .listaServicios[data-seccion="2"],
    .listaServicios[data-seccion="3"] {
        justify-content: flex-start;
        gap: 4px;
        padding: 0;
    }

    .itemServicio {
        min-height: 44px;
        align-items: center;
        align-content: center;              /* the name stays centered in the 44px
                                               (the closed description's row is 0) */
        padding: 0 8px;
    }

    .conectoresServicios {
        display: none;
    }

    /* The description opens in the flow under its item, as on desktop
       (block 4, 2026-10-26; phones had it in the flow since the critique
       of 2026-10-18); here by tap only, there is no hover on touch. */

    .leyendaServicios {
        position: static;
        margin-top: 4vh;
        text-align: center;
    }

    /* ----- Quiénes Somos: photo first, then the text, then the career ----- */
    .sexContenidoQuienesSomos {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 3vh;
    }

    .sexFotoQuienesSomos {
        width: 60%;
        margin: 0 auto;
    }

    /* ----- Videos: two columns from 600px, one below ----- */
    .sexTemasVideos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 4vh;
    }

    .titTemaVideo {
        min-height: 0;                      /* one line */
    }

    /* ----- Footer: three rows, centered ----- */
    .sexPiePagina {
        height: auto;
        padding: 16px;
        grid-template-columns: minmax(0, 1fr);
        row-gap: 8px;
        text-align: center;
    }

    .sexPiePaginaIzquierda,
    .sexPiePaginaCentro,
    .sexPiePaginaDerecha {
        justify-self: center;
        text-align: center;
    }

    .enlacePiePagina {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 599px) {
    .sexTemasVideos {
        grid-template-columns: minmax(0, 1fr);
    }
}
