/*
 * CCA redesign — visual foundation, delivery 01.
 * Source: CCA Website - Handoff [EXT], exported Type/Color/Grid/Buttons guides.
 * Opt in with .cca-v2. This file is independent of dist/styles/main.css.
 * Pending handoff decisions are recorded in docs/rediseno/base-visual.md.
 */

@font-face {
  font-family: "CCA Stack Sans Headline";
  src: url("../fonts/cca-v2/stack-sans-headline-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "CCA Stack Sans Headline";
  src: url("../fonts/cca-v2/stack-sans-headline-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "CCA Stack Sans Headline";
  src: url("../fonts/cca-v2/stack-sans-headline-arrows.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  unicode-range: U+2190, U+2192-2193;
}

@font-face {
  font-family: "CCA Stack Sans Text";
  src: url("../fonts/cca-v2/stack-sans-text-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "CCA Stack Sans Text";
  src: url("../fonts/cca-v2/stack-sans-text-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "CCA Geist Mono";
  src: url("../fonts/cca-v2/geist-mono-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "CCA Geist Mono";
  src: url("../fonts/cca-v2/geist-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.cca-v2 {
  --cca-v2-white: #ffffff;
  --cca-v2-gray-200: #f3f3f3;
  --cca-v2-gray-400: #ececec;
  --cca-v2-gray-600: #aaaaaa;
  --cca-v2-gray-800: #888888;
  --cca-v2-black: #000000;
  --cca-v2-gold: #ffd700;
  --cca-v2-silver: #c0c0c0;
  /* Client code from the palette ticket, confirmed on 2026-10-15. */
  --cca-v2-bronze: #ffa500;
  --cca-v2-grand-prix: #a78bfa;
  /* Availability indicator measured in Buttons/Tags/Icons.png; not a text color. */
  --cca-v2-available: #00ff00;

  --cca-v2-font-headline: "CCA Stack Sans Headline", Arial, sans-serif;
  --cca-v2-font-text: "CCA Stack Sans Text", Arial, sans-serif;
  --cca-v2-font-mono: "CCA Geist Mono", "Courier New", monospace;
  --cca-v2-weight-light: 300;
  --cca-v2-weight-regular: 400;
  --cca-v2-weight-medium: 500;
  /* Type ticket: relative tracking also follows responsive and editor-selected sizes. */
  --cca-v2-tracking-h1: -.03em;
  --cca-v2-tracking-h2: -.03em;
  --cca-v2-tracking-h3: -.02em;
  --cca-v2-tracking-subheadline: -.01em;
  --cca-v2-leading-section: 1.3;

  /* Desktop maxima are explicit in Type.png. Mobile interpolation is provisional. */
  --cca-v2-type-h1: clamp(56px, 9.028vw, 130px);
  --cca-v2-type-h2: clamp(44px, 6.667vw, 96px);
  --cca-v2-type-h3: clamp(36px, 4.862vw, 70px);
  --cca-v2-type-subheadline: clamp(28px, 2.778vw, 40px);
  --cca-v2-type-title: clamp(24px, 2.223vw, 32px);
  /* Subtitle/body/small sizes and weights follow the supplied Type ticket. */
  --cca-v2-type-subtitle: 16px;
  --cca-v2-type-body: 16px;
  --cca-v2-type-small: 12px;
  --cca-v2-type-label: 12px;
  --cca-v2-type-tag: 10px;

  --cca-v2-space-4: 4px;
  --cca-v2-space-8: 8px;
  --cca-v2-space-16: 16px;
  --cca-v2-space-20: 20px;
  --cca-v2-space-40: 40px;
  --cca-v2-space-80: 80px;
  --cca-v2-space-120: 120px;
  --cca-v2-space-160: 160px;
  --cca-v2-space-200: 200px;
  --cca-v2-radius: 6px;
  --cca-v2-radius-pill: 999px;
  --cca-v2-grid-gap: 8px;
  --cca-v2-page-gutter: 8px;
  --cca-v2-grid-columns: 12;
  --cca-v2-container-width: 1424px;

  --cca-v2-surface: var(--cca-v2-white);
  --cca-v2-ink: var(--cca-v2-black);
  --cca-v2-line: var(--cca-v2-gray-600);
  color: var(--cca-v2-ink);
  background: var(--cca-v2-surface);
  font-family: var(--cca-v2-font-text);
  font-size: var(--cca-v2-type-body);
  font-weight: var(--cca-v2-weight-regular);
  line-height: 1.4;
  text-align: start;
  color-scheme: light;
}

.cca-v2,
.cca-v2 *,
.cca-v2 *::before,
.cca-v2 *::after {
  box-sizing: border-box;
}

.cca-v2.cca-v2--dark,
.cca-v2 .cca-v2--dark {
  --cca-v2-surface: var(--cca-v2-black);
  --cca-v2-ink: var(--cca-v2-white);
  color: var(--cca-v2-ink);
  background: var(--cca-v2-surface);
  color-scheme: dark;
}

.cca-v2.cca-v2--light,
.cca-v2 .cca-v2--light {
  --cca-v2-surface: var(--cca-v2-white);
  --cca-v2-ink: var(--cca-v2-black);
  color: var(--cca-v2-ink);
  background: var(--cca-v2-surface);
  color-scheme: light;
}

.cca-v2 .cca-v2__container {
  width: calc(100% - var(--cca-v2-page-gutter) * 2);
  max-width: var(--cca-v2-container-width);
  margin-inline: auto;
}

.cca-v2 .cca-v2__grid {
  display: grid;
  grid-template-columns: repeat(var(--cca-v2-grid-columns), minmax(0, 1fr));
  gap: var(--cca-v2-grid-gap);
}

.cca-v2 .cca-v2__grid > * { min-width: 0; }

.cca-v2 .cca-v2__headline-1,
.cca-v2 .cca-v2__headline-2,
.cca-v2 .cca-v2__headline-3,
.cca-v2 .cca-v2__subheadline,
.cca-v2 .cca-v2__title {
  margin: 0;
  color: inherit;
  font-family: var(--cca-v2-font-headline);
  font-weight: var(--cca-v2-weight-medium);
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}

.cca-v2 .cca-v2__headline-1 { font-size: var(--cca-v2-type-h1); line-height: .9; letter-spacing: var(--cca-v2-tracking-h1); }
.cca-v2 .cca-v2__headline-2 { font-size: var(--cca-v2-type-h2); line-height: .9; letter-spacing: var(--cca-v2-tracking-h2); }
.cca-v2 .cca-v2__headline-3 { font-size: var(--cca-v2-type-h3); line-height: .95; letter-spacing: var(--cca-v2-tracking-h3); }
.cca-v2 .cca-v2__headline-3--regular { font-weight: var(--cca-v2-weight-regular); }
.cca-v2 .cca-v2__subheadline { font-size: var(--cca-v2-type-subheadline); font-weight: 400; line-height: 1.1; letter-spacing: var(--cca-v2-tracking-subheadline); }
.cca-v2 .cca-v2__title { font-size: var(--cca-v2-type-title); font-weight: 400; line-height: 1.1; }

.cca-v2 .cca-v2__subtitle,
.cca-v2 .cca-v2__body,
.cca-v2 .cca-v2__small {
  margin: 0;
  color: inherit;
  font-family: var(--cca-v2-font-text);
  font-weight: var(--cca-v2-weight-regular);
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: anywhere;
}

.cca-v2 .cca-v2__subtitle { font-size: var(--cca-v2-type-subtitle); line-height: 1.4; }
.cca-v2 .cca-v2__body { font-size: var(--cca-v2-type-body); font-weight: var(--cca-v2-weight-light); line-height: 1.4; }
.cca-v2 .cca-v2__body--light { font-weight: var(--cca-v2-weight-light); }
/* Marcas del texto de los campos (**negrita** y ((aclaración))): ver cca_v2_rich_text(). La aclaración mide 14 px sobre un texto de 16 px y escala con él. */
.cca-v2 .cca-v2__strong { font-weight: var(--cca-v2-weight-medium); }
.cca-v2 .cca-v2__em { font-style: italic; }
.cca-v2 .cca-v2__underline { text-decoration: underline; text-underline-offset: .15em; }
.cca-v2 .cca-v2__note { font-size: .875em; }
/* Puntos de lista (líneas que empiezan por "- "): viñeta redonda y 1,25em de sangría; sin espacio extra entre puntos. */
.cca-v2 .cca-v2__bullets { margin: 0; padding: 0 0 0 1.25em; list-style: disc; }
/* El punto es el carácter "·" (punto medio); los números no cambian. */
.cca-v2 ul.cca-v2__bullets > li::marker { content: "·\00a0\00a0"; }
/* Numeradas (líneas que empiezan por "1. ", "1) " o "1- "): conservan su número. */
.cca-v2 .cca-v2__bullets--num { padding-left: 1.5em; list-style: decimal; }
/* Sublista (dos espacios antes del punto o número): dentro del ítem de arriba, sin espacio extra. */
.cca-v2 .cca-v2__bullets .cca-v2__bullets { margin: 0; }
/* Tabla (líneas que empiezan por "|"): la primera fila es el encabezado; una línea fina bajo cada fila; se desplaza de lado si no cabe. */
.cca-v2 .cca-v2__table-wrap { max-width: 100%; margin: 0 0 1em; overflow-x: auto; }
.cca-v2 .cca-v2__table-wrap:is(:last-child, .cca-v2__joined) { margin-bottom: 0; }
/* Tabla pequeña (entre líneas "((" y "))"): mismo tamaño que una aclaración. */
.cca-v2 .cca-v2__table-wrap--small { font-size: .875em; }
.cca-v2 .cca-v2__table { width: 100%; border-collapse: collapse; }
.cca-v2 .cca-v2__table :is(th, td) { padding: 12px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.cca-v2 .cca-v2__table :is(th, td):first-child { padding-left: 0; }
/* Una palabra no se parte para estrechar la columna (el acordeón usa overflow-wrap: anywhere, que deja las columnas en una letra); solo se parte si no cabe en la tabla. */
.cca-v2 .cca-v2__table :is(th, td) { overflow-wrap: break-word; word-break: normal; }
.cca-v2 .cca-v2__table th { font-weight: var(--cca-v2-weight-medium); }
.cca-v2 .cca-v2__table tbody tr:last-child td { border-bottom: 0; }
.cca-v2 .cca-v2__small { font-size: var(--cca-v2-type-small); font-weight: var(--cca-v2-weight-light); line-height: 1.4; }
.cca-v2 .cca-v2__label {
  margin: 0;
  color: inherit;
  font-family: var(--cca-v2-font-mono);
  font-size: var(--cca-v2-type-label);
  font-weight: var(--cca-v2-weight-medium);
  line-height: var(--cca-v2-leading-section);
  letter-spacing: normal;
  text-transform: uppercase;
}

.cca-v2 .cca-v2__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: var(--cca-v2-space-8);
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--cca-v2-ink);
  border-radius: var(--cca-v2-radius-pill);
  background: var(--cca-v2-ink);
  color: var(--cca-v2-surface);
  font-family: var(--cca-v2-font-mono);
  font-size: var(--cca-v2-type-label);
  font-weight: var(--cca-v2-weight-medium);
  line-height: 1;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  appearance: none;
  transition: background-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.cca-v2 .cca-v2__button--secondary {
  background: transparent;
  color: var(--cca-v2-ink);
}

.cca-v2 .cca-v2__button--small {
  min-height: 32px;
  padding: 8px 14px;
  font-size: var(--cca-v2-type-tag);
}

.cca-v2 .cca-v2__button--tertiary {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  color: var(--cca-v2-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (hover: hover) {
  .cca-v2 .cca-v2__button:not(:disabled):not([aria-disabled="true"]):hover {
    background: transparent;
    color: var(--cca-v2-ink);
  }
  .cca-v2 .cca-v2__button--secondary:not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--cca-v2-ink);
    color: var(--cca-v2-surface);
  }
  .cca-v2 .cca-v2__button--tertiary:not(:disabled):not([aria-disabled="true"]):hover { opacity: .5; }
}

.cca-v2 .cca-v2__button:disabled,
.cca-v2 .cca-v2__button[aria-disabled="true"] {
  opacity: .3;
  cursor: not-allowed;
}

.cca-v2 .cca-v2__button:focus-visible,
.cca-v2 .cca-v2__nav-link:focus-visible,
.cca-v2 .cca-v2__icon-button:focus-visible,
.cca-v2 .cca-v2__pagination-dot:focus-visible {
  outline: 2px solid var(--cca-v2-ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--cca-v2-surface);
}

/* Campos de formulario: borde negro de 1 px al enfocar. */
.cca-v2 .cca-v2__input:focus-visible {
  outline: 1px solid var(--cca-v2-ink);
  outline-offset: 0;
}

.cca-v2 .cca-v2__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: var(--cca-v2-space-16);
  color: var(--cca-v2-ink);
  font-family: var(--cca-v2-font-mono);
  font-size: var(--cca-v2-type-label);
  font-weight: var(--cca-v2-weight-medium);
  line-height: 1;
  text-decoration: none;
  text-underline-offset: 3px;
  text-transform: uppercase;
}

.cca-v2 .cca-v2__nav-link:hover,
.cca-v2 .cca-v2__nav-link[aria-current] { text-decoration: underline; }

.cca-v2 .cca-v2__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--cca-v2-space-4);
  padding: 6px 8px;
  border: 1px solid var(--cca-v2-gray-200);
  border-radius: var(--cca-v2-radius-pill);
  background: var(--cca-v2-gray-200);
  color: var(--cca-v2-black);
  font-family: var(--cca-v2-font-mono);
  font-size: var(--cca-v2-type-tag);
  font-weight: var(--cca-v2-weight-regular);
  line-height: 1;
  text-transform: uppercase;
}

.cca-v2 .cca-v2__tag--award,
.cca-v2 .cca-v2__tag--status { background: var(--cca-v2-white); }
.cca-v2 .cca-v2__tag--award::before,
.cca-v2 .cca-v2__tag--status::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cca-v2-award-color, var(--cca-v2-gray-400));
}
.cca-v2 .cca-v2__tag--gold { --cca-v2-award-color: var(--cca-v2-gold); }
.cca-v2 .cca-v2__tag--silver { --cca-v2-award-color: var(--cca-v2-silver); }
.cca-v2 .cca-v2__tag--bronze { --cca-v2-award-color: var(--cca-v2-bronze); }
.cca-v2 .cca-v2__tag--grand-prix { --cca-v2-award-color: var(--cca-v2-grand-prix); }
.cca-v2 .cca-v2__tag--mention::before { background: transparent; border: 1px solid var(--cca-v2-gray-600); }
.cca-v2 .cca-v2__tag--available { --cca-v2-award-color: var(--cca-v2-available); }
.cca-v2 .cca-v2__tag--out-of-stock { --cca-v2-award-color: var(--cca-v2-gray-400); color: #666; }
.cca-v2 .cca-v2__tag--offer { background: var(--cca-v2-black); color: var(--cca-v2-white); }

.cca-v2 .cca-v2__icon { display: block; flex-shrink: 0; }
.cca-v2 .cca-v2__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 12px;
  border: 0;
  border-radius: var(--cca-v2-radius-pill);
  background: var(--cca-v2-surface);
  color: var(--cca-v2-ink);
  cursor: pointer;
  appearance: none;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.cca-v2 .cca-v2__icon-button .cca-v2__icon { width: 20px; height: 20px; }
.cca-v2 .cca-v2__icon-button--inverse { background: var(--cca-v2-ink); color: var(--cca-v2-surface); }
.cca-v2 .cca-v2__icon-button:disabled { opacity: .4; cursor: not-allowed; }
.cca-v2 .cca-v2__icon-button--toggle [data-icon-state="on"] { display: none; }
.cca-v2 .cca-v2__icon-button--toggle[aria-pressed="true"] [data-icon-state="off"] { display: none; }
.cca-v2 .cca-v2__icon-button--toggle[aria-pressed="true"] [data-icon-state="on"] { display: block; }
.cca-v2 .cca-v2__arrow { display: inline-block; color: inherit; }
.cca-v2 .cca-v2__arrow .cca-v2__icon { width: 32px; height: 32px; }
.cca-v2 .cca-v2__arrow--medium .cca-v2__icon { width: 56px; height: 56px; }
.cca-v2 .cca-v2__arrow--large .cca-v2__icon { width: 80px; height: 80px; }
.cca-v2 .cca-v2__pagination { display: inline-flex; flex-wrap: wrap; gap: 0; color: inherit; }
.cca-v2 .cca-v2__pagination-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 44px;
  padding: 12px 8px;
  border: 0;
  border-radius: var(--cca-v2-radius-pill);
  background: transparent;
  color: inherit;
  cursor: pointer;
  appearance: none;
}
.cca-v2 .cca-v2__pagination-dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--cca-v2-radius-pill); background: currentColor; transition: width 150ms ease; }
.cca-v2 .cca-v2__pagination-dot[aria-pressed="true"]::before { width: 30px; }
.cca-v2 .cca-v2__pagination-dot:disabled { opacity: .4; cursor: not-allowed; }
@media (hover: hover) {
  .cca-v2 .cca-v2__icon-button:not(:disabled):hover { background: var(--cca-v2-gray-400); color: var(--cca-v2-black); }
  .cca-v2 .cca-v2__pagination-dot:not(:disabled):hover::before { opacity: .6; }
}

