html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .full-height {
    position: relative; /* Necesario para ::before */
    height: 100vh;
    width: 100vw;
    background-size: cover;        /* Cubre toda el área */
    background-position: center;   /* Centra la imagen */
    background-repeat: no-repeat;  /* Evita repeticiones */
    overflow: hidden;
  }
  
  /* Capa de transparencia sobre la imagen */
  .full-height::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6); /* Ajusta opacidad aquí */
    z-index: 1;
  }
  
  /* El contenido encima del fondo */
  #vista-dinamica {
    position: relative;
    z-index: 2;
  }
  

  :root {
    /* fallback si no se setea por JS */
    --vh: 1vh;
  }
  
  /* contenedor que usa la variable --vh para evitar problemas con 100vh en iOS */
  .fullscreen-center {
    min-height: calc(var(--vh) * 100);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem; /* evita que la tarjeta toque los bordes en pantallas pequeñas */
    box-sizing: border-box;
  }
  
  /* tarjeta */
  .gradient-card {
      background: linear-gradient(135deg, rgba(69,69,69,0.9), rgba(24,24,24,0.9));
      border-radius: 50px;
      max-width: 500px;
      width: 90%;
      padding: 3rem 2rem;
      transition: transform 0.2s;
      aspect-ratio: 5/3;
      box-sizing: border-box;
      /* evita que sobrepase la altura visible (útil en móviles) */
      max-height: calc(var(--vh) * 100 - 2rem);
      overflow: auto;
  }
  
  .gradient-card:hover { transform: scale(1.01); }
  
  /* logo: usar px en vez de % para controlar mejor en móviles */
  .card-logo {
      max-height: 60px;
      width: auto;
      display: block;
      margin: 0 auto;
  }
  
  /* ajustes específicos para pantallas pequeñas */
  @media (max-width: 600px) {
      .fullscreen-center {
          align-items: flex-start; /* evita centrar verticalmente si la tarjeta es más alta que la pantalla */
          padding-top: 1.5rem;
          padding-bottom: 1.5rem;
      }
  
      .gradient-card {
          padding: 1.5rem;
          aspect-ratio: auto; /* permite que el contenido determine la altura */
          width: 95%;
          max-width: 420px;
          max-height: calc(var(--vh) * 100 - 2.5rem); /* deja espacio para padding */
          overflow: auto;
      }
  
      .card-logo {
          max-height: 48px;
      }
  }
  

/* Texto e íconos responsivos */
.responsive-text {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    padding: 1rem 2rem;
}

.responsive-text span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.responsive-text ion-icon {
    color: #ffffff;
    font-size: 1.6em;
    flex-shrink: 0;
}

/* Contenedor de botones */
.btn-group {
    display: flex;
    flex-wrap: wrap; /* Permite que los botones bajen en pantallas pequeñas */
    gap: 1rem;
    justify-content: center; /* Opcional: centra los botones */
}

/* Botones */
.btn-continuar {
    flex: 1 1 200px; /* crece, encoge, base mínima 200px */
    max-width: 100%;  /* evita que se desborde */
    color: #ffffff;
    background-color: #00B6BD;
    border: 2px solid #00B6BD;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap; /* evita que el texto haga salto de línea */
}

/* Hover */
.btn-continuar:hover,
.btn-continuar:focus {
    background-color: #009ba1;
    color: #060606ff;
    border-color: #009ba1;
    text-decoration: none;
}



/* === Pantalla 2: Estructura con gradiente y blur === */
.gradient-card2 {
    background: linear-gradient(135deg, rgba(0, 102, 153, 0.8), rgba(1, 75, 160, 0.8));
    backdrop-filter: blur(4px);
    border-radius: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    overflow: hidden;
}

.gradient-card2:hover {
    transform: scale(1.01);
}

