/* ICEBERG — Base & Component Styles */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--surface);
  color: var(--ink);
}

/* Typography Hierarchy */
h1, .iceberg-h1 {
  font-family: var(--font-family);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 650;
  font-variation-settings: "wdth" 118, "wght" 650;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

h2, .iceberg-h2 {
  font-family: var(--font-family);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  font-variation-settings: "wdth" 112, "wght" 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

h3, .iceberg-h3 {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 600;
  font-variation-settings: "wdth" 100, "wght" 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p, .iceberg-body {
  font-size: 1.0625rem;
  font-weight: 400;
  font-variation-settings: "wdth" 100, "wght" 400;
  line-height: 1.6;
  max-width: var(--measure);
  margin-bottom: 1rem;
}

small, .iceberg-small {
  font-size: 0.875rem;
  font-weight: 450;
  font-variation-settings: "wdth" 100, "wght" 450;
  line-height: 1.5;
}

.tabular, .iceberg-nums {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--glacier) !important;
  outline-offset: 2px !important;
}

/* Sections & Layout */
.iceberg-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-surface {
  background-color: var(--surface);
  color: var(--ink);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section-surface .text-mute {
  color: var(--mute-light);
}

.section-abyss {
  background-color: var(--abyss);
  color: var(--frost);
  padding-block: clamp(4rem, 10vw, 8rem);
}

.section-abyss .text-mute {
  color: var(--mute);
}

.water-line {
  width: 100%;
  height: 1px;
  background-color: var(--ink);
  margin: 0;
  border: none;
}

.water-line-dark {
  background-color: var(--current);
}

/* Grid & Panels */
.iceberg-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.iceberg-panel {
  background-color: var(--deep);
  border: 1px solid var(--current);
  border-radius: var(--radius-m);
  padding: 2rem;
  color: var(--frost);
}

/* Buttons */
.iceberg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.75rem;
  border-radius: var(--radius-s);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 500;
  font-variation-settings: "wdth" 100, "wght" 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

/* Botón principal en contexto claro */
.btn-primary-light {
  background-color: var(--ink);
  color: var(--surface) !important;
}
.btn-primary-light:hover {
  background-color: #16364B;
}

/* Botón principal en contexto oscuro */
.btn-primary-dark {
  background-color: var(--glacier);
  color: var(--abyss) !important;
  font-weight: 600;
}
.btn-primary-dark:hover {
  background-color: #A5D2E3;
}

/* Botón secundario en contexto claro */
.btn-secondary-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary-light:hover {
  background-color: rgba(10, 26, 38, 0.05);
}

/* Botón secundario en contexto oscuro */
.btn-secondary-dark {
  background: transparent;
  color: var(--frost);
  border-color: var(--frost);
}
.btn-secondary-dark:hover {
  background-color: rgba(228, 238, 242, 0.08);
}

/* Inputs & Forms */
.iceberg-form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.iceberg-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: inherit;
}

.iceberg-input,
.iceberg-select,
.iceberg-textarea {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border-radius: var(--radius-s);
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: transparent;
  transition: border-color 0.15s ease;
}

.section-surface .iceberg-input,
.section-surface .iceberg-select,
.section-surface .iceberg-textarea {
  border: 1px solid #C5D3D9;
  color: var(--ink);
  background-color: #FFFFFF;
}

.section-abyss .iceberg-input,
.section-abyss .iceberg-select,
.section-abyss .iceberg-textarea,
.auth-panel .iceberg-input,
.auth-panel .iceberg-select,
.auth-panel .iceberg-textarea {
  border: 1px solid var(--current);
  color: var(--frost);
  background-color: var(--deep);
}

.iceberg-textarea {
  height: auto;
  min-height: 120px;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.iceberg-input:focus,
.iceberg-select:focus,
.iceberg-textarea:focus {
  outline: 2px solid var(--glacier) !important;
  outline-offset: 1px;
}

.iceberg-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  cursor: pointer;
  margin-top: 0.5rem;
}

.iceberg-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--glacier);
}

/* Alert / Notice messages */
.iceberg-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-s);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.iceberg-alert-error {
  background-color: rgba(224, 106, 95, 0.12);
  border: 1px solid var(--ask);
  color: #FFA59E;
}
.section-surface .iceberg-alert-error {
  background-color: #FDF2F1;
  color: #9E2B22;
}
.iceberg-alert-success {
  background-color: rgba(70, 185, 140, 0.12);
  border: 1px solid var(--bid);
  color: #72DCB0;
}
.section-surface .iceberg-alert-success {
  background-color: #EDF9F4;
  color: #1E6649;
}