.cca-v2 .cca-v2__field {
  display: flex;
  flex-direction: column;
  gap: var(--cca-v2-space-4);
  padding: var(--cca-v2-space-8) 12px;
  border-radius: var(--cca-v2-radius);
  background: var(--cca-v2-gray-200);
  color: var(--cca-v2-black);
}

.cca-v2 .cca-v2__input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--cca-v2-radius);
  background: transparent;
  color: var(--cca-v2-black);
  font-family: var(--cca-v2-font-text);
  font-size: var(--cca-v2-type-body);
  font-weight: var(--cca-v2-weight-light);
  line-height: 1.4;
}

.cca-v2 .cca-v2__field .cca-v2__input {
  border-radius: 0;
  --cca-v2-ink: var(--cca-v2-black);
  --cca-v2-surface: var(--cca-v2-gray-200);
}

.cca-v2 .cca-v2__field > select.cca-v2__input {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 24px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 5px) center, right center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  box-shadow: none;
  cursor: pointer;
}
/* The containing field already shows keyboard focus; avoid a second native rectangle. */
.cca-v2 .cca-v2__field > select.cca-v2__input:focus { outline: none; }

/* Animate the real native picker where customizable selects are supported. */
@supports (appearance: base-select) {
  .cca-v2 select:not([multiple]):not([size]),
  .cca-v2 select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
  .cca-v2 .cca-v2__field > select.cca-v2__input { background-image: none; padding-inline-end: 0; }
  .cca-v2 select::picker-icon { content: ""; width: 6px; height: 6px; margin-inline-start: auto; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 260ms ease; }
  .cca-v2 select:open::picker-icon { transform: rotate(225deg); }
  .cca-v2 select::picker(select) { padding: 8px; margin-block-start: 8px; border: 1px solid var(--cca-v2-gray-400); border-radius: var(--cca-v2-radius); background: var(--cca-v2-surface,#fff); color: var(--cca-v2-ink,#000); box-shadow: 0 8px 24px rgb(0 0 0 / .12); max-height: min(320px,60dvh); opacity: 0; transform: translateY(-6px); transition: opacity 220ms ease, transform 260ms cubic-bezier(.22,1,.36,1), display 260ms allow-discrete, overlay 260ms allow-discrete; }
  .cca-v2 select:open::picker(select) { opacity: 1; transform: translateY(0); }
  .cca-v2 select option { padding: 8px 12px; border-radius: 4px; }
  .cca-v2 select option:checked { background: var(--cca-v2-gray-400); }
  @starting-style {
    .cca-v2 select:open::picker(select) { opacity: 0; transform: translateY(-6px); }
  }
}

/* Preserve native details semantics while animating both opening and closing. */
@supports selector(::details-content) {
  .cca-v2 details::details-content { opacity: 0; transition: opacity 260ms ease, content-visibility 260ms allow-discrete; }
  .cca-v2 details[open]::details-content { opacity: 1; }
  @supports (interpolate-size: allow-keywords) {
    .cca-v2 details { interpolate-size: allow-keywords; }
    .cca-v2 details::details-content { block-size: 0; overflow: clip; transition: block-size 260ms cubic-bezier(.22,1,.36,1), opacity 260ms ease, content-visibility 260ms allow-discrete; }
    .cca-v2 details[open]::details-content { block-size: auto; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .cca-v2 select::picker(select) { transition: none; }
  .cca-v2 select::picker-icon { transition: none; }
  .cca-v2 details::details-content { transition: none; }
}

.cca-v2 .cca-v2__input::placeholder { color: var(--cca-v2-gray-600); opacity: 1; }
.cca-v2 .cca-v2__field > .cca-v2__label { line-height: 1; color: #888888; }
.cca-v2 .cca-v2__form-field { min-width: 0; }
.cca-v2 .cca-v2__field:focus-within { outline: 1px solid currentColor; outline-offset: 0; }
.cca-v2 .cca-v2__field .cca-v2__input:focus-visible { outline: none; }
.cca-v2 .cca-v2__field-note { margin: 8px 0 0; }

/* Casilla: la del diseño (Checkbox.svg), vacía con el borde negro y llena con el check. */
.cca-v2 input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; padding: 0; border: 0; background: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='15' height='15' rx='1.5' stroke='black'/%3E%3C/svg%3E") center / 16px 16px no-repeat; cursor: pointer; }
.cca-v2 input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0.5' y='0.5' width='15' height='15' rx='1.5' stroke='black'/%3E%3Cpath d='M12.416 3.37604C12.7607 3.60581 12.8538 4.07146 12.624 4.4161L7.62404 11.9161C7.4994 12.1031 7.2975 12.2243 7.0739 12.2464C6.8503 12.2686 6.62855 12.1893 6.46967 12.0304L3.46967 9.03041C3.17678 8.73752 3.17678 8.26264 3.46967 7.96975C3.76256 7.67686 4.23744 7.67686 4.53033 7.96975L6.88343 10.3229L11.376 3.58405C11.6057 3.23941 12.0714 3.14628 12.416 3.37604Z' fill-rule='evenodd' clip-rule='evenodd' fill='black'/%3E%3C/svg%3E"); }
.cca-v2 input[type="checkbox"]:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.cca-v2 input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .5; }
.cca-v2 .cca-v2__email-form { display: flex; align-items: flex-start; gap: 20px; }
.cca-v2 .cca-v2__email-form > .cca-v2__form-field { flex: 1; }
.cca-v2 .cca-v2__email-form > .cca-v2__button { flex: 0 0 auto; }
.cca-v2 .cca-v2__form-field--pill .cca-v2__field { border-radius: var(--cca-v2-radius-pill); padding: 14px 16px; }
.cca-v2 .cca-v2__search-form { display: flex; align-items: center; gap: 20px; }
.cca-v2 .cca-v2__search-box { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; border: 1px solid var(--cca-v2-gray-400); border-radius: var(--cca-v2-radius-pill); background: var(--cca-v2-gray-200); color: #000; }
.cca-v2 .cca-v2__search-box .cca-v2__form-field { flex: 1; }
.cca-v2 .cca-v2__search-box .cca-v2__field { background: transparent; }
.cca-v2 .cca-v2__search-box:has(.cca-v2__input:focus) { outline: 1px solid currentColor; outline-offset: 0; } /* El borde de foco rodea la barra entera, lupa incluida, pegado al contenedor. */
.cca-v2 .cca-v2__search-box .cca-v2__field:focus-within { outline: none; }
.cca-v2 .cca-v2__search-box .cca-v2__input { font-family: var(--cca-v2-font-mono); font-size: 12px; line-height: 1; font-weight: 500; text-transform: uppercase; }
.cca-v2 .cca-v2__search-form .cca-v2__search-submit { flex: 0 0 16px; width: 16px; margin-right: 30px; } /* Lupa del diseño de Archivo: 16px, a 30px del borde derecho. */
.cca-v2 .cca-v2__search-submit { display: grid; place-items: center; flex: 0 0 44px; height: 44px; padding: 0; border: 0; border-radius: var(--cca-v2-radius-pill); background: transparent; color: inherit; cursor: pointer; }
.cca-v2 .cca-v2__search-link { flex: 0 0 auto; padding-block: 16px; text-decoration: none; }
.cca-v2 .cca-v2__search-link:last-child { margin-left: auto; }
.cca-v2 :is(.cca-v2__search-submit, .cca-v2__search-link):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 767px) {
  .cca-v2 .cca-v2__search-form { flex-wrap: wrap; gap: 8px 20px; }
  .cca-v2 .cca-v2__search-box { flex-basis: 100%; }
  .cca-v2 .cca-v2__email-form { flex-wrap: wrap; gap: 16px; }
  .cca-v2 .cca-v2__email-form > .cca-v2__form-field { flex-basis: 100%; }
}
.cca-v2 .cca-v2__input:disabled { cursor: not-allowed; opacity: .5; }
.cca-v2 .cca-v2__input[aria-invalid="true"] { text-decoration: underline wavy; text-underline-offset: 4px; }

.cca-v2 .cca-v2__spacer { height: var(--cca-v2-spacer-height, var(--cca-v2-space-80)); }
.cca-v2 .cca-v2__spacer--20 { --cca-v2-spacer-height: var(--cca-v2-space-20); }
.cca-v2 .cca-v2__spacer--40 { --cca-v2-spacer-height: var(--cca-v2-space-40); }
.cca-v2 .cca-v2__spacer--80 { --cca-v2-spacer-height: var(--cca-v2-space-80); }
.cca-v2 .cca-v2__spacer--120 { --cca-v2-spacer-height: var(--cca-v2-space-120); }
.cca-v2 .cca-v2__spacer--160 { --cca-v2-spacer-height: var(--cca-v2-space-160); }
.cca-v2 .cca-v2__spacer--200 { --cca-v2-spacer-height: var(--cca-v2-space-200); }

/* One owner per module boundary. Flow roots prevent child margins from escaping or collapsing. */
/* Reproductores de YouTube y Vimeo (enlaces de video de los bloques): sin borde; cada bloque les da el tamaño de su video. */
.cca-v2 iframe:is([src*="youtube-nocookie.com"], [src*="player.vimeo.com"]) { border: 0; }
.cca-v2 .cca-v2__module-stack { display: flow-root; }
.cca-v2 .cca-v2__module-slot {
  --cca-module-space: var(--cca-module-space-desktop, var(--cca-v2-space-80));
  --cca-module-space-end: var(--cca-module-after-desktop, var(--cca-v2-space-20));
  display: flow-root; min-width: 0; padding-block: var(--cca-module-space) var(--cca-module-space-end);
}
.cca-v2 .cca-v2__module-slot > section { margin-block: 0; }
/* The space before and after a module takes the module's own background (dark and gray themes; the Apariencia color is set inline on the slot). Only the section that is a direct child; with no space chosen nothing changes. */
.cca-v2 .cca-v2__module-slot:has(> .cca-v2--dark) { background-color: var(--cca-v2-black); }
.cca-v2 .cca-v2__module-slot:has(> .cca-v2__text-section--gray) { background-color: var(--cca-v2-gray-200); }
@media (max-width: 767px) {
  .cca-v2 .cca-v2__module-slot { --cca-module-space: var(--cca-module-space-mobile, var(--cca-v2-space-40)); --cca-module-space-end: var(--cca-module-after-mobile, var(--cca-v2-space-20)); }
}

/* The four-column mobile grid is in Grid.png; its switch point is provisional. */
@media (max-width: 767px) {
  .cca-v2 { --cca-v2-grid-columns: 4; }
}

@media (prefers-reduced-motion: reduce) {
  .cca-v2 .cca-v2__button,
  .cca-v2 .cca-v2__icon-button,
  .cca-v2 .cca-v2__pagination-dot::before { transition: none; }
}

@media (forced-colors: active) {
  .cca-v2 .cca-v2__button { border-color: ButtonText; }
  .cca-v2 .cca-v2__icon-button { border: 1px solid ButtonText; }
  .cca-v2 .cca-v2__pagination-dot::before { background: ButtonText; }
  .cca-v2 .cca-v2__button:focus-visible,
  .cca-v2 .cca-v2__nav-link:focus-visible,
  .cca-v2 .cca-v2__icon-button:focus-visible,
  .cca-v2 .cca-v2__pagination-dot:focus-visible,
  .cca-v2 .cca-v2__input:focus-visible { outline-color: Highlight; }
}

/* Shared accessibility utility: forms and carousels do not depend on Hero CSS. */
.cca-v2 .cca-v2__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Modales del nuevo diseño (editar perfil, guardar en lista, nueva playlist): el mismo padding, la misma X y los mismos títulos que el modal de login y registro.
   Padding de 24 px; X de 40 × 40 px a 8 px del borde, con dos líneas negras de 1,5 px; título (36–70 px, 500, interlineado .95) con 36 px arriba y 60 px debajo; subtítulo de 32 px. */
.cca-v2 .cca-v2__modal { box-sizing: border-box; width: 589px; max-width: calc(100% - 32px); padding: 24px; }
.cca-v2 .cca-v2__modal:focus { outline: none; }
.cca-v2 .cca-v2__modal-close { position: absolute; top: 8px; right: 8px; display: block; box-sizing: border-box; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cca-v2-black); overflow: hidden; cursor: pointer; appearance: none; text-decoration: none; }
.cca-v2 .cca-v2__modal-close::before, .cca-v2 .cca-v2__modal-close::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; margin-top: -.75px; background: var(--cca-v2-black); transform: rotate(45deg); }
.cca-v2 .cca-v2__modal-close::after { transform: rotate(-45deg); }
.cca-v2 .cca-v2__modal-close:focus-visible { outline: 2px solid var(--cca-v2-black); outline-offset: -4px; }
.cca-v2 .cca-v2__modal-title { margin: 0; padding: 36px 0 60px; color: var(--cca-v2-black); font-family: var(--cca-v2-font-headline); font-size: var(--cca-v2-type-h3); font-weight: var(--cca-v2-weight-medium); letter-spacing: var(--cca-v2-tracking-h3); line-height: .95; overflow-wrap: anywhere; }
.cca-v2 .cca-v2__modal-subtitle { margin: 0 0 40px; color: var(--cca-v2-black); font-family: var(--cca-v2-font-headline); font-size: 32px; font-weight: var(--cca-v2-weight-regular); letter-spacing: 0; line-height: 1.1; }
