:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #08666C;
  --primary-hover: #08666C;
  --border: #e5e7eb;
  --focus: #6366f1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.wrapper {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;

  /* Imagen por defecto (celulares/tablets) */
  background: url("../img/baner.jpg") no-repeat center center;
  background-size: contain;
  background-color: var(--bg);
}

.card {
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.22); /* 🔹 transparente */
  backdrop-filter: blur(6px);             /* 🔹 efecto frosted glass */
  -webkit-backdrop-filter: blur(6px);     /* compatibilidad Safari */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .2px;
  text-align: center;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.alerts { margin-bottom: 12px; }
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid var(--border);
}
.alert.success { background: #ecfdf5; border-color:#a7f3d0; }
.alert.error { background: #fef2f2; border-color:#fecaca; }

form { display: grid; gap: 14px; }

.field { display: grid; gap: 6px; }
label {
  font-weight: 600;
  font-size: 14px;
}
.req { color: var(--primary); }

select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

select option { padding: 10px; }

input::placeholder { color: #9ca3af; }

input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.btn {
  margin-top: 4px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, background .15s ease;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }

.footnote {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.g-recaptcha {
  display: grid;
  place-items: center;
}

/* 📱 Ajustes para celular */
@media (max-width: 480px) {
  .card {
    padding: 16px;
    border-radius: 12px;
  }

  .title { font-size: 22px; }
  .subtitle { font-size: 13px; }

  input, select, .btn {
    font-size: 14px;
    padding: 10px 12px;
  }
}

/* 💻 Ajustes para escritorio */
@media (min-width: 1024px) {
  .wrapper {
    background: url("../img/baner_pc.jpg") no-repeat center center;
    background-size: cover; /* ocupa toda la pantalla */
    background-color: var(--bg);
  }
}

.title-with-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.title-with-logo .logo {
  width: 190px;
  height: auto;
}

