/* ── RESET & VARIABLES ─────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde: #4A7C59;
  --verde-oscuro: #1C2B1E;
  --crema: #F7F3EE;
  --coral: #E8826A;
  --coral-suave: #F5C4B8;
  --blanco: #FFFFFF;
  --gris-texto: #5A6B5C;
  --verde-suave: #D4E8DA;
  --gris-claro: #F0F0EE;
  --error: #E53E3E;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--verde-oscuro);
  color: var(--verde-oscuro);
  min-height: 100vh;
  overflow-x: hidden;
}

.serif { font-family: 'DM Serif Display', serif; }
.oculto { display: none !important; }
.pantalla { min-height: 100vh; }

/* ── SPLASH ────────────────────────────────────────── */
.splash {
  min-height: 100vh;
  background: var(--verde);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 16px;
}

.splash-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.splash-logo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.splash-logo h1 {
  font-size: 48px;
  color: white;
  letter-spacing: -1px;
}

.splash-logo p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}

.splash-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.splash-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
}

/* ── BOTONES ───────────────────────────────────────── */
.btn-coral {
  background: var(--coral);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
  text-align: center;
}
.btn-coral:hover { opacity: .9; transform: translateY(-1px); }
.btn-coral.full { width: 100%; border-radius: 14px; }

.btn-outline-blanco {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.btn-outline-blanco:hover { background: rgba(255,255,255,0.1); }

.btn-back {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--verde-oscuro);
  padding: 4px 8px;
  font-family: 'Inter', sans-serif;
}

/* ── AUTH ──────────────────────────────────────────── */
#login {
  background: var(--crema);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-header {
  background: var(--verde);
  padding: 16px 20px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-header .btn-back { color: white; }

.auth-header h2 {
  font-size: 20px;
  color: white;
}

.auth-body {
  flex: 1;
  padding: 24px 20px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* ── TABS ──────────────────────────────────────────── */
.tabs {
  display: flex;
  background: var(--verde-suave);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  color: var(--gris-texto);
  transition: all .2s;
}

.tab.active {
  background: white;
  color: var(--verde);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

/* ── FORMS ─────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--verde-oscuro);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--verde-suave);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--verde-oscuro);
  background: white;
  outline: none;
  transition: border-color .2s;
}

.form-input:focus { border-color: var(--verde); }

.form-note {
  font-size: 12px;
  color: var(--gris-texto);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}

.form-note a { color: var(--verde); }

/* ── MENSAJES ──────────────────────────────────────── */
.error-msg {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
  color: var(--error);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-top: 12px;
}

.loading {
  text-align: center;
  color: var(--gris-texto);
  font-size: 14px;
  margin-top: 12px;
}

.success-msg {
  background: var(--verde-suave);
  border: 1px solid var(--verde);
  color: var(--verde);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}