/* Inputs */
.gradient-card2 .form-control {
    background-color: #ffffff; /* Gris suave translúcido */
    border: 1px solid #000000;
    color: #000000;
    border-radius: 8px;
    transition: border 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.gradient-card2 .form-control::placeholder {
    color: #0b0b0b;
}

.gradient-card2 .form-control:focus {
    background-color: rgb(255, 255, 255);
    border-color: #00aab3;
    box-shadow: 0 0 0 0.15rem rgba(0, 170, 179, 0.25);
    outline: none;
}

.gradient-card2 .form-control:not(:placeholder-shown) {
    background-color: #ffffff;
}

/* Etiquetas */
.gradient-card2 .form-label {
    color: #0a0a0a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Iconos */
.gradient-card2 ion-icon {
    font-size: 1.2rem;
    color: #000000;
}

/* Logo más pequeño */
.logo-pequeno {
    max-width: 60%; /* Ajusta este valor para cambiar tamaño */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Footer */
.gradient-card2 .text-white-50 {
    color: #888 !important;
}

/* === Responsive ajustes === */
@media (max-width: 768px) {
    .gradient-card,
    .gradient-card2 {
        padding: 1.5rem;
        border-radius: 2rem;
        max-width: 90%;
    }

    .gradient-card img,
    .gradient-card2 img {
        max-height: 40px;
    }

    .btn-continuar {
        font-size: 0.9rem;
        padding: 0.5rem 1.2rem;
    }

    .responsive-text {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .responsive-text span {
        gap: 0.5rem;
    }

    .responsive-text ion-icon {
        font-size: 1.3em;
    }
}

@media (min-width: 768px) {
    #formRoland .mb-3 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #formRoland .form-buttons {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Estilo base del label (cuando está abajo) */
.form-floating > label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.8rem;
  top: 0.2rem;
  left: 0.75rem;
  background-color: transparent;
  font-size: 1.2rem;
  color: #717171; /* texto abajo */
  transition: all 0.2s ease, font-size 0.2s ease;
  z-index: 2;
}

/* Estilo del ícono cuando el label está abajo */
.form-floating > label ion-icon {
  font-size: 1.2rem;
  color: #717171; /* ícono abajo */
  transition: all 0.2s ease;
}

/* Estilo cuando el label flota hacia arriba */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  top: -1.2rem;
  font-size: 1.4rem;
  color: #000000; /* texto negro arriba */
}

/* 🔥 Cambiar color del ícono cuando el label está flotando */
.form-floating > .form-control:focus ~ label ion-icon,
.form-floating > .form-control:not(:placeholder-shown) ~ label ion-icon {
  color: #000000; /* ícono negro arriba */
}

/* Contenedor checkbox */
.form-check {
  display: flex;
  align-items: center;  /* Alinea verticalmente checkbox y label */
  gap: 0.5rem;          /* Espacio entre checkbox y texto */
  margin-bottom: 1.5rem; /* Margen inferior para separar del siguiente elemento */
}

/* Checkbox */
.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  border: 1.5px solid #00aab3;
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
  position: relative;
  left: 30px; /* mueve el checkbox 30px a la derecha */
}

/* Checkbox cuando está chequeado */
.form-check-input:checked {
  background-color: #00aab3;
  border-color: #00aab3;
}

/* Label para el checkbox */
.form-check-label {
  font-size: 1rem;
  color: #333333;
  cursor: pointer;
  position: relative;
  left: 30px; /* mueve el checkbox 30px a la derecha */
  user-select: none; /* Evita seleccionar texto accidental */
  line-height: 1.5;  /* Para que la altura del texto coincida con inputs */
}

/* Ajuste para enlaces dentro del label */
.form-check-label a {
  color: #00aab3;
  text-decoration: underline;
}

.form-check-label a:hover {
  color: #00777a;
  text-decoration: none;
}

/* CENTRAR BOTONES */
.form-buttons {
  justify-content: center !important;
  gap: 1rem;
}

.titulo-bienvenida {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem); /* Aumentado */
    line-height: 1.6;
    padding: 1rem 2rem;
    color: #ffffff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold; /* Negrita */
    
}
.card-principal {
    border-radius: 3rem;
    margin-top: -5rem; /* Sube la tarjeta */
    position: relative;
    z-index: 2;
  }
  
  @media (max-width: 768px) {
    .card-principal {
      margin-top: -5rem; /* Menos margen negativo en móviles para evitar solapamiento */
    }
  }
  
  .botonSweet {
    background-color: #00B6BD !important;  /* Color de fondo */
    color: white !important;               /* Color del texto */
    border-radius: 8px !important;         /* Bordes redondeados */
    font-weight: bold !important;
    padding: 10px 25px !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, color 0.3s ease; /* para transición suave */
}

.botonSweet:hover,
.botonSweet:focus {
    background-color: #009ba1 !important; /* Color en hover/focus */
    color: #060606ff !important;          /* Texto en negro */
    outline: none !important;             /* Quitar borde azul de focus si quieres */
}
.custom-input {
  border: 2px solid black !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  font-size: 16px !important;
  box-sizing: border-box;
}
/* Soporte iOS para aspect-ratio */
.gradient-card,
.gradient-card2 {
  aspect-ratio: auto; /* Safari viejo lo ignora igual */
  height: auto;
}

/* Si quieres mantener proporción, haz fallback */
@supports not (aspect-ratio: 1 / 1) {
  .gradient-card {
    height: 300px; /* fallback fijo */
  }
}

/* Backdrop filter en Safari */
.gradient-card2 {
  -webkit-backdrop-filter: blur(4px); /* Safari */
  backdrop-filter: blur(4px);
}

/* Mejor manejo de alto pantalla en iOS */
.full-height {
  min-height: 100dvh; /* dvh = dynamic viewport, soportado en iOS 16+ */
  height: 100vh;      /* fallback */
}

/* Fix para labels flotantes en Safari */
.form-floating > label {
  transform: translateY(0); /* posición inicial */
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  transform: translateY(-1.2rem); /* sube con transform en vez de top */
  font-size: 1.1rem;
}

#btnEliminarCodigo {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#btnEliminarCodigo:hover {
    background-color: #333;
}
.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 24px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input:focus {
  border-color: black;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  outline: none;
}

.btn-eliminar {
  margin-top: 10px;
  background-color: #000;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-eliminar:hover {
  background-color: #333;
}