/* ========================================================================
   GLOBAL HEADER (NAV & MOBILE DRAWER)
   ======================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 18px var(--pad, clamp(20px, 5vw, 64px)) 0;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.35s var(--ease, cubic-bezier(.16, 1, .3, 1));
  will-change: transform;
}

.nav.nav--hidden {
  transform: translateY(-130%) !important;
  pointer-events: none !important;
}

.nav-inner {
  max-width: var(--container, 1288px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.08));
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 8px 30px -18px rgba(15, 23, 42, .12);
  transition: background-color .4s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              border-color .4s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              box-shadow .4s var(--ease, cubic-bezier(.16, 1, .3, 1));
}

.nav.is-stuck .nav-inner {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--border-strong, rgba(15, 23, 42, 0.14));
  box-shadow: 0 12px 30px -16px rgba(15, 23, 42, .14);
}

.nav .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
  color: var(--ink, #10141C);
}

.brand-logo-wrap {
  height: 38px;
  width: 175px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-logo-wrap img {
  height: 188px;
  width: auto;
  max-width: none;
  transform: translateY(-1px);
  display: block;
}

@media (max-width: 640px) {
  .brand-logo-wrap {
    height: 30px;
    width: 138px;
  }
  .brand-logo-wrap img {
    height: 148px;
  }
  .nav .nav-right .btn-primary {
    display: none;
  }
}

.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav .nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim, #4B5468);
  text-decoration: none;
  transition: color .25s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              background-color .25s var(--ease, cubic-bezier(.16, 1, .3, 1));
}

.nav .nav-links a:hover {
  color: var(--ink, #10141C);
  background: rgba(15, 23, 42, .05);
}

.nav .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav .nav-login {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dim, #4B5468);
  text-decoration: none;
  padding: 10px 14px;
  transition: color .25s ease;
}

.nav .nav-login:hover {
  color: var(--ink, #10141C);
}

.nav .btn,
.mmenu .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .45s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              background-color .3s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              border-color .3s var(--ease, cubic-bezier(.16, 1, .3, 1));
  will-change: transform;
}

.nav .btn:active,
.mmenu .btn:active {
  transform: scale(.97);
}

.nav .btn-primary,
.mmenu .btn-primary {
  background: var(--cta-bg, #10141C);
  color: var(--cta-ink, #FFFFFF) !important;
}

.nav .btn-primary:hover,
.mmenu .btn-primary:hover {
  background: var(--accent-ink, #0B6C9E);
}

.nav .btn-primary {
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.nav .btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.nav .burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav .burger i {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink, #10141C);
  border-radius: 2px;
  position: relative;
  transition: transform .3s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              opacity .3s var(--ease, cubic-bezier(.16, 1, .3, 1));
}

.nav .burger i::before,
.nav .burger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--ink, #10141C);
  border-radius: 2px;
  transition: transform .3s var(--ease, cubic-bezier(.16, 1, .3, 1));
}

.nav .burger i::before {
  top: -6px;
}

.nav .burger i::after {
  top: 6px;
}

.nav .burger[aria-expanded="true"] i {
  background: transparent;
}

.nav .burger[aria-expanded="true"] i::before {
  transform: translateY(6px) rotate(45deg);
}

.nav .burger[aria-expanded="true"] i::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mmenu {
  position: fixed;
  inset: 80px 14px auto 14px;
  z-index: 998;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border-strong, rgba(15, 23, 42, 0.14));
  border-radius: 22px;
  padding: 10px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top center;
  transition: opacity .3s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              transform .3s var(--ease, cubic-bezier(.16, 1, .3, 1)),
              visibility .3s;
  display: none;
}

.mmenu[data-open] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mmenu a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #10141C);
  text-decoration: none;
}

.mmenu a:hover {
  background: rgba(15, 23, 42, .05);
}

.mmenu .mmenu-cta {
  margin-top: 6px;
  padding: 6px;
}

.mmenu .btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
}

@media (max-width: 900px) {
  .nav .nav-links {
    display: none;
  }
  .nav .nav-login {
    display: none;
  }
  .nav .burger {
    display: flex;
  }
  .mmenu {
    display: block;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .nav-inner, .mmenu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #FFFFFF !important;
  }
}

/* ==========================================================================
   ICEBERG GLOBAL FOOTER (Unified Editorial Footer)
   ========================================================================== */

/* Hide duplicate hardcoded in-content footer from landing page */
.icb > footer:not(.iceberg-global-footer),
.entry-content > footer:not(.iceberg-global-footer) {
  display: none !important;
}

.iceberg-global-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: clamp(48px, 6vw, 72px) 0 28px;
  box-sizing: border-box;
  margin-top: auto;
}

.iceberg-footer-container {
  width: 100%;
  max-width: 1288px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  box-sizing: border-box;
}

.iceberg-foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 5vw, 44px);
  align-items: start;
}

.iceberg-foot-brand .iceberg-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.iceberg-foot-brand .brand-logo-wrap { margin-left: -9px; } @media (max-width: 640px) { .iceberg-foot-brand .brand-logo-wrap { margin-left: -7px; } } .iceberg-foot-brand .iceberg-brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
}

.iceberg-foot-brand .iceberg-brand-link:hover { opacity: 0.85; } .iceberg-foot-brand .iceberg-brand-text {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #10141C;
}

.iceberg-foot-brand .iceberg-brand-desc {
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 14px;
  color: #636C82;
  max-width: 36ch;
  line-height: 1.6;
  margin: 0;
}

.iceberg-foot-col h5 {
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #10141C;
  margin: 0 0 16px 0;
}

.iceberg-foot-col a {
  display: block;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 14.5px;
  color: #4B5468;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.iceberg-foot-col a:hover {
  color: #1C8FD1;
}

