/* Cuenta de cliente: registro, entrar y el acceso del menú. */

.cu-main {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: clamp(6rem, 12vw, 9rem) 1rem 4rem;
  background:
    radial-gradient(70% 90% at 80% 0%, rgba(139, 92, 246, 0.26), transparent 70%),
    radial-gradient(50% 70% at 5% 100%, rgba(236, 72, 153, 0.14), transparent 70%),
    #07060d;
}
.cu-card {
  width: min(100%, 30rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.1rem;
  background: rgba(16, 12, 28, 0.78);
  backdrop-filter: blur(10px);
}
.cu-titulo { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.6rem; }
.cu-sub { color: rgba(245, 243, 255, 0.78); line-height: 1.55; margin: 0 0 1.6rem; }
.cu-card .cu-form { display: grid; gap: 1.5rem; background: none; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
.cu-form .contacto-form-group { position: relative; }
.cu-card .contacto-form input { border-bottom: 1px solid rgba(245, 243, 255, 0.3); font: inherit; color: #fff; }
.cu-card .contacto-form label { color: rgba(245, 243, 255, 0.6); }
.cu-card .contacto-form input:focus + label,
.cu-card .contacto-form input:valid + label { color: #c4b5fd; }
.cu-boton { justify-self: start; margin-top: 0.4rem; padding: 0.7rem 1.8rem; font-size: 0.95rem; cursor: pointer; }
.cu-error { margin: 0.45rem 0 0; font-size: 0.85rem; color: #fca5a5; }
.cu-alt { margin: 1.6rem 0 0; font-size: 0.92rem; color: rgba(245, 243, 255, 0.72); }
.cu-alt a { color: #c4b5fd; border-bottom: 1px solid rgba(196, 181, 253, 0.45); }

/* Acceso en el menú: un icono de usuario que destaca, con su menú desplegable */
.nav-cuenta { position: relative; display: flex; align-items: center; margin-left: 2rem; z-index: 1250; }
@media (min-width: 901px) { .nav-cta { display: flex; align-items: center; } }
.nc-btn {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.1rem; cursor: pointer;
  border: 0; background: none; color: #c4b5fd; font: inherit; font-size: 0.9rem; line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}
.nc-btn i { font-size: 1.1rem; }
.nc-btn .nc-flecha { font-size: 0.6rem; margin-left: -0.1rem; transition: transform 0.25s ease; }
.abierto .nc-flecha { transform: rotate(180deg); }
.nc-txt2 { display: none; }
.nc-btn:hover, .nc-btn:focus-visible, .abierto .nc-btn { color: #fff; transform: translateY(-1px); }
.nc-btn:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 4px; border-radius: 4px; }
.nc-menu {
  position: absolute; right: 0; top: calc(100% + 0.7rem); min-width: 15rem; padding: 0.5rem;
  border-radius: 0.8rem; border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(12, 9, 24, 0.97); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}
.nc-menu[hidden] { display: none; }
.nc-menu a, .nc-menu button {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem;
  border: 0; border-radius: 0.5rem; background: none; color: rgba(245, 243, 255, 0.92); font: inherit; font-size: 0.95rem; text-align: left; cursor: pointer;
}
.nc-menu a:hover, .nc-menu button:hover { background: rgba(139, 92, 246, 0.2); color: #fff; }
.nc-menu i { width: 1.2rem; text-align: center; color: #a78bfa; }
.nc-menu form { margin: 0; }
.nc-hola { margin: 0 0 0.3rem; padding: 0.6rem 0.8rem 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: grid; gap: 0.1rem; }
.nc-hola strong { color: #fff; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.nc-hola span { color: rgba(245, 243, 255, 0.6); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; }
.nc-menu .nc-admin { color: #fbbf24; } .nc-menu .nc-admin i { color: #fbbf24; }
@media (max-width: 900px) {
  /* En el celular "Login o Regístrate" es una opción más del menú y sus opciones se abren como un submenú, sin cuadro */
  .nav-cuenta { flex-direction: column; align-items: center; width: 100%; margin: 0; z-index: auto; }
  .nc-btn { width: 100%; justify-content: center; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: #fff; gap: 0.5rem; padding: 1.15rem 0.4rem; }
  .nc-btn i:first-child { display: none; }
  .nc-btn .nc-flecha { font-size: 0.8rem; margin-left: 0.4rem; color: #c4b5fd; }
  .nc-txt2 { display: inline; }
  .nc-menu { position: static; width: 100%; max-width: 26rem; min-width: 0; margin: 0 0 0.4rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; box-sizing: border-box; }
  .nc-menu a, .nc-menu button { justify-content: center; padding: 0.7rem 0.4rem; border-radius: 0; font-family: var(--serif); font-size: 1.25rem; color: #c4b5fd; background: none; }
  .nc-menu a:hover, .nc-menu button:hover { background: none; color: #fff; }
  .nc-menu i { display: none; }
  .nc-hola { text-align: center; border-bottom: 0; padding: 0 0 0.3rem; }
}

/* Páginas de la cuenta: pedidos y datos personales */
.cu-ancho { width: min(100%, 46rem); }
.cu-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; }
.cu-nav a { padding: 0.5rem 1rem; border-radius: 2rem; border: 1px solid rgba(167, 139, 250, 0.35); font-size: 0.9rem; color: rgba(245, 243, 255, 0.85); }
.cu-nav a.activo, .cu-nav a:hover { background: rgba(139, 92, 246, 0.25); color: #fff; border-color: #a78bfa; }
.cu-pedido { padding: 1.1rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.8rem; background: rgba(255, 255, 255, 0.03); display: grid; gap: 0.5rem; margin-bottom: 0.9rem; }
.cu-pedido-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.cu-pedido-cab strong { font-family: var(--serif); font-size: 1.15rem; color: #fff; }
.cu-pedido small { color: rgba(245, 243, 255, 0.6); }
.cu-pedido p { margin: 0; color: rgba(245, 243, 255, 0.8); line-height: 1.5; overflow-wrap: anywhere; }
.cu-estado { padding: 0.25rem 0.75rem; border-radius: 2rem; font-size: 0.8rem; font-weight: 600; background: rgba(139, 92, 246, 0.25); color: #ddd6fe; }
.cu-estado-proceso { background: rgba(251, 191, 36, 0.18); color: #fde68a; }
.cu-estado-finalizado { background: rgba(16, 185, 129, 0.2); color: #a7f3d0; }
.cu-estado-cancelado { background: rgba(244, 63, 94, 0.2); color: #fecdd3; }
.cu-vacio { padding: 2rem 1rem; text-align: center; color: rgba(245, 243, 255, 0.75); border: 1px dashed rgba(167, 139, 250, 0.35); border-radius: 0.8rem; }
.cu-bloque { margin-bottom: 2rem; }
.cu-bloque h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 1rem; color: #fff; }
.cu-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }
.cu-card .cu-form.cu-ancho-form { gap: 1.5rem; }

/* Entrar con Google */
.cu-o { display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 1rem; color: rgba(245, 243, 255, 0.55); font-size: 0.85rem; }
.cu-o::before, .cu-o::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.15); }
.cu-google { display: flex; align-items: center; justify-content: center; gap: 0.7rem; width: 100%; box-sizing: border-box; padding: 0.8rem 1rem; border-radius: 0.5rem; background: #fff; color: #1f1f1f; font-weight: 600; font-size: 0.95rem; }
.cu-google i { color: #ea4335; font-size: 1.1rem; }
.cu-google:hover { background: #f1f1f1; }

/* Autocompletado del navegador: sin fondo blanco y con la etiqueta arriba para no pisar el texto */
.cu-card .contacto-form input:-webkit-autofill,
.cu-card .contacto-form input:-webkit-autofill:hover,
.cu-card .contacto-form input:-webkit-autofill:focus,
.cu-card .contacto-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #150f30 inset;
  box-shadow: 0 0 0 1000px #150f30 inset;
  transition: background-color 9999s ease-in-out 0s;
}
.cu-card .contacto-form input:-webkit-autofill + label {
  top: -0.5rem;
  font-size: 0.875rem;
  color: #c4b5fd;
}

/* ---------- Animaciones del acceso (Login o Regístrate) ---------- */
@keyframes nc-abre { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes nc-item { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nc-menu:not([hidden]) { animation: nc-abre 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: top right; }
.nc-menu:not([hidden]) > * { animation: nc-item 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.nc-menu:not([hidden]) > *:nth-child(1) { animation-delay: 0.05s; }
.nc-menu:not([hidden]) > *:nth-child(2) { animation-delay: 0.11s; }
.nc-menu:not([hidden]) > *:nth-child(3) { animation-delay: 0.17s; }
.nc-menu:not([hidden]) > *:nth-child(4) { animation-delay: 0.23s; }
.nc-menu:not([hidden]) > *:nth-child(5) { animation-delay: 0.29s; }
/* línea que se dibuja bajo "Login" al pasar el cursor o al abrirse */
.nc-btn { position: relative; }
.nc-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.1rem; height: 1px; background: linear-gradient(90deg, #22d3ee, #f472b6); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nc-btn:hover::after, .abierto .nc-btn::after { transform: scaleX(1); }
.nc-flecha { animation: nc-late 2.8s ease-in-out 1.5s infinite; }
@keyframes nc-late { 0%, 80%, 100% { translate: 0 0; } 90% { translate: 0 2px; } }
.abierto .nc-flecha { animation: none; }
@media (max-width: 900px) {
  .nc-btn::after { left: 20%; right: 20%; bottom: 0.55rem; }
  .main-nav .nav-menu.active .nav-cuenta { animation: menu-entra 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-menu:not([hidden]), .nc-menu:not([hidden]) > *, .nc-flecha, .main-nav .nav-menu.active .nav-cuenta { animation: none !important; }
}

/* "Crear cuenta" / "Iniciar sesión" y "Ingresar con Google": mismo ancho, alto y forma; Google con sus colores originales */
.cu-boton, .cu-google { display: flex; align-items: center; justify-content: center; gap: 0.7rem; width: 100%; box-sizing: border-box; min-height: 3rem; padding: 0.8rem 1rem; border-radius: 0.5rem; font-size: 0.95rem; font-weight: 600; line-height: 1.2; }
.cu-google { background: #fff; color: #3c4043; border: 1px solid #dadce0; }
.cu-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3); }
.cu-google .cu-g { flex: none; }

/* Aceptación de términos y páginas legales */
.cu-acepto { margin-top: 0.2rem; }
.cu-check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.5; color: rgba(245, 243, 255, 0.8); cursor: pointer; }
.cu-check input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; accent-color: #8b5cf6; }
.cu-check a, .cu-legal a, .lg-doc a { color: #c4b5fd; border-bottom: 1px solid rgba(196, 181, 253, 0.45); }
.cu-legal { margin: 0.9rem 0 0; font-size: 0.8rem; line-height: 1.5; color: rgba(245, 243, 255, 0.6); text-align: center; }
.lg-main { align-items: start; }
.cu-card.lg-doc { width: min(100%, 52rem); }
.lg-doc h2 { font-size: 1.15rem; margin: 1.8rem 0 0.5rem; color: #e9e3ff; }
.lg-doc p, .lg-doc li { line-height: 1.7; color: rgba(245, 243, 255, 0.82); font-size: 0.96rem; }
.lg-doc ul { padding-left: 1.2rem; margin: 0.4rem 0; display: grid; gap: 0.4rem; }
.lg-meta { color: rgba(245, 243, 255, 0.55); font-size: 0.85rem; margin: 0 0 1.4rem; }
.lg-cta { margin-top: 2rem; }
.ft-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Formulario de requerimientos y respuestas del equipo */
.rq-form { gap: 1.6rem; }
.rq-seccion { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.9rem; padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 1.1rem; margin: 0; min-width: 0; }
.rq-seccion legend { padding: 0 0.6rem; font-family: var(--serif); font-size: 1.2rem; color: #fff; }
.rq-campo { display: grid; gap: 0.4rem; min-width: 0; }
.rq-etq { font-size: 0.9rem; color: rgba(245, 243, 255, 0.85); }
.rq-campo input[type="text"], .rq-campo select, .rq-campo textarea { width: 100%; box-sizing: border-box; padding: 0.7rem 0.8rem; border-radius: 0.5rem; border: 1px solid rgba(245, 243, 255, 0.22); background: rgba(8, 6, 18, 0.6); color: #fff; font: inherit; }
.rq-campo textarea { resize: vertical; min-height: 4.5rem; }
.rq-campo input:focus, .rq-campo select:focus, .rq-campo textarea:focus { outline: 0; border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25); }
.rq-con-error input, .rq-con-error textarea, .rq-con-error select { border-color: #f87171; }
.rq-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rq-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rq-chip span { display: inline-block; padding: 0.45rem 0.9rem; border-radius: 2rem; border: 1px solid rgba(245, 243, 255, 0.25); color: rgba(245, 243, 255, 0.85); font-size: 0.88rem; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.rq-chip input:checked + span { background: linear-gradient(90deg, #8b5cf6, #ec4899); border-color: transparent; color: #fff; }
.rq-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.45); }
.rq-aviso { text-align: left; margin: 0; }
.rq-respuesta { border-left: 4px solid #ec4899; background: rgba(236, 72, 153, 0.08); padding: 0.8rem 1rem; border-radius: 0 0.5rem 0.5rem 0; }
.rq-respuesta strong { color: #fbcfe8; }
.rq-espera { color: rgba(245, 243, 255, 0.65); font-style: italic; }
.rq-detalle summary { cursor: pointer; color: #c4b5fd; font-size: 0.9rem; }
.rq-detalle dl { margin: 0.7rem 0 0; display: grid; gap: 0.5rem; }
.rq-detalle dt { font-size: 0.8rem; color: rgba(245, 243, 255, 0.55); }
.rq-detalle dd { margin: 0; color: rgba(245, 243, 255, 0.9); overflow-wrap: anywhere; white-space: pre-line; }
.cu-estado-revision { background: rgba(59, 130, 246, 0.2); color: #bfdbfe; }
.cu-estado-propuesta { background: rgba(236, 72, 153, 0.2); color: #fbcfe8; }
.cu-estado-aprobado, .cu-estado-cerrado { background: rgba(16, 185, 129, 0.2); color: #a7f3d0; }

/* Selector de idioma con banderas */
.id-sub { margin-bottom: 1rem; }
.id-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.7rem; }
.id-op { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.7rem; background: rgba(255, 255, 255, 0.03); color: rgba(245, 243, 255, 0.9); transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.id-op:hover, .id-op:focus-visible { border-color: #a78bfa; background: rgba(139, 92, 246, 0.14); transform: translateY(-2px); }
.id-op .fi { width: 1.7rem; height: 1.275rem; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); background-size: cover; }
.id-activo { border-color: #8b5cf6; background: linear-gradient(90deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.2)); color: #fff; }
.id-nombre { font-size: 0.95rem; font-weight: 600; }
.ft-idiomas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; padding: 1.2rem 0 0.4rem; }
.ft-id { display: inline-flex; border-radius: 4px; opacity: 0.6; transition: opacity 0.2s, transform 0.2s; }
.ft-id:hover, .ft-id:focus-visible, .ft-id-activo { opacity: 1; transform: translateY(-2px); }
.ft-id .fi { width: 1.6rem; height: 1.2rem; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); background-size: cover; }
.ft-id-activo .fi { box-shadow: 0 0 0 2px #a78bfa; }
