/* ==========================================================================
   POLÍTICA DE PRIVACIDAD | CLIC AL CORAZÓN
   Estilos completamente encapsulados bajo .page-poli para WordPress + Elementor
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Raíz de la Página, Variables y Fondo Aislado
   -------------------------------------------------------------------------- */
.page-poli {
  --c: #fbf0d8;
  --v: #770101;
  --r: #c1111e;
  --a: #023048;
  --al: #659aba;
  --w: #fffaf0;
  --line: rgba(2, 48, 72, 0.15);

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(25px, env(safe-area-inset-top)) 18px
    max(28px, env(safe-area-inset-bottom));
  font-family: Poppins, "Segoe UI", Arial, sans-serif;
  color: var(--a);
  background: url("https://www.clicalcorazon.com/wp-content/uploads/2025/06/FONDO-WEB-PERFIL.png")
    center/cover fixed no-repeat;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Pseudo-elemento de fondo degradado radial encapsulado */
.page-poli::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(251, 240, 216, 0.12),
      transparent 32%
    ),
    radial-gradient(circle at 0 70%, rgba(2, 48, 72, 0.12), transparent 30%);
}

/* --------------------------------------------------------------------------
   2. Reset Aislado y Protección Contra WordPress / Elementor
   -------------------------------------------------------------------------- */
.page-poli,
.page-poli *,
.page-poli *::before,
.page-poli *::after {
  box-sizing: border-box;
}

.page-poli h1,
.page-poli h2,
.page-poli h3,
.page-poli p,
.page-poli ul,
.page-poli ol,
.page-poli li,
.page-poli figure {
  margin: 0;
  padding: 0;
}

.page-poli a {
  text-decoration: none;
  color: inherit;
}

.page-poli img {
  max-width: 100%;
  height: auto;
  border: 0;
}

.page-poli button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. Estructura y Contenedores Principales
   -------------------------------------------------------------------------- */
.page-poli .header,
.page-poli .hero,
.page-poli .layout,
.page-poli .footer {
  position: relative;
  z-index: 1;
  width: min(100%, 1050px);
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.page-poli .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  min-width: 0;
}

.page-poli .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.page-poli .brand img {
  width: 115px;
  max-width: 38vw;
  height: auto;
  display: block;
}

.page-poli .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 2px solid rgba(251, 240, 216, 0.5);
  border-radius: 14px;
  color: var(--c);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  background: rgba(2, 48, 72, 0.12);
  flex-shrink: 0;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.page-poli .back svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.page-poli .back:hover {
  background: rgba(2, 48, 72, 0.25);
  border-color: rgba(251, 240, 216, 0.8);
}

.page-poli .back:focus-visible {
  outline: 2px solid var(--w);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.page-poli .hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  min-width: 0;
}

.page-poli .hero-photo {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  border-radius: 50%;
  padding: 4px;
  background: var(--c);
  border: 3px solid var(--a);
  box-shadow: 0 9px 25px #0003;
  object-fit: cover;
  display: block;
}

.page-poli .hero > div {
  min-width: 0;
  flex: 1 1 auto;
}