.iceberg-foot-risk {
  margin-top: clamp(36px, 5vw, 52px);
  padding: 20px 24px;
  border-radius: 16px;
  background: #F4F6F8;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 12.5px;
  color: #636C82;
  line-height: 1.7;
}

.iceberg-foot-risk strong {
  color: #10141C;
  font-weight: 700;
}

.iceberg-foot-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 13px;
  color: #636C82;
}

@media (max-width: 900px) {
  .iceberg-foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
}

@media (max-width: 560px) {
  .iceberg-foot-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .iceberg-foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* FAQ Details Accordion */
.iceberg-faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.iceberg-faq-item {
  border-bottom: 1px solid #C5D3D9;
  padding-bottom: 1rem;
}

.iceberg-faq-item summary {
  font-size: 1.125rem;
  font-weight: 600;
  font-variation-settings: "wdth" 105, "wght" 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.75rem;
}

.iceberg-faq-item summary::-webkit-details-marker {
  display: none;
}

.iceberg-faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.2s ease;
}

.iceberg-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.iceberg-faq-item p {
  padding-top: 0.5rem;
  color: var(--mute-light);
}

/* Program Map Component */
.iceberg-map {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 2rem;
}

.iceberg-map-level-title {
  font-size: 1.125rem;
  font-weight: 600;
  font-variation-settings: "wdth" 105, "wght" 600;
  color: var(--glacier);
  margin-bottom: 1rem;
  text-transform: none;
}

.iceberg-map-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iceberg-map-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.25rem;
  background-color: var(--deep);
  border: 1px solid var(--current);
  border-radius: var(--radius-s);
  gap: 1rem;
}

.iceberg-map-item__content {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex: 1;
}

.iceberg-map-item__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--mute);
  min-width: 1.5rem;
}

.iceberg-map-item__name {
  font-weight: 600;
  color: var(--frost);
  margin-right: 0.5rem;
}

.iceberg-map-item__desc {
  color: var(--mute);
  font-size: 0.9375rem;
}

.iceberg-map-item__badge {
  font-size: 0.8125rem;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}

.badge-disponible {
  background-color: rgba(70, 185, 140, 0.15);
  color: #72DCB0;
  border: 1px solid rgba(70, 185, 140, 0.3);
}

.badge-publicandose {
  background-color: rgba(143, 195, 214, 0.15);
  color: var(--glacier);
  border: 1px solid rgba(143, 195, 214, 0.3);
}

.badge-proximamente {
  background-color: transparent;
  color: var(--mute);
  border: 1px solid var(--current);
}

/* Data Table (Comparison) */
.iceberg-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 2rem;
  text-align: left;
}

.iceberg-table th,
.iceberg-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--current);
}

.section-surface .iceberg-table th,
.section-surface .iceberg-table td {
  border-bottom: 1px solid #C5D3D9;
}

.iceberg-table th {
  font-weight: 600;
  font-variation-settings: "wdth" 105, "wght" 600;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .iceberg-nav {
    display: none; /* Mobile menu toggled via accessible button */
  }
  .iceberg-map-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .iceberg-map-item__content {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ==========================================================================
   ICEBERG Platform — Modern Auth Suite (Glassmorphism & Centered Layout)
   ========================================================================== */

.page-id-23 #content.site-content,
.page-id-24 #content.site-content,
.page-id-25 #content.site-content,
.page-template-page-auth #content.site-content,
.iceberg-auth-page #content.site-content,
.page-id-22 #content.site-content,
.iceberg-solicitar-page #content.site-content,
.page-template-page-solicitar-acceso #content.site-content,
.page-id-27 #content.site-content,
.iceberg-legal-page #content.site-content,
.page-template-page-aviso-legal #content.site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
}

.page-id-22 #content.site-content,
.iceberg-solicitar-page #content.site-content,
.page-template-page-solicitar-acceso #content.site-content,
.page-id-27 #content.site-content,
.iceberg-legal-page #content.site-content,
.page-template-page-aviso-legal #content.site-content {
  background: #F7F6F3 !important;
}

.page-id-23 .ast-container,
.page-id-24 .ast-container,
.page-id-25 .ast-container,
.page-template-page-auth .ast-container,
.iceberg-auth-page .ast-container,
.page-id-22 .ast-container,
.iceberg-solicitar-page .ast-container,
.page-template-page-solicitar-acceso .ast-container,
.page-id-27 .ast-container,
.iceberg-legal-page .ast-container,
.page-template-page-aviso-legal .ast-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  display: block !important;
  flex: 1 1 100% !important;
}

/* ==========================================================================
   ICEBERG AUTH SPLIT-MEDIA EXPERIENCE (/entrar/, /registro/, /recuperar/)
   ========================================================================== */

.iceberg-auth-page-wrapper {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 95px 24px 45px;
  background-color: #F4F6F8; /* Minimalist UI: warm mineral bone, no plain white void */
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Atmospheric Backdrop - Mineral Depth & subtle technical grid */
.iceberg-auth-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 80% 5%, rgba(28, 143, 209, 0.10), transparent 60%),
    radial-gradient(900px 600px at 15% 85%, rgba(11, 34, 51, 0.06), transparent 55%),
    #F4F6F8;
}

