body, html {
  margin: 0;
  padding: 0;
  height: 100%;
}

.hero {
  background-image: url('https://i.ibb.co/9kwzFq95/image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  color: white;
}

.navbar-custom {
  background-color: #0087E0;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-bar {
  padding: 1rem;
}

.top-bar .title {
  font-weight: bold;
  font-size: 1.5rem;
}

.center-content {
  text-align: center;
}

.main-button {
  margin-bottom: 3rem;
}

.logo-img {
  height: 50px;
}

.user-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Fondo y layout */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.contenidoModal {
  width: 850px;
  max-width: 95%;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2rem 2.5rem 2rem;
  position: relative;
  text-align: center;
  overflow-y: auto;
  max-height: 90vh;
}

/* Botón de cerrar */
.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cerrar:hover {
  transform: scale(1.2);
}

.fa-xmark {
  font-size: 1.4rem;
  color: #555;
}

/* Imagen centrada */
.contenidoModal img {
  display: block;
  width: 100px;
  height: auto;
  margin: 0 auto 1rem auto; /* centrada y con margen inferior */
}

/* Textos */
.contenidoModal h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contenidoModal h2,
.contenidoModal h3 {
  color: #000;
  margin-bottom: 0.5rem;
}

.fa-xmark {
  cursor: pointer;
  color: #3a0552;
  font-weight: bold;
  font-size: 1.2rem;
  padding-right: 1rem;
}

.fa-circle-user {
  color: #ffffff;
  font-size: 3.9rem;
}

#abrirModal {
  all: unset;
  cursor: pointer;
}

/* --- Barra de pestañas (nav) --- */
.contenidoModal nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 1rem 0 1.5rem 0;
  background: #f2f4f8;
  border-radius: 0.8rem;
  padding: 0.5rem;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.08);
}

/* Botones tipo “tabs” */
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.tab-btn i {
  font-size: 1.1rem;
}

.tab-btn:hover {
  background: #eaf3ff;
  color: #007bff;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: #007bff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

/* Contenido de pestañas */
.tab-content {
  width: 50%;
  max-width: 500px;
  text-align: left;
}

/* Imagen de perfil */
.foto {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #007bff;
  margin-bottom: 1rem;
}

.foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Campos del formulario */
.campos form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.campos input {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.campos input:focus {
  border-color: #007bff;
  outline: none;
}

/* --- Botones uniformes (Enviar + Cerrar sesión) --- */
#enviar, .contenidoModal .btn.btn-primary {
  display: block;
  width: 70%;
  max-width: 320px;
  margin: 0.6rem auto;
  padding: 0.8rem;
  font-weight: 600;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
}

/* --- Estilo principal (Enviar formulario) --- */
#enviar {
  background: #007bff;
  color: #fff;
  border: none;
  width: 100%;
}

#enviar:hover {
  background: #005ecb;
  box-shadow: 0 4px 10px rgba(0, 91, 203, 0.4);
}

/* --- Estilo secundario (Cerrar sesión) --- */
.contenidoModal .btn.btn-primary {
  background: #dc3545;
  border: none;
  color: white;
  margin: 0 auto;
}

.contenidoModal .btn.btn-primary:hover {
  background: #b71d2a;
  box-shadow: 0 4px 10px rgba(183, 29, 42, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
  .contenidoModal {
    padding: 1.5rem;
  }

  .contenidoModal nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .tab-btn {
    width: 100%;
    font-size: 0.95rem;
  }

  .foto {
    width: 80px;
    height: 80px;
  }

  #enviar,
  .contenidoModal .btn.btn-primary {
    width: 90%;
  }
}

#cuenta {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foto-perfil-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.foto-perfil-section h3 {
    margin-bottom: 1rem;
    color: #007bff;
}

.foto-perfil-section .campos form {
    width: 100%;
    max-width: 300px;
}

