/* ============================================================
   Portada de acceso — OH Constructora · Opción E (Grafito geométrico)
   Sin dependencias. Tipografía: Archivo (Google Fonts).
   ============================================================ */

:root {
  --ambar: #E9A13B;
  --ambar-oscuro: #C9882B;
  --grafito: #2A313B;
  --tinta: #23272E;
  --gris-texto: #6B7077;
  --gris-etiqueta: #8A8E94;
  --linea: #D9D6CF;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  background: var(--grafito);
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Fondo geométrico ---------- */
.fondo {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.forma {
  position: absolute;
  border-radius: 56px;
}

.forma-1 {
  left: -8%; top: -18%;
  width: 44vw; height: 44vw;
  min-width: 380px; min-height: 380px;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(18deg);
}

.forma-2 {
  right: -12%; top: 22%;
  width: 50vw; height: 50vw;
  min-width: 420px; min-height: 420px;
  background: rgba(255, 255, 255, 0.07);
  transform: rotate(-14deg);
  border-radius: 64px;
}

.forma-3 {
  left: 18%; bottom: -34%;
  width: 40vw; height: 40vw;
  min-width: 340px; min-height: 340px;
  background: rgba(233, 161, 59, 0.09);
  transform: rotate(24deg);
}

.forma-4 {
  right: 14%; top: -10%;
  width: 240px; height: 240px;
  border: 1.5px solid rgba(233, 161, 59, 0.30);
  border-radius: 44px;
  transform: rotate(-10deg);
}

/* ---------- Layout ---------- */
.contenedor {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ---------- Tarjeta ---------- */
.tarjeta {
  width: 100%;
  max-width: 410px;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Entrada sutil (disparada por JS con la clase .cargado en <body>;
   sin JS la tarjeta queda visible) */
@media (prefers-reduced-motion: no-preference) {
  .tarjeta {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  body:not(.cargado) .tarjeta {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- Marca ---------- */
.marca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.isotipo { flex: none; }

.wordmark {
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: #7A7E85;
  white-space: nowrap;
}

/* ---------- Bienvenida ---------- */
.bienvenida {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.bienvenida h1 {
  margin: 0;
  font-weight: 600;
  font-size: 26px;
  color: var(--tinta);
}

.bienvenida p {
  margin: 0;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--gris-texto);
}

/* ---------- Formulario ---------- */
.formulario {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.campo label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gris-etiqueta);
}

.campo input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--linea);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 15px;
  color: var(--tinta);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.campo input:focus {
  border-color: var(--ambar);
  box-shadow: 0 0 0 3px rgba(233, 161, 59, 0.18);
}

/* ---------- Botón ---------- */
.boton {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  background: var(--ambar);
  color: #FFFFFF;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease;
}

.boton:hover { background: var(--ambar-oscuro); }
.boton:active { transform: translateY(1px); }

.boton:focus-visible {
  outline: 3px solid rgba(233, 161, 59, 0.45);
  outline-offset: 2px;
}

/* ---------- Móvil ---------- */
@media (max-width: 480px) {
  .tarjeta {
    padding: 36px 26px 32px;
    border-radius: 16px;
  }
  .bienvenida h1 { font-size: 23px; }
  .wordmark { font-size: 12px; }
}
