@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Poppins:wght@400;500;600&family=Roboto:wght@400;500&display=swap');

:root { --verde-principal: #008000; }

body { font-family: 'Roboto', sans-serif; overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-family: 'Montserrat', sans-serif; }

/* ── NAVBAR ──────────────────────────────────────────────────────── */
.custom-navbar { background-color: var(--verde-principal) !important; }

.custom-navbar .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 15px;
  color: rgba(255,255,255,0.7) !important;
  transition: all 0.3s ease;
  position: relative;
}

.custom-navbar .nav-link:hover { color: #fff !important; }

@media (max-width: 991.98px) {
  .custom-navbar .navbar-collapse {
    background-color: var(--verde-principal);
    padding: 20px;
    border-radius: 0 0 15px 15px;
  }
  .custom-navbar .nav-link { margin: 4px 0; padding: 8px 12px; }
}

/* ── MAIN ────────────────────────────────────────────────────────── */
.perfil-main {
  margin-top: 75px;
  background: url('../imagenes/BANNER.jpeg') center center / cover no-repeat;
  min-height: calc(100vh - 75px - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.perfil-overlay {
  background-color: rgba(0,0,0,0.55);
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

/* ── AVATAR ──────────────────────────────────────────────────────── */
.perfil-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-icono { font-size: 4rem; color: white; }

/* ── DATOS ───────────────────────────────────────────────────────── */
.datos-card {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 24px 32px;
  width: 100%;
  max-width: 400px;
}

.dato-campo { margin-bottom: 16px; }

.dato-campo label {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  display: block;
  margin-bottom: 4px;
}

.dato-linea {
  height: 1px;
  background-color: rgba(255,255,255,0.4);
  width: 100%;
}

.dato-valor { color: white; font-size: 0.95rem; }

/* ── BOTONES ─────────────────────────────────────────────────────── */
.botones-perfil {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.btn-perfil {
  background-color: var(--verde-principal);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s, opacity 0.3s;
}

.btn-perfil:hover    { background-color: #006600; }
.btn-perfil:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-danger-perfil       { background-color: #c0392b; }
.btn-danger-perfil:hover { background-color: #a93226; }

.btn-google       { background-color: #4285F4; }
.btn-google:hover { background-color: #3367d6; }

/* ── ENLACE "¿OLVIDASTE TU CONTRASEÑA?" ──────────────────────────── */
.btn-link-custom {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  transition: color 0.2s;
}

.btn-link-custom:hover { color: white; }

/* ── FORMULARIOS ─────────────────────────────────────────────────── */
.form-card {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

.form-titulo {
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.form-label-custom {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  display: block;
  margin-bottom: 6px;
}

.input-custom {
  width: 100%;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 10px 14px;
  color: white;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.3s;
}

.input-custom::placeholder { color: rgba(255,255,255,0.45); }
.input-custom:focus { border-color: white; background-color: rgba(255,255,255,0.2); }

.texto-error {
  color: #ff6b6b;
  font-size: 0.82rem;
  text-align: center;
  min-height: 18px;
  margin: 0;
}

/* ── MODALES ─────────────────────────────────────────────────────── */
.modal-custom {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-caja {
  background-color: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 420px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer { background-color: #008000; }
footer a { text-decoration: none; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .datos-card { padding: 18px 20px; }
  .form-card, .modal-caja { padding: 24px 18px; }
  .btn-perfil { padding: 9px 18px; font-size: 0.8rem; }
  footer .row > div { text-align: center !important; }
  footer img { height: 50px !important; }
}