/* =========================================================
   WELEDA · POLÍTICA DE COOKIES
   Mismo tratamiento visual que Bases de Participación
   ========================================================= */

:root {
  --cookies-frame-left: #d9d9d9;
  --cookies-frame-right: #777575;
  --cookies-frame-width: 285px;
  --cookies-frame-stroke: 4px;
}

html {
  background: #000;
}

body {
  margin: 0;
  min-width: 320px;
  background: #000;
  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
}

/* =========================================================
   PÁGINA
   ========================================================= */

.cookies-landing {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
  isolation: isolate;
}

.cookies-landing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;

  background-image: url("../../img/landing/bg_img.png");
  background-repeat: no-repeat;
  background-position: center 45%;
  background-size: cover;

  pointer-events: none;
}

.cookies-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100vh;
  height: 100svh;

  background: linear-gradient(
    to bottom,
    rgba(20, 0, 0, 0.26) 0%,
    rgba(20, 0, 0, 0.2) 55%,
    rgba(20, 0, 0, 0.15) 100%
  );

  pointer-events: none;
}

.cookies-landing > * {
  position: relative;
  z-index: 2;
}

/* =========================================================
   MÁSCARA + HEADER
   ========================================================= */

.cookies-top-mask {
  position: fixed !important;
  top: 0;
  left: 0;
  z-index: 100 !important;
  width: 100%;
  height: 20px;
  background: #47080c;
  pointer-events: none;
}

.cookies-header {
  position: sticky;
  top: 20px;
  left: auto;
  z-index: 110;

  transform: none;

  display: flex;
  width: min(1440px, calc(100% - 72px));
  height: 80px;
  margin: 20px auto 0;
  padding: 0 20px;

  justify-content: center;
  align-items: center;

  background: #fff;
}

.cookies-header__logo {
  display: block;
  width: 240px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.cookies-content {
  width: 100%;
  padding: 36px 24px 90px;
}

.cookies-card {
  position: relative;

  width: min(1120px, 100%);
  margin: 0 auto;

  border: 0;
  border-radius: 0;

  background: rgba(0, 0, 0, 0.5);

  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);

  box-shadow: none;
}

.cookies-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;

  width: var(--cookies-frame-width);
  box-sizing: border-box;

  border-top: var(--cookies-frame-stroke) solid var(--cookies-frame-left);
  border-bottom: var(--cookies-frame-stroke) solid var(--cookies-frame-left);
  border-left: var(--cookies-frame-stroke) solid var(--cookies-frame-left);

  pointer-events: none;
}

.cookies-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  width: var(--cookies-frame-width);
  box-sizing: border-box;

  border-top: var(--cookies-frame-stroke) solid var(--cookies-frame-right);
  border-right: var(--cookies-frame-stroke) solid var(--cookies-frame-right);
  border-bottom: var(--cookies-frame-stroke) solid var(--cookies-frame-right);

  pointer-events: none;
}

.cookies-card__body {
  position: relative;
  z-index: 3;

  width: 100%;
  padding: 58px 82px 64px;

  color: #fff;
}

/* =========================================================
   TÍTULOS Y TEXTO
   ========================================================= */

.cookies-title {
  width: 100%;
  max-width: 720px;

  margin: 0 auto 34px;

  color: #fff;

  text-align: center;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 34px;
  font-style: normal;
  font-weight: 700;
  line-height: 115%;
  letter-spacing: -0.5px;
}

.cookies-section-title {
  margin: 34px 0 12px;

  color: #fff;

  text-shadow: 0 0 15px rgba(0, 0, 0, 0.68);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 125%;
}

.cookies-title + .cookies-section-title {
  margin-top: 0;
}

.cookies-subtitle {
  margin: 24px 0 10px;

  color: #fff;

  text-shadow: 0 0 12px rgba(0, 0, 0, 0.65);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  line-height: 135%;
}

