:root {
  --itau-orange: #ec7000;
  --itau-orange-hover: #d96500;
  --itau-navy: #1b1464;
  --itau-ink: #1a1a1a;
  --radius-btn: 8px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body {
  font-family: var(--font);
  color: var(--itau-ink);
  background: #f4f4f4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.page {
  position: relative;
  min-height: 100vh;
  background: #fff;
}

/* Header flotante, centrado en el medio */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: min(1100px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
  z-index: 40;
  background: #fff;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  overflow: visible;
}

.segment-bar {
  display: flex;
  height: 34px;
  background: #ec7000;
  overflow: hidden;
}

.segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.segment.is-active {
  background: #fff;
  color: #2b2b2b;
  min-width: 159px;
}

.main-nav {
  display: flex;
  align-items: center;
  height: 66px;
  padding: 0 28px 0 24px;
  gap: 22px;
  background: #fff;
  border-radius: 0 0 18px 18px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-selector {
  display: none;
}

.mobile-menu-toggle {
  display: none;
}

.mobile-sticky-footer {
  display: none;
}

.mobile-drawer-overlay {
  display: none;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
}

.brand-logo {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #ec7000;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #1b1464;
}

.chev {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
}

.chev-light {
  border-color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.access-menu {
  position: relative;
}

.btn-access .chev {
  transition: transform 0.2s ease;
}

.access-menu.is-open .btn-access .chev {
  transform: rotate(225deg) translateY(1px);
}

.access-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-width: 100%;
  padding: 6px 0 8px;
  background: #fff;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  z-index: 50;
}

.access-panel[hidden] {
  display: none;
}

.access-item {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #2b2b2b;
  transition: background 0.15s ease;
}

.access-item:hover {
  background: #f0f0f0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.nav-actions .btn,
.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 8px;
  font-weight: 600;
  border-width: 1.5px;
  border-style: solid;
  box-sizing: border-box;
}

/* Los dos CTAs del hero: MISMA caja (alto, padding, borde, fuente) */
.hero-ctas .btn,
.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: 8px;
  font-weight: 600;
  border-width: 1.5px;
  border-style: solid;
  box-sizing: border-box;
  line-height: 1;
}

.btn-orange {
  background: #ec7000;
  color: #fff;
  border-color: #ec7000;
}

.btn-outline {
  background: #fff;
  color: #1b1464;
  border-color: #1b1464;
}

.btn-access {
  padding-right: 12px;
}

.hl-los {
  display: inline-block;
  background: #2f6fed;
  color: #fff;
  padding: 0 0.22em;
  border-radius: 4px;
  line-height: 1.15;
}

/* Hero: fondo blanco, texto negro a la izquierda, foto con curva a la derecha */
.hero {
  position: relative;
  background: #fff;
  min-height: 100vh;
  overflow: hidden;
}

.hero-track {
  position: relative;
  min-height: 100vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
  background: #fff;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 100vh;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 140px 20px 90px 88px;
  max-width: 520px;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #111;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 32ch;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.45;
  color: #1a1a1a;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
  clip-path: ellipse(82% 105% at 70% 50%);
}

.hero-slide:nth-child(1) .hero-img {
  object-position: 55% 30%;
}

.hero-slide:nth-child(2) .hero-img {
  object-position: 60% center;
}

.hero-slide:nth-child(3) .hero-img {
  object-position: 50% 40%;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 80% at 18% 50%, rgba(130, 185, 230, 0.55) 0%, rgba(130, 185, 230, 0.18) 40%, transparent 70%),
    linear-gradient(
      90deg,
      #fff 0%,
      #fff 8%,
      rgba(255, 255, 255, 0.95) 16%,
      rgba(255, 255, 255, 0.35) 30%,
      transparent 46%
    );
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 5;
}

.hero-arrow-prev {
  left: 14px;
  background: transparent;
}

.hero-arrow-next {
  right: 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-arrow-next:hover {
  background: #fff;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d0d0d0;
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.is-active {
  width: 28px;
  background: var(--itau-orange);
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .site-header {
    width: 100%;
    border-radius: 0;
    left: 0;
    right: 0;
  }

  .main-nav {
    padding: 0 14px;
    gap: 12px;
    min-height: 64px;
    border-radius: 0;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn,
  .btn-sm,
  .hero-ctas .btn,
  .btn-lg {
    height: 40px;
    min-height: 40px;
    font-size: 13px;
    padding: 0 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    position: relative;
    width: 100%;
    height: min(52vw, 280px);
  }

  .hero-img {
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
    object-position: center 30%;
  }

  .hero-media::before {
    background: linear-gradient(180deg, transparent 55%, #fff 100%);
  }

  .hero-copy {
    padding: 24px 20px 88px;
  }

  .hero-arrow-prev {
    display: none;
  }

  .access-panel {
    left: auto;
    right: 0;
    min-width: 180px;
  }
}

/* Teléfonos Android / iPhone */
@media (max-width: 600px) {
  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-radius: 0;
    padding-top: env(safe-area-inset-top, 0);
  }

  .segment-bar {
    display: none;
  }

  .main-nav {
    min-height: 56px;
    height: 56px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0;
  }

  .mobile-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
  }

  .selector-chev {
    color: #555;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 14px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-left: auto;
  }

  .mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #1b1464;
    border-radius: 2px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    font-size: 14px;
    border-radius: 8px;
  }

  /* Barra de acciones pegajosa en el fondo */
  .mobile-sticky-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    z-index: 100;
  }

  .btn-mobile-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: none;
  }

  .btn-mobile-outline {
    border: 1.5px solid #1b1464;
    color: #1b1464;
    background: #fff;
  }

  .btn-mobile-orange {
    background: #ec7000;
    color: #fff;
  }

  .btn-mobile-orange:active {
    background: #d96500;
  }

  /* Drawer / Cajón de acceso clientes */
  .mobile-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-drawer-overlay.is-open .mobile-drawer {
    transform: translateY(0);
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .mobile-drawer-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1b1464;
    margin: 0;
  }

  .mobile-drawer-close {
    color: #777;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .drawer-access-item {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #eee;
  }

  .drawer-access-item:last-child {
    margin-bottom: 0;
  }

  .drawer-access-item .item-title {
    font-size: 15px;
    font-weight: 700;
    color: #ec7000;
    margin-bottom: 2px;
  }

  .drawer-access-item .item-desc {
    font-size: 12px;
    color: #666;
  }

  /* Ajustes de contenido del Hero */
  .hero-media {
    height: 48vw;
    min-height: 180px;
    max-height: 240px;
  }

  .hero-copy {
    padding: 24px 16px calc(92px + env(safe-area-inset-bottom, 0));
  }

  .hero-copy h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.2;
  }

  .hero-ctas {
    display: none !important;
  }

  .hero-arrow-next {
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .hero-dots {
    bottom: calc(86px + env(safe-area-inset-bottom, 0));
  }
}