.iceberg-auth-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(0, 0, 0, 0.85), transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 50% 50%, rgba(0, 0, 0, 0.85), transparent 90%);
  opacity: 0.85;
}

/* Micro-Noise Grain Overlay */
.iceberg-auth-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Split Layout Container */
.iceberg-auth-split-layout {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1140px;
  display: flex;
  align-items: stretch;
  gap: 26px;
  box-sizing: border-box;
}

/* Left Media Pane (High-Resolution Visual Hero) */
.iceberg-auth-media-pane {
  flex: 1 1 52%;
  min-width: 0;
  display: flex;
  position: relative;
}

.iceberg-auth-media-card {
  position: relative;
  width: 100%;
  min-height: 570px;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 24px 48px -12px rgba(6, 20, 33, 0.20),
    0 0 0 1px rgba(6, 20, 33, 0.08);
  background: #061421;
}

.iceberg-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 50%;
  display: block;
}

.iceberg-media-video--wide {
  display: none;
}

.iceberg-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 20, 33, 0.05) 0%,
    rgba(6, 20, 33, 0.25) 45%,
    rgba(6, 20, 33, 0.88) 100%
  );
  pointer-events: none;
}

.iceberg-media-content {
  position: absolute;
  left: clamp(24px, 3.8vw, 36px);
  right: clamp(24px, 3.8vw, 36px);
  bottom: clamp(30px, 4vw, 42px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iceberg-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(11, 34, 51, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: #8FC3D6;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.iceberg-media-titles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iceberg-media-h1 {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}

.iceberg-media-sub {
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: clamp(14px, 1.1vw, 15.5px);
  color: rgba(228, 238, 242, 0.85);
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

/* Right Form Pane */
.iceberg-auth-form-pane {
  flex: 1 1 48%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iceberg-auth-form-pane .iceberg-auth-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 6px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(230, 242, 250, 0.6) 50%, rgba(255, 255, 255, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 24px 56px -16px rgba(10, 26, 38, 0.10),
    0 1px 3px rgba(10, 26, 38, 0.04),
    inset 0 1px 1.5px rgba(255, 255, 255, 1);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  animation: authSpringUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.iceberg-auth-form-pane .iceberg-auth-core {
  width: 100%;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 30px 28px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 4px 18px -4px rgba(15, 23, 42, 0.03);
  box-sizing: border-box;
}

/* Tablet Layout (768px - 1024px) */
@media (max-width: 1024px) {
  .iceberg-auth-page-wrapper {
    padding: 105px 20px 50px;
  }
  .iceberg-auth-split-layout {
    flex-direction: column;
    gap: 24px;
    max-width: 640px;
  }
  .iceberg-auth-media-pane {
    width: 100%;
  }
  .iceberg-auth-media-card {
    min-height: 300px;
    border-radius: 24px;
  }
  .iceberg-media-video--tall {
    display: none;
  }
  .iceberg-media-video--wide {
    display: block;
    object-position: center 42%;
  }
  .iceberg-auth-form-pane {
    width: 100%;
  }
  .iceberg-auth-form-pane .iceberg-auth-shell {
    max-width: 100%;
  }
}

/* Mobile Layout (< 640px) */
@media (max-width: 639px) {
  .iceberg-auth-page-wrapper {
    padding: 85px 12px 36px;
  }
  .iceberg-auth-split-layout {
    flex-direction: column;
    gap: 0;
  }
  .iceberg-auth-media-card {
    min-height: 240px;
    border-radius: 22px 22px 0 0;
  }
  .iceberg-auth-form-pane .iceberg-auth-shell {
    margin-top: -24px;
    border-radius: 24px;
    padding: 5px;
  }
  .iceberg-auth-form-pane .iceberg-auth-core {
    border-radius: 20px;
    padding: 24px 16px;
  }
  .iceberg-auth-core .form-input {
    font-size: 16px !important;
  }
}

@keyframes authSpringUp {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.iceberg-auth-core {
  width: 100%;
  border-radius: 28px; /* Concentric curve: calc(36px - 8px) */
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: clamp(28px, 5vw, 42px);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 1),
    0 4px 18px -4px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

/* Card Header */
.iceberg-auth-core .auth-card-head {
  text-align: center;
  margin-bottom: 26px;
}

/* Eyebrow Tag with Live Kinetic Ping */
.iceberg-auth-core .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(28, 143, 209, 0.08);
  border: 1px solid rgba(28, 143, 209, 0.20);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 8px -2px rgba(28, 143, 209, 0.12);
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0B6C9E;
  margin-bottom: 14px;
}

.iceberg-auth-core .auth-badge-dot-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
}

.iceberg-auth-core .auth-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1C8FD1;
}

.iceberg-auth-core .auth-badge-dot-ping {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(28, 143, 209, 0.45);
  animation: authPing 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes authPing {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

.iceberg-auth-core .auth-title {
  font-family: var(--font-display, "Outfit", sans-serif);
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #10141C;
  margin-bottom: 8px;
}

.iceberg-auth-core .auth-desc {
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 14.5px;
  color: #636C82;
  line-height: 1.5;
  margin: 0;
}

/* Alerts */
.iceberg-auth-core .iceberg-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  margin-bottom: 20px;
}

.iceberg-auth-core .iceberg-alert-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}

.iceberg-auth-core .iceberg-alert-success {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

/* Form Layout */
.iceberg-auth-core .auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.iceberg-auth-core .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.iceberg-auth-core .form-label {
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #10141C;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.iceberg-auth-core .form-input-wrap {
  position: relative;
  width: 100%;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
  padding: 2px;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.iceberg-auth-core .form-input-wrap:focus-within {
  background: linear-gradient(135deg, rgba(28, 143, 209, 0.4) 0%, rgba(28, 143, 209, 0.1) 100%);
}

.iceberg-auth-core .form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: #FFFFFF !important;
  font-family: var(--font-body, "Manrope", sans-serif) !important;
  font-size: 15px !important;
  color: #10141C !important;
  box-shadow: inset 0 1.5px 3px rgba(15, 23, 42, 0.03) !important;
  box-sizing: border-box;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.iceberg-auth-core .form-input:focus {
  outline: none !important;
  border-color: #1C8FD1 !important;
  box-shadow: 0 0 0 3px rgba(28, 143, 209, 0.15), inset 0 1px 1px rgba(255, 255, 255, 1) !important;
}

.iceberg-auth-core .form-input::placeholder {
  color: #9AA3B4 !important;
  opacity: 1;
}

.iceberg-auth-core .form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.iceberg-auth-core .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: #4B5468;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.iceberg-auth-core .checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  accent-color: #1C8FD1;
  cursor: pointer;
  margin: 0;
}

.iceberg-auth-core .link-forgot {
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #0B6C9E;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.iceberg-auth-core .link-forgot:hover {
  color: #1C8FD1;
  text-decoration: underline;
}

/* ==========================================================================
   BUTTON-IN-BUTTON TRAILING ICON ARCHITECTURE (Section 4.B)
   ========================================================================== */

.iceberg-auth-core .btn-submit-island {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 8px 0 24px;
  border-radius: 9999px;
  background: #10141C;
  color: #FFFFFF;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 14px 28px -10px rgba(16, 20, 28, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  margin-top: 8px;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.iceberg-auth-core .btn-submit-island:hover {
  background: #0B6C9E;
  box-shadow:
    0 16px 36px -10px rgba(11, 108, 158, 0.45),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: translateY(-1.5px);
}

.iceberg-auth-core .btn-submit-island:active {
  transform: scale(0.985);
}

.iceberg-auth-core .btn-submit-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex: none;
}

.iceberg-auth-core .btn-submit-island:hover .btn-submit-icon-wrapper {
  transform: translate(2px, -1px) scale(1.06);
  background: rgba(255, 255, 255, 0.22);
}

.iceberg-auth-core .btn-submit-icon-wrapper svg {
  width: 15px;
  height: 15px;
  stroke: #FFFFFF;
}

/* Footer & Legal Note */
.iceberg-auth-core .auth-card-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 14px;
  color: #636C82;
}

.iceberg-auth-core .auth-card-foot a {
  color: #0B6C9E;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.iceberg-auth-core .auth-card-foot a:hover {
  color: #1C8FD1;
  text-decoration: underline;
}

/* Micro-Bezel Security Pill */
.iceberg-auth-core .auth-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.iceberg-auth-core .auth-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: rgba(20, 121, 77, 0.05);
  border: 1px solid rgba(20, 121, 77, 0.14);
  font-family: var(--font-body, "Manrope", sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #14794D;
}

.iceberg-auth-core .auth-secure-pill svg {
  width: 13px;
  height: 13px;
}

/* Mobile Breakpoint */
@media (max-width: 580px) {
  .iceberg-auth-page-wrapper {
    padding: 100px 14px 40px;
  }
  .iceberg-auth-shell {
    border-radius: 26px;
    padding: 6px;
  }
  .iceberg-auth-core {
    border-radius: 20px;
    padding: 24px 18px;
  }
  .iceberg-auth-core .auth-title {
    font-size: 24px;
  }
  .iceberg-auth-core .btn-submit-island {
    height: 52px;
    padding: 0 6px 0 20px;
    font-size: 14.5px;
  }
  .iceberg-auth-core .btn-submit-icon-wrapper {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   ICEBERG — Solicitar Acceso (Minimalist UI & Hairline Editorial Aesthetics)
   Inspired by editorial high-end minimalism: warm bone canvas, hairline inputs,
   tactile pill chips, Google reCAPTCHA v2, and centered dark pill button.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@1,6..72,400;1,6..72,500;1,6..72,600&display=swap');

.iceberg-solicitar-layout {
  position: relative;
  background-color: #F7F6F3;
  color: #0A1A26;
  min-height: 100vh;
  padding-top: clamp(6.5rem, 11vw, 9rem);
  padding-bottom: clamp(4.5rem, 8vw, 7rem);
  overflow-x: hidden;
}

/* Sutil textura ambiental */
.iceberg-solicitar-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(143, 195, 214, 0.08) 0%, transparent 65%),
    radial-gradient(circle at 10% 30%, rgba(10, 26, 38, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(10, 26, 38, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.iceberg-solicitar-container {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Encabezado Editorial */
.iceberg-solicitar-hero {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.iceberg-solicitar-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.iceberg-title-italic {
  font-family: 'Newsreader', 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #0A1A26;
}

.iceberg-title-main {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-weight: 650;
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #0A1A26;
}

.iceberg-solicitar-sub {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.6;
  color: #556977;
  max-width: 530px;
  margin: 1.25rem auto 0 auto;
}

/* Card del Formulario */
.iceberg-solicitar-card {
  position: relative;
  background: transparent;
  padding: 0.5rem 0;
}

/* Formulario Editorial */
.iceberg-editorial-form {
  display: block;
  width: 100%;
}

/* Grupos Hairline */
.iceberg-hl-group {
  margin-bottom: 2.15rem;
  position: relative;
}

.iceberg-hl-label {
  display: block;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #101923;
  margin-bottom: 0.45rem;
  letter-spacing: 0.015em;
}

.iceberg-hl-req {
  color: #0284C7;
  font-weight: 700;
  margin-left: 2px;
}

.iceberg-hl-opt {
  color: #8C9CA8;
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 4px;
}

/* Inputs Hairline (Solo borde inferior) */
.iceberg-hl-input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(16, 25, 35, 0.16) !important;
  border-radius: 0 !important;
  padding: 11px 0 10px 0 !important;
  font-family: var(--font-family, 'Archivo', sans-serif) !important;
  font-size: 1.0625rem !important;
  color: #0A1A26 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.iceberg-hl-input::placeholder {
  color: #9AAAB5 !important;
  font-weight: 350 !important;
  opacity: 1 !important;
}

.iceberg-hl-input:focus {
  border-bottom-color: #0A1A26 !important;
  border-bottom-width: 1.5px !important;
}

/* Chips / Pills Interactivos */
.iceberg-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.iceberg-chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.iceberg-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iceberg-chip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 25, 35, 0.16);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #101923;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.iceberg-chip:hover .iceberg-chip-pill {
  border-color: rgba(16, 25, 35, 0.4);
  background: #FFFFFF;
  transform: translateY(-1px);
}

.iceberg-chip input:checked + .iceberg-chip-pill {
  background: #0A1A26;
  color: #FFFFFF;
  border-color: #0A1A26;
  box-shadow: 0 3px 10px rgba(10, 26, 38, 0.18);
}

.iceberg-chip input:focus-visible + .iceberg-chip-pill {
  outline: 2px solid #0284C7;
  outline-offset: 2px;
}

/* Textarea Hairline + Counter */
.iceberg-hl-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
}

.iceberg-char-counter {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.75rem;
  color: #8C9CA8;
  font-variant-numeric: tabular-nums;
}

.iceberg-hl-textarea {
  width: 100% !important;
  min-height: 110px !important;
  background: rgba(255, 255, 255, 0.65) !important;
  border: 1px solid rgba(16, 25, 35, 0.16) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-family: var(--font-family, 'Archivo', sans-serif) !important;
  font-size: 0.9375rem !important;
  color: #0A1A26 !important;
  line-height: 1.55 !important;
  resize: vertical !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.iceberg-hl-textarea::placeholder {
  color: #9AAAB5 !important;
  font-weight: 350 !important;
}

.iceberg-hl-textarea:focus {
  border-color: #0A1A26 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(10, 26, 38, 0.08) !important;
}

/* Select Hairline */
.iceberg-select-wrapper {
  position: relative;
  width: 100%;
}

.iceberg-hl-select {
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(16, 25, 35, 0.16) !important;
  border-radius: 0 !important;
  padding: 11px 32px 10px 0 !important;
  font-family: var(--font-family, 'Archivo', sans-serif) !important;
  font-size: 1.0625rem !important;
  color: #0A1A26 !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.25s ease !important;
}

.iceberg-hl-select:focus {
  border-bottom-color: #0A1A26 !important;
  border-bottom-width: 1.5px !important;
}

.iceberg-select-chevron {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #556977;
  pointer-events: none;
}

/* Checkbox de Privacidad */
.iceberg-terms-group {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.iceberg-minimal-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.iceberg-minimal-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.iceberg-checkbox-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid rgba(16, 25, 35, 0.25);
  background: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.iceberg-minimal-checkbox:hover .iceberg-checkbox-box {
  border-color: #0A1A26;
}

.iceberg-minimal-checkbox input:checked + .iceberg-checkbox-box {
  background: #0A1A26;
  border-color: #0A1A26;
}

.iceberg-minimal-checkbox input:checked + .iceberg-checkbox-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.iceberg-checkbox-text {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.875rem;
  line-height: 1.5;
  color: #556977;
}

.iceberg-checkbox-text a {
  color: #0A1A26;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.iceberg-checkbox-text a:hover {
  color: #0284C7;
}

/* reCAPTCHA Centrado */
.iceberg-recaptcha-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.25rem 0 2rem 0;
  width: 100%;
}

/* Botón Dark Pill Centrado (Inspirado en Send Message de la imagen) */
.iceberg-submit-center {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.iceberg-btn-editorial-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #10141C;
  color: #FFFFFF !important;
  border: none;
  border-radius: 9999px;
  padding: 15px 46px;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 20, 28, 0.14);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.iceberg-btn-editorial-pill:hover {
  background: #1A2432;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 20, 28, 0.22);
}

.iceberg-btn-editorial-pill:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16, 20, 28, 0.14);
}

.iceberg-btn-editorial-pill svg {
  transition: transform 0.2s ease;
}

.iceberg-btn-editorial-pill:hover svg {
  transform: translateX(3px);
}

.iceberg-recaptcha-legal {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.75rem;
  color: #8C9CA8;
  text-align: center;
  margin-top: 1.15rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.iceberg-recaptcha-legal a {
  color: #556977;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.iceberg-recaptcha-legal a:hover {
  color: #0A1A26;
}

/* Mensajes de Éxito y Error */
.iceberg-solicitar-success {
  background: #FFFFFF;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(10, 26, 38, 0.05);
  animation: fadeInSoft 0.4s ease forwards;
}

.iceberg-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iceberg-success-title {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 1.5rem;
  font-weight: 650;
  color: #0A1A26;
  margin: 0 0 0.75rem 0;
}

.iceberg-success-desc {
  font-size: 1.0625rem;
  color: #1E293B;
  line-height: 1.55;
  margin: 0 0 1rem 0;
}

.iceberg-success-sub {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.55;
  max-width: 440px;
  margin: 0 auto;
}

.iceberg-solicitar-error {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #991B1B;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  animation: shakeSoft 0.3s ease;
}

.iceberg-solicitar-error svg {
  flex-shrink: 0;
  color: #DC2626;
}

/* Nota de Criterio al Pie */
.iceberg-solicitar-note {
  margin-top: clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}

.iceberg-note-line {
  width: 48px;
  height: 1px;
  background: rgba(16, 25, 35, 0.16);
  margin: 0 auto 1.5rem auto;
}

.iceberg-note-text {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.84375rem;
  line-height: 1.6;
  color: #64748B;
  max-width: 520px;
  margin: 0 auto;
}

.iceberg-note-text strong {
  color: #0A1A26;
}

/* Animaciones */
@keyframes fadeInSoft {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shakeSoft {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Responsividad Móvil */
@media (max-width: 640px) {
  .iceberg-solicitar-layout {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }
  .iceberg-solicitar-container {
    padding: 0 1.15rem;
  }
  .iceberg-solicitar-hero {
    margin-bottom: 2rem;
  }
  .iceberg-title-italic {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    text-align: center;
    word-break: normal;
  }
  .iceberg-title-main {
    font-size: 1.22rem !important;
    line-height: 1.25 !important;
    text-align: center;
    word-break: normal;
  }
  .iceberg-solicitar-sub {
    font-size: 0.90625rem;
    line-height: 1.55;
    margin-top: 1rem;
  }
  .iceberg-chips-grid {
    gap: 0.45rem;
  }
  .iceberg-chip-pill {
    padding: 6px 13px;
    font-size: 0.8125rem;
  }
  .iceberg-btn-editorial-pill {
    width: 100%;
    padding: 14px 28px;
  }
}

/* ==========================================================================
   ICEBERG — Aviso Legal (Minimalist Corporate Editorial / Archivo Native)
   ========================================================================== */

/* Astra Container Edge-to-Edge Reset for Legal Page */
body.page-id-27 #content.site-content,
body.iceberg-legal-page #content.site-content,
body.page-template-page-aviso-legal #content.site-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

body.page-id-27 .ast-container,
body.iceberg-legal-page .ast-container,
body.page-template-page-aviso-legal .ast-container {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.page-id-27 #primary,
body.iceberg-legal-page #primary,
body.page-template-page-aviso-legal #primary {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.iceberg-legal-layout {
  position: relative;
  background-color: #FFFFFF !important;
  color: #10141C;
  min-height: 100vh;
  padding-top: clamp(5.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4rem, 6vw, 6rem);
  overflow-x: hidden;
  width: 100%;
}

.iceberg-legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
}

/* Header */
.iceberg-legal-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.iceberg-legal-eyebrow {
  display: inline-block;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.71875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #556977;
  background: rgba(10, 26, 38, 0.04);
  border: 1px solid rgba(10, 26, 38, 0.08);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 0.85rem;
}

.iceberg-legal-title {
  font-family: var(--font-family, 'Archivo', sans-serif) !important;
  font-size: clamp(1.85rem, 3.2vw, 2.35rem) !important;
  font-weight: 650 !important;
  font-variation-settings: "wdth" 110, "wght" 650 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.15 !important;
  color: #0A1A26 !important;
  margin: 0 0 0.75rem 0 !important;
  text-align: center;
}

.iceberg-legal-sub {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #556977;
  max-width: 580px;
  margin: 0 auto 1.15rem auto;
  text-align: center;
}

.iceberg-legal-sub strong {
  color: #0A1A26;
  font-weight: 600;
}

.iceberg-legal-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.8125rem;
  color: #7F99A8;
  margin: 0;
}

.iceberg-meta-dot {
  color: #CBD5E1;
  font-size: 0.75rem;
}

.iceberg-legal-meta a {
  color: #0B6C9E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iceberg-legal-meta a:hover {
  color: #0A1A26;
}

/* Ficha Resumen de Identificación */
.iceberg-legal-card {
  background: #FFFFFF;
  border: 1px solid rgba(10, 26, 38, 0.08);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(10, 26, 38, 0.02);
}

.iceberg-legal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

.iceberg-legal-card-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.iceberg-card-label {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8C9CA8;
}

.iceberg-card-val {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A1A26;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.iceberg-card-val a {
  color: #0B6C9E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Índice Compacto de Secciones */
.iceberg-legal-toc {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(10, 26, 38, 0.08);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 2.75rem;
}

.iceberg-toc-title {
  display: block;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.71875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(10, 26, 38, 0.06);
}

.iceberg-toc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.iceberg-toc-list li a {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  display: block;
  padding: 2px 0;
  transition: color 0.15s ease;
}

.iceberg-toc-list li a:hover {
  color: #0B6C9E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contenido Principal */
.iceberg-legal-content {
  width: 100%;
}

.iceberg-legal-block {
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid rgba(10, 26, 38, 0.08);
  scroll-margin-top: 90px;
}

.iceberg-legal-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.iceberg-block-title {
  font-family: var(--font-family, 'Archivo', sans-serif) !important;
  font-size: clamp(1.15rem, 2vw, 1.3rem) !important;
  font-weight: 650 !important;
  color: #0A1A26 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.3 !important;
  margin: 0 0 1rem 0 !important;
}

.iceberg-legal-block p {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #334155;
  margin: 0 0 1rem 0;
}

.iceberg-legal-block p:last-child {
  margin-bottom: 0;
}

.iceberg-block-list {
  margin: 0 0 1.15rem 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #334155;
}

.iceberg-block-list strong {
  color: #0A1A26;
}

.iceberg-block-list a {
  color: #0B6C9E;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.iceberg-block-note {
  font-size: 0.84375rem !important;
  line-height: 1.6 !important;
  color: #64748B !important;
  font-style: italic;
  margin-top: 0.75rem !important;
}

/* Callouts / Destacados */
.iceberg-callout {
  background: #FFFFFF;
  border: 1px solid rgba(10, 26, 38, 0.08);
  border-left: 3px solid #0A1A26;
  border-radius: 0 6px 6px 0;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
}

.iceberg-callout-title {
  font-family: var(--font-family, 'Archivo', sans-serif) !important;
  font-size: 0.9375rem !important;
  font-weight: 650 !important;
  color: #0A1A26 !important;
  margin: 0 0 0.4rem 0 !important;
}

.iceberg-callout-text {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
}

.iceberg-callout-text strong {
  color: #0A1A26;
}

/* Callout Alerta (Propiedad Intelectual) */
.iceberg-callout-alert {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 3px solid #D97706;
}

.iceberg-callout-alert .iceberg-callout-title {
  color: #78350F !important;
}

.iceberg-callout-alert .iceberg-callout-text {
  color: #92400E !important;
}

.iceberg-callout-alert .iceberg-callout-text strong {
  color: #78350F;
}

/* Callout Riesgo Financiero */
.iceberg-callout-risk {
  background: #F8FAFC;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-left: 3px solid #0284C7;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.iceberg-callout-risk .iceberg-callout-title {
  color: #0284C7 !important;
  font-size: 1rem !important;
  margin-bottom: 0.25rem !important;
}

.iceberg-callout-risk .iceberg-callout-text {
  color: #334155 !important;
  margin: 0 !important;
}

.iceberg-callout-risk .iceberg-callout-text strong {
  color: #0A1A26;
}

/* Caja de Contacto Final */
.iceberg-contact-box {
  background: #FFFFFF;
  border: 1px solid rgba(10, 26, 38, 0.08);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}

.iceberg-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.iceberg-contact-label {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.875rem;
  font-weight: 600;
  color: #0A1A26;
}

.iceberg-contact-link {
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.9375rem;
  font-weight: 650;
  color: #0B6C9E;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.iceberg-contact-hint {
  display: block;
  font-family: var(--font-family, 'Archivo', sans-serif);
  font-size: 0.78125rem;
  color: #64748B;
}

/* Responsividad Móvil */
@media (max-width: 640px) {
  .iceberg-legal-layout {
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }
  .iceberg-legal-container {
    padding: 0 1rem;
  }
  .iceberg-legal-title {
    font-size: 1.65rem !important;
    line-height: 1.2 !important;
  }
  .iceberg-legal-sub {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  .iceberg-legal-meta {
    flex-direction: column;
    gap: 0.35rem;
  }
  .iceberg-meta-dot {
    display: none;
  }
  .iceberg-legal-card-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .iceberg-legal-card {
    padding: 1.15rem;
  }
  .iceberg-toc-list {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .iceberg-legal-toc {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  .iceberg-block-title {
    font-size: 1.125rem !important;
    line-height: 1.35 !important;
  }
  .iceberg-legal-block {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
  }
  .iceberg-callout {
    padding: 1rem;
  }
  .iceberg-contact-box {
    padding: 1.15rem;
  }
  .iceberg-contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

