/**
 * ESTILOS - SEGUROS ALFA / BANCO DE BOGOTÁ
 */

:root {
  --brand: #180adf;
  --brand-ink: #0f0a7a;
  --accent: #00ccea;
  --bg: #F7F7F7;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 8, 20, .06);
  --shadow-soft: 0 0 12px 1px rgba(57, 62, 100, .1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto
}

/* Header */
#cabecera {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  padding: 14px 0;
}

#menu-bar {
  margin: 0 auto;
  width: 90%;
  max-width: 1216px;
  display: table
}

/* Botones */
.btn {
  background: linear-gradient(180deg, var(--brand), var(--brand-ink));
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 30px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(24, 10, 223, .18);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(24, 10, 223, .22)
}

.btn:focus-visible {
  outline: 3px solid #aeb6ff;
  outline-offset: 2px
}

/* Tipografía */
.titulo-baner {
  font-weight: 800;
  font-size: clamp(24px, 4.8vw, 40px);
  line-height: 1.1
}

.titulo {
  font-weight: 800;
  font-size: clamp(20px, 4.2vw, 30px);
  text-align: center
}

.contenido {
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.6;
  color: var(--muted)
}

/* Layout principal */
main {
  padding-top: clamp(78px, 10vw, 110px)
}

#tbl-baner {
  margin: 0 auto;
  width: 90%;
  max-width: 1216px
}

#tbl-baner td {
  padding: 0 32px
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
  margin-top: 8px
}

.hint img {
  width: 22px
}

/* Sección azul */
#seccion-azul {
  background: linear-gradient(135deg, var(--accent) 0%, #58e4f4 100%);
  padding: clamp(30px, 6vw, 68px) 0;
  color: #04222a
}

#tbl-azul {
  margin: 0 auto;
  width: 90%;
  max-width: 1216px
}

.lado-der>div {
  height: auto;
  max-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

/* Sección registro */
#seccion-registro {
  padding: clamp(30px, 6vw, 68px) 0
}

.registro {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}

.registro:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.titulo-registro {
  padding: 18px 18px 0;
  text-align: left;
  font-weight: 800;
  font-size: 18px
}

.descripcion-registro {
  padding: 12px 18px 22px;
  font-size: 15px;
  color: var(--muted);
  text-align: left
}

/* Ayuda */
#ayuda {
  background: linear-gradient(180deg, #fff 0%, #fff 60%, rgba(2, 8, 20, .02) 100%);
  padding: clamp(28px, 5vw, 48px) 0 clamp(72px, 8vw, 110px);
  text-align: center;
}

/* Contacto */
#seccion-contacto {
  padding: 0
}

#contacto,
#contacto-mob {
  position: relative;
  margin: -58px auto 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(2, 8, 20, .06);
  width: 90%;
  padding: clamp(22px, 6vw, 48px) 0;
}

.tipo-contacto {
  font-size: 15px;
  font-weight: 800
}

.info-contacto {
  font-size: 14px;
  color: var(--muted)
}

/* Footer */
footer {
  padding: 28px;
  background: #fff;
  border-top: 1px solid #eceff3;
  font-size: 12px;
  color: #5b6574
}

#tbl-footer,
#tbl-footer2 {
  margin: 0 auto;
  width: 90%;
  max-width: 980px
}

#tbl-footer img,
#tbl-footer2 img {
  display: block;
  margin: 0 auto
}

/* Loader para validación JS */
#js-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#js-loader p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Contenido principal oculto inicialmente */
#main-content {
  display: none;
}

/* Landing page */
.landing-desktop {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.landing-card {
  background: white;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 600px;
}

.landing-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.landing-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.landing-text {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.feature-item {
  padding: 20px;
  background: #f8f9fc;
  border-radius: 12px;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.feature-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--muted);
}

.mobile-notice {
  background: linear-gradient(180deg, var(--brand), var(--brand-ink));
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-top: 30px;
}

.mobile-notice-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width:1098px) {
  #carr-servicios2 {
    display: initial
  }

  #carr-servicios {
    display: none
  }
}

@media (max-width:1023px) {
  .quitar1 {
    display: none
  }

  #banner-mob {
    margin: 20px;
    text-align: center;
    display: block
  }

  #tbl-baner {
    text-align: center
  }

  .registro {
    max-width: 380px
  }
}

@media (max-width:768px) {
  #tbl-baner,
  #tbl-baner tr,
  #tbl-baner td,
  #tbl-azul,
  #tbl-azul tr,
  #tbl-azul td,
  #tbl-registro,
  #tbl-registro tr,
  #tbl-registro td,
  #contacto table,
  #contacto tr,
  #contacto td {
    display: block;
    width: 100% !important;
    text-align: center
  }

  #contacto td[width="1%"] {
    display: none !important
  }

  #tbl-baner td {
    padding: 10px 0
  }

  .lado-der>div {
    max-height: none
  }

  #ayuda {
    padding: 24px 0 56px
  }

  #contacto {
    margin: -36px auto 0
  }
}

@media (max-width:716px) {
  .lado-der {
    display: none
  }
}

/* Links */
a {
  color: inherit
}

a:focus-visible {
  outline: 3px solid #a0f0ff;
  outline-offset: 3px;
  border-radius: 8px
}

/* Animaciones */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease
}

.fade-in.is-visible {
  opacity: 1;
  transform: none
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important
  }

  html {
    scroll-behavior: auto
  }
}

/* Honeypot - invisible para usuarios */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}
