/* ============================================================
   SG.AGUA — home.css
   Estilos específicos de la página de inicio (login/portales)
   Página standalone: no carga base.html ni custom.css
   ============================================================ */

/* ── Variables de color ── */
:root {
  --primary:   #00365a;
  --secondary: #0077c2;
  --accent:    #00b4d8;
}

/* ── Reset base ── */
* { box-sizing: border-box; }

/* ── Cuerpo: layout de dos paneles ── */
body {
  font-family: 'Barlow', -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  margin: 0;
}

/* ── Panel izquierdo: imagen + textos ── */
.home-branding {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.branding-bg {
  position: absolute;
  inset: 0;
  background: url('/staticfiles/img/fondo1.png') center / cover no-repeat;
  z-index: 0;
}

.branding-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 30, 60, .15) 0%,
    rgba(0, 30, 60, .30) 40%,
    rgba(0, 10, 30, .80) 100%);
  z-index: 1;
}

.branding-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  padding: 3rem 3.5rem;
}

.branding-content .tagline {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}

.branding-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.branding-content p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.65;
  margin-bottom: .5rem;
}

.branding-content ul {
  padding-left: 1.2rem;
  margin: 0;
  color: rgba(255, 255, 255, .80);
  font-size: .9rem;
  line-height: 2;
}

.branding-content ul li::marker { color: var(--accent); }

/* ── Panel derecho: portales ── */
.home-portals {
  width: 460px;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  position: relative;
}

.home-portals::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
}

/* ── Ícono central ── */
.portal-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ── Botones de portal ── */
.btn-portal {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: #111;
  transition: all .22s;
  margin-bottom: .9rem;
}

.btn-portal:hover {
  border-color: var(--secondary);
  background: #f0f7ff;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 54, 90, .12);
}

.btn-portal .p-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.btn-portal .p-icon.admin { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; }
.btn-portal .p-icon.user  { background: linear-gradient(135deg, #1a7f37, #2da44e); color: #fff; }

.btn-portal .p-info  { display: flex; flex-direction: column; }
.btn-portal .p-label { font-weight: 600; font-size: .95rem; }
.btn-portal .p-sub   { font-size: .78rem; color: #888; margin-top: .15rem; }

.btn-portal .p-arrow {
  margin-left: auto;
  color: #ccc;
  font-size: .85rem;
  transition: transform .2s;
}

.btn-portal:hover .p-arrow { transform: translateX(4px); color: var(--secondary); }

/* ── Logo mobile ── */
.home-logo-mobile {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-brand-name {
  color: var(--primary);
}

.home-brand-sub {
  font-size: .7rem;
}

/* ── Portal subtitle ── */
.home-portal-subtitle {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Enlace portal administradores ── */
.home-admin-link {
  font-size: .92rem;
  color: #64748b;
  text-decoration: underline;
}

/* ── Botones de registro ── */
.home-register-btn {
  border-radius: 1.5rem;
  font-weight: 500;
  min-width: 180px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .home-branding { display: none; }
  .home-portals  { width: 100%; padding: 2rem 1.5rem; }
}
