body{
    background-image: url(../img/bg01.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100%;
}

html, body {
    height: 100%;
    margin: 0;
  }
  
.full-height {
    background: rgba(26, 26, 26, 0.548);
    background-attachment: fixed;
    max-height: 100vh;
    height: 100vh;
}
table{
    width: 100%;
    padding-top: 5px;
}
.heading-text{
    color: white;
    font-size: 42px;
    font-weight: 700;
    line-height: 63px;
    margin-top: 15%;
    text-align: center;
    margin-bottom: 0;
}

.sub-text2{
    color: rgba(255, 255, 255, 0.5);
    font-size: 17px;
    line-height: 27px;
    font-weight: 400;
    text-align: center;
    margin-top: 0;
}

.register-btn{
    background-color: rgba(240, 248, 255, 0.589); 
    color: #345cc4;
}

.edoc-logo{
    color: white;
    font-weight: bolder;
    font-size: 20px;
    padding-left: 20px;
    animation: transitionIn-Y-over 0.5s;
}

.edoc-logo-sub{
    color: rgba(255, 255, 255, 0.733);
    font-size: 12px;
}

.nav-item{
    color: rgba(255, 255, 255, 0.671);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    animation: transitionIn-Y-over 0.5s;
}

.nav-item:hover{
    color: #f0f0f0;
}

.footer-hashen{
    position: absolute;
    bottom: 0;
    left: 45%;
    font-size: 13px;
    animation: transitionIn-Y-over 0.5s;
}

/* =========================================================
   MEJORAS RESPONSIVE (AGREGADAS)
   ========================================================= */

/* Ajustes generales para pantallas medianas (≤ 1200px) */
@media (max-width: 1200px) {
  .heading-text {
    font-size: 38px;
    line-height: 56px;
    margin-top: 12%;
  }
  .sub-text2 {
    font-size: 16px;
    line-height: 26px;
  }
}

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .heading-text {
    font-size: 34px;
    line-height: 48px;
    margin-top: 10%;
    padding: 0 24px;
  }
  .sub-text2 {
    font-size: 15px;
    line-height: 24px;
    padding: 0 20px;
  }
  .edoc-logo {
    font-size: 18px;
    padding-left: 16px;
  }
  .nav-item {
    font-size: 14px;
  }
  .register-btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    backdrop-filter: saturate(120%) blur(2px);
  }
}

/* Móviles (≤ 768px) */
@media (max-width: 768px) {
  /* Evita que el fondo “salte” en iOS */
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .full-height {
    min-height: 100svh; /* usa viewport seguro en móviles */
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }

  table {
    padding-top: 0;
  }

  .heading-text {
    font-size: 28px;
    line-height: 38px;
    margin-top: 18vw;      /* separa del top según ancho pantalla */
    padding: 0 18px;
  }

  .sub-text2 {
    font-size: 14px;
    line-height: 22px;
    padding: 0 18px;
  }

  .register-btn {
    padding: 12px 20px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 14px;
  }

  .edoc-logo {
    font-size: 17px;
    padding-left: 12px;
  }

  .edoc-logo-sub {
    font-size: 11px;
  }

  .nav-item {
    font-size: 14px;
    padding: 6px 10px;
  }

  .footer-hashen {
    position: static;      /* evita que tape contenido */
    text-align: center;
    left: auto;
    margin: 16px 0 6px;
  }
}

/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
  .heading-text {
    font-size: 24px;
    line-height: 32px;
    margin-top: 22vw;
    padding: 0 14px;
  }
  .sub-text2 {
    font-size: 13px;
    line-height: 20px;
    padding: 0 14px;
  }
  .register-btn {
    width: 86%;
    max-width: 360px;
    text-align: center;
  }
  .nav-item {
    display: inline-block;
    margin: 4px 6px;
  }
}

/* Alto reducido (landscape móvil, ≤ 420px de alto) */
@media (max-height: 420px) {
  .heading-text {
    margin-top: 8%;
    font-size: 22px;
    line-height: 28px;
  }
  .sub-text2 {
    font-size: 12px;
    line-height: 18px;
  }
}