.page-poli .eyebrow {
  color: var(--c);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 7px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli h1,
.page-poli .hero h1 {
  color: var(--w);
  font-size: clamp(28px, 4.8vw, 55px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .hero p {
  margin-top: 9px;
  color: #fffaf0dd;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   6. Layout (Grid Principal)
   -------------------------------------------------------------------------- */
.page-poli .layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   7. Índice Lateral
   -------------------------------------------------------------------------- */
.page-poli .index {
  position: sticky;
  top: 18px;
  background: #fbf0d8f7;
  border: 3px solid var(--a);
  border-radius: 24px;
  padding: 20px 17px;
  box-shadow:
    0 8px 0 var(--v),
    0 15px 30px #02304840;
  min-width: 0;
}

.page-poli .index-title {
  display: block;
  color: var(--v);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.page-poli .index a {
  display: block;
  padding: 8px 7px;
  border-radius: 9px;
  color: var(--a);
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  overflow-wrap: break-word;
}

.page-poli .index a:hover {
  background: var(--al);
}

.page-poli .index a:focus-visible {
  outline: 2px solid var(--a);
  outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   8. Documento Principal
   -------------------------------------------------------------------------- */
.page-poli .document {
  background: var(--c);
  border: 3px solid var(--a);
  border-radius: 34px;
  box-shadow:
    0 10px 0 var(--v),
    0 20px 40px #02304840;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.page-poli .document-top {
  padding: 27px 34px 23px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.page-poli .notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #659aba26;
  border: 1px solid #02304818;
  font-size: 12px;
  line-height: 1.55;
  min-width: 0;
}

.page-poli .notice-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--a);
  color: var(--c);
  font-weight: 800;
  font-size: 12px;
}

.page-poli .notice p {
  min-width: 0;
  color: var(--a);
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .document-body {
  padding: 4px 34px 36px;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   9. Secciones Internas
   -------------------------------------------------------------------------- */
.page-poli .section {
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
  min-width: 0;
}

.page-poli .section:last-child {
  border-bottom: 0;
}

.page-poli .section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--v);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .num {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--a);
  color: var(--c);
  font-size: 11px;
  font-weight: 700;
}

.page-poli .section p {
  color: var(--a);
  font-size: 14px;
  line-height: 1.72;
  margin-bottom: 11px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .section strong {
  font-weight: 700;
}

.page-poli .section ul {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 11px;
  list-style: disc;
}

.page-poli .section li {
  color: var(--a);
  font-size: 14px;
  line-height: 1.65;
  margin: 5px 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   10. Info Grid y Derechos
   -------------------------------------------------------------------------- */
.page-poli .info-grid,
.page-poli .rights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 15px;
  min-width: 0;
}

.page-poli .info,
.page-poli .right {
  padding: 15px;
  border-radius: 16px;
  background: #659aba1f;
  border: 1px solid #02304818;
  min-width: 0;
}

.page-poli .info-label {
  display: block;
  color: var(--v);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin-bottom: 5px;
  overflow-wrap: break-word;
}

.page-poli .info-value {
  display: block;
  color: var(--a);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .info-value a {
  color: var(--a);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 650;
  line-height: inherit;
  word-break: break-word;
  overflow-wrap: break-word;
  transition:
    color 0.15s ease,
    text-decoration-color 0.15s ease;
}

.page-poli .info-value a:hover,
.page-poli .info-value a:focus-visible {
  color: var(--v);
  text-decoration-color: var(--v);
  outline: none;
}

.page-poli .placeholder {
  border: 1px dashed var(--v);
  background: #c1111e0d;
}

.page-poli .right b {
  display: block;
  color: var(--v);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .right span {
  display: block;
  color: var(--a);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.page-poli .footer {
  margin-top: 40px;
  text-align: center;
  color: #fbf0d8dd;
  font-size: 11px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .footer img {
  width: 140px;
  max-width: 42vw;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 13px;
  display: inline-block;
}

.page-poli .footer p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.page-poli .footer small {
  display: block;
  color: #fbf0d899;
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ==========================================================================
   12. RESPONSIVE DESIGN (Completamente encapsulado bajo .page-poli)
   ========================================================================== */

/* Tablet y Pantallas Medianas (<= 800px) */
@media (max-width: 800px) {
  .page-poli {
    background-attachment: scroll;
  }

  .page-poli .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-poli .index {
    position: relative;
    top: auto;
    display: flex;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding: 10px;
    border-radius: 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 48, 72, 0.25) transparent;
  }

  .page-poli .index::-webkit-scrollbar {
    height: 4px;
  }

  .page-poli .index::-webkit-scrollbar-track {
    background: transparent;
  }

  .page-poli .index::-webkit-scrollbar-thumb {
    background: rgba(2, 48, 72, 0.25);
    border-radius: 4px;
  }

  .page-poli .index-title {
    display: none;
  }

  .page-poli .index a {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #659aba20;
    padding: 8px 10px;
    border-radius: 8px;
  }
}

/* Transición fluida de Grids a 1 Columna (<= 640px) */
@media (max-width: 640px) {
  .page-poli .info-grid,
  .page-poli .rights {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Móviles Estándar (<= 560px) */
@media (max-width: 560px) {
  .page-poli {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: max(20px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .page-poli .header {
    margin-bottom: 20px;
    gap: 10px;
  }

  .page-poli .brand img {
    width: 100px;
  }

  .page-poli .back {
    padding: 8px 12px;
    font-size: 11.5px;
    border-radius: 12px;
  }

  .page-poli .hero {
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
  }

  .page-poli .hero-photo {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    border-width: 2px;
  }

  .page-poli h1,
  .page-poli .hero h1 {
    font-size: clamp(24px, 6.2vw, 32px);
    letter-spacing: -1px;
  }

  .page-poli .hero p {
    font-size: 12.5px;
    line-height: 1.45;
  }

  .page-poli .document {
    border-width: 2px;
    border-radius: 27px;
    box-shadow:
      0 8px 0 var(--v),
      0 14px 27px #02304840;
  }

  .page-poli .document-top {
    padding: 19px 17px 17px;
  }

  .page-poli .notice {
    font-size: 11.5px;
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }

  .page-poli .notice-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 11px;
  }

  .page-poli .document-body {
    padding: 2px 18px 27px;
  }

  .page-poli .section {
    padding: 22px 0;
  }

  .page-poli .section h2 {
    font-size: 18px;
    align-items: flex-start;
  }

  .page-poli .num {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    font-size: 10.5px;
    margin-top: 1px;
  }

  .page-poli .section p,
  .page-poli .section li {
    font-size: 13px;
    line-height: 1.65;
  }

  .page-poli .footer {
    margin-top: 31px;
  }

  .page-poli .footer img {
    width: 120px;
  }
}

/* Móviles Compactos (<= 380px: 320px, 360px, 375px) */
@media (max-width: 380px) {
  .page-poli {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .page-poli .header {
    gap: 8px;
  }

  .page-poli .brand img {
    width: 88px;
  }

  .page-poli .back {
    padding: 7px 10px;
    font-size: 10.5px;
    gap: 5px;
    border-radius: 10px;
  }

  .page-poli .back svg {
    width: 14px;
    height: 14px;
  }

  .page-poli .hero {
    gap: 12px;
  }

  .page-poli .hero-photo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .page-poli .eyebrow {
    font-size: 9.5px;
    letter-spacing: 1.8px;
  }

  .page-poli h1,
  .page-poli .hero h1 {
    font-size: clamp(21px, 6.8vw, 25px);
    letter-spacing: -0.7px;
  }

  .page-poli .hero p {
    font-size: 12px;
  }

  .page-poli .index {
    padding: 8px;
    border-radius: 14px;
    gap: 5px;
  }

  .page-poli .index a {
    padding: 6px 9px;
    font-size: 11px;
    border-radius: 7px;
  }

  .page-poli .document {
    border-radius: 20px;
  }

  .page-poli .document-top {
    padding: 15px 12px 13px;
  }

  .page-poli .notice {
    padding: 10px;
    font-size: 11px;
    gap: 8px;
    border-radius: 12px;
  }

  .page-poli .notice-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    font-size: 10px;
  }

  .page-poli .document-body {
    padding: 2px 12px 20px;
  }

  .page-poli .section {
    padding: 18px 0;
  }

  .page-poli .section h2 {
    font-size: 16.5px;
    gap: 8px;
  }

  .page-poli .num {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 10px;
  }

  .page-poli .section p,
  .page-poli .section li {
    font-size: 12.5px;
    line-height: 1.6;
  }

  .page-poli .info,
  .page-poli .right {
    padding: 12px;
    border-radius: 13px;
  }

  .page-poli .info-label {
    font-size: 9.5px;
  }

  .page-poli .info-value {
    font-size: 12px;
  }

  .page-poli .right b {
    font-size: 12px;
  }

  .page-poli .right span {
    font-size: 11.5px;
  }

  .page-poli .footer {
    margin-top: 25px;
    font-size: 10.5px;
  }

  .page-poli .footer img {
    width: 105px;
  }

  .page-poli .footer small {
    font-size: 9.5px;
  }
}