.cookies-text,
.cookies-list li {
  color: rgba(255, 255, 255, 0.97);

  text-shadow: 0 0 12px rgba(0, 0, 0, 0.65);

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.cookies-text {
  margin: 0 0 16px;
}

.cookies-text--lead {
  margin-bottom: 10px;
  font-weight: 600;
}

.cookies-list {
  margin: 4px 0 22px;
  padding: 0;

  list-style: none;
}

.cookies-list li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 18px;
}

.cookies-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
}

.cookies-list li:last-child {
  margin-bottom: 0;
}

/* =========================================================
   TABLAS DEL DOCUMENTO WORD
   ========================================================= */

.cookies-table-wrap {
  width: 100%;
  margin: 14px 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cookies-table {
  width: 100%;
  min-width: 920px;

  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;

  color: #fff;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 145%;
}

.cookies-table th,
.cookies-table td {
  padding: 12px 14px;

  border: 1px solid rgba(255, 255, 255, 0.42);

  vertical-align: top;
  text-align: left;

  /* Evita cortes como "goo / gle.c / om" o "__Secur / e-..." */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;

  background: rgba(0, 0, 0, 0.22);
}

.cookies-table th {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

/* Anchuras mínimas para las tablas de cookies de 4 columnas */
.cookies-table th:nth-child(1),
.cookies-table td:nth-child(1) {
  min-width: 130px;
}

.cookies-table th:nth-child(2),
.cookies-table td:nth-child(2) {
  min-width: 185px;
}

/* Los nombres de cookie se mantienen enteros.
   En tablas de 2 columnas el segundo campo vuelve a poder partir URLs. */
.cookies-table th:nth-child(2):not(:last-child),
.cookies-table td:nth-child(2):not(:last-child) {
  white-space: nowrap;
}

.cookies-table th:nth-child(3),
.cookies-table td:nth-child(3) {
  min-width: 430px;
}

.cookies-table th:nth-child(4),
.cookies-table td:nth-child(4) {
  min-width: 105px;
  white-space: nowrap;
}

/* Tablas de proveedores / enlaces: las URLs largas sí pueden ajustarse */
.cookies-table th:nth-child(2):last-child,
.cookies-table td:nth-child(2):last-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* En pantallas estrechas la tabla conserva sus columnas y se desplaza
   horizontalmente en lugar de romper las palabras. */
.cookies-table-wrap {
  scrollbar-width: thin;
}

.cookies-table--management,
.cookies-table--browsers {
  min-width: 640px;
}

.cookies-table--management td:first-child,
.cookies-table--browsers td:first-child {
  width: 30%;
  font-weight: 700;
}

.cookies-table-wrap--title {
  margin: 34px 0 18px;
  overflow: visible;
}

.cookies-table--title {
  min-width: 0;
}

.cookies-table--title td {
  padding: 0 0 10px;

  border: 0;

  background: transparent;

  color: #fff;

  text-shadow: 0 0 15px rgba(0, 0, 0, 0.68);

  font-size: 20px;
  font-weight: 700;
  line-height: 125%;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;
  z-index: 120;

  display: flex;

  width: 100%;
  min-height: 80px;

  padding: 0 56px;

  justify-content: space-between;
  align-items: center;

  border-top: 1px solid #fff;

  background: #000;

  font-family: "Sculpin Variable", Arial, Helvetica, sans-serif;
}

.footer__copyright {
  margin: 0;

  color: #e3e3e3;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.footer__links a {
  color: #fff;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  white-space: nowrap;

  text-decoration: none;
}

.footer__links a:hover {
  opacity: 0.75;
}

/* =========================================================
   DESKTOP BAJO
   ========================================================= */

@media (min-width: 901px) and (max-height: 820px) {
  .cookies-top-mask {
    height: 15px;
  }

  .cookies-header {
    top: 15px;
    height: 70px;
    margin-top: 15px;
  }

  .cookies-header__logo {
    width: 215px;
    max-height: 50px;
  }

  .cookies-content {
    padding-top: 30px;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --cookies-frame-width: 220px;
    --cookies-frame-stroke: 3px;
  }

  .cookies-top-mask {
    height: 16px;
  }

  .cookies-header {
    top: 16px;
    width: calc(100% - 32px);
    height: 64px;
    margin-top: 16px;
    padding: 0 16px;
  }

  .cookies-header__logo {
    width: min(210px, 65vw);
    max-height: 48px;
  }

  .cookies-content {
    padding: 34px 20px 70px;
  }

  .cookies-card {
    width: min(820px, 100%);
  }

  .cookies-card__body {
    padding: 50px 62px 58px;
  }

  .cookies-title {
    font-size: 32px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
  :root {
    --cookies-frame-width: 120px;
    --cookies-frame-stroke: 3px;
  }

  .cookies-landing::after {
    background-image: url("../../img/landing/bg_img_mobile.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }

  .cookies-content {
    padding: 30px 16px 55px;
  }

  .cookies-card {
    width: 100%;
  }

  .cookies-card__body {
    padding: 40px 28px 44px;
  }

  .cookies-title {
    margin-bottom: 28px;

    font-size: 28px;
    line-height: 115%;
  }

  .cookies-section-title,
  .cookies-table--title td {
    font-size: 19px;
  }

  .cookies-subtitle {
    font-size: 17px;
  }

  .cookies-text,
  .cookies-list li {
    font-size: 16px;
    line-height: 150%;
  }

  .cookies-table {
    font-size: 13px;
  }

  .footer {
    min-height: auto;
    padding: 22px 24px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    text-align: left;
  }

  .footer__copyright {
    width: 100%;
    margin: 0;
    color: #e3e3e3;
    text-align: left;
    font-size: 16px;
    line-height: 140%;
  }

  .footer__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    width: 100%;
    gap: 14px 20px;
    align-items: start;
    justify-content: stretch;
  }

  .footer__links a {
    min-width: 0;
    font-size: 16px;
    line-height: 140%;
    white-space: normal;
  }

  .footer__links a:nth-child(1) {
    text-align: left;
  }

  .footer__links a:nth-child(2) {
    text-align: right;
    white-space: nowrap;
  }

  .footer__links a:nth-child(3) {
    text-align: left;
  }
}

/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {
  :root {
    --cookies-frame-width: 85px;
    --cookies-frame-stroke: 2px;
  }

  .cookies-top-mask {
    height: 12px;
  }

  .cookies-header {
    top: 12px;

    width: calc(100% - 24px);
    height: 58px;

    margin-top: 12px;
  }

  .cookies-header__logo {
    width: 180px;
  }

  .cookies-content {
    padding: 24px 12px 45px;
  }

  .cookies-card__body {
    padding: 34px 20px 38px;
  }

  .cookies-title {
    font-size: 26px;
  }

  .cookies-section-title,
  .cookies-table--title td {
    font-size: 18px;
  }

  .cookies-text,
  .cookies-list li {
    font-size: 15px;
    line-height: 150%;
  }

  .cookies-table-wrap {
    margin-bottom: 24px;
  }

  .cookies-table {
    font-size: 12px;
  }

  .footer {
    min-height: auto;
    padding: 20px 24px 18px;
    gap: 18px;
  }

  .footer__links {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 14px 14px;
  }

  .footer__links a {
    font-size: 15px;
  }

  .footer__links a:nth-child(2) {
    white-space: nowrap;
  }
}

/* =========================================================
   FIX LEGIBILIDAD TABLAS · DESKTOP + MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .cookies-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .cookies-table {
    min-width: 920px;
  }

  .cookies-table--management,
  .cookies-table--browsers {
    min-width: 640px;
  }

  .cookies-table--title {
    min-width: 0;
  }
}