/* Preferencias del usuario: reduce animaciones si lo pide */
@media (prefers-reduced-motion: reduce) {
  .full-height, .edoc-logo, .nav-item, .footer-hashen {
    animation: none !important;
    transition: none !important;
  }
}

/* Mejora de contraste en pantallas muy brillantes */
@media (prefers-contrast: more) {
  .full-height { background: rgba(0,0,0,0.55); }
  .sub-text2 { color: rgba(255,255,255,0.75); }
}

/* Helper: centrar un contenedor de botones/links si lo usas */
.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Opcional: botón primario con borde para hero */ 
.btn-hero {
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.08);
  padding: 10px 18px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
}
.btn-hero:hover {
  background: rgba(255,255,255,.16);
}

/* ==== HOME: ajustes mínimos del hero (solo portada) ==== */

/* Evita desplazamiento lateral accidental */
html, body { overflow-x: hidden; }

/* Capa sutil encima del fondo para mejorar contraste del texto */
.full-height {
  position: relative;
  display: flex;                 /* centra vertical */
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 120px) 16px;  /* aire en bordes */
}
.full-height::before{
  content: "";
  position: fixed;               /* cubre toda la pantalla */
  inset: 0;
  background: rgba(0,0,0,.35);   /* oscurece un poco el fondo */
  pointer-events: none;
}

/* Título grande: tamaño fluido y line-height correcto */
.heading-text{
  margin-top: 0;                 /* quita salto arriba */
  padding: 0 16px;               /* margen interno lateral */
  text-align: center;
  line-height: 1.2;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 48px);   /* 28–48px según ancho */
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}

/* Subtítulo legible en móvil */
.sub-text2{
  padding: 0 16px;
  text-align: center;
  line-height: 1.6;
  font-size: clamp(14px, 3.8vw, 20px);  /* 14–20px */
  color: rgba(255,255,255,.85);
}

/* Botón principal: más cómodo y estable en móvil */
.register-btn{
  display: inline-block;
  padding: 12px 20px;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transform: translateZ(0);      /* evita saltos en iOS */
}

/* Solo móvil */
@media (max-width: 768px){
  .register-btn{
    width: 90%;
    max-width: 340px;
    font-size: 1.05rem;
  }
}

/* Detalle sutil del logo (opcional) */
.edoc-logo{
  text-shadow: 0 1px 10px rgba(0,0,0,.25);
}

/* ==== Ajustes compactos del hero en móvil ==== */
@media (max-width: 768px){

  .full-height{
    padding: 60px 12px 80px 12px;   /* menos altura arriba/abajo */
    min-height: 100vh;              /* fuerza pantalla completa */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .heading-text{
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .sub-text2{
    font-size: clamp(13px, 3.5vw, 16px);
    line-height: 1.4;
    margin-bottom: 20px;
  }

  .register-btn{
    margin: 0 auto 16px auto;
    width: 85%;
    max-width: 280px;
    padding: 10px 14px;
    font-size: 1rem;
  }

  .footer-hashen{
    position: relative;        /* ya no fijo */
    bottom: auto;
    left: auto;
    margin-top: auto;          /* empuja hacia abajo */
    text-align: center;
    width: 100%;
    font-size: 12px;
  }
}

/* ==== Versión ultra compacta en móvil ==== */
@media (max-width: 480px){

  .full-height{
    padding: 40px 16px 50px 16px; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra todo verticalmente */
    align-items: center;
    text-align: center;
  }

  .heading-text{
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .sub-text2{
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
    padding: 0 8px;
  }

  .register-btn{
    display: block;
    width: 90%;
    max-width: 260px;
    font-size: 15px;
    padding: 10px;
    margin: 0 auto 20px auto;
  }

  .footer-hashen{
    font-size: 12px;
    text-align: center;
    width: 100%;
    margin-top: auto; /* baja al fondo */
    position: relative;
  }
}
