/* ==============================
   Club Juventud de Tapiales
   Panel de gestión - style.css
   ============================== */

:root {
  --color-primario: #c74646; 
  --color-secundario: #5fcf49; 
  --color-fondo: #f4f6f8;
  --color-texto: #333;
  --color-exito: #28a745;
  --color-advertencia: #ffc107;
  --color-pausa: #999;
  --radio-borde: 8px;
}

/* ------------------------------
   GENERAL
------------------------------ */
body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-primario);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------
   CABECERA Y NAVEGACIÓN
------------------------------ */
header {
  background: var(--color-primario);
  color: white;
  padding: 15px 25px;
  text-align: center;
  font-size: 1.3em;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav {
  background-color: white;
  border-bottom: 2px solid var(--color-secundario);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-right: 15px;
  font-weight: 500;
  color: var(--color-primario);
  transition: 0.2s;
}

nav a:hover {
  color: var(--color-secundario);
}

/* ------------------------------
   CONTENIDO PRINCIPAL
------------------------------ */
.container {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border-radius: var(--radio-borde);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

h2, h3, h4 {
  color: var(--color-primario);
}

.btn {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--radio-borde);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background-color: var(--color-primario);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-secundario);
}

.btn-success {
  background-color: var(--color-exito);
  color: white;
}

.btn-warning {
  background-color: var(--color-advertencia);
  color: black;
}

.btn-secondary {
  background-color: var(--color-pausa);
  color: white;
}

/* ------------------------------
   TABLAS
------------------------------ */
table {
  width:70%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

th {
  background-color: var(--color-primario);
  color: white;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.badge {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
}

.bg-success {
  background-color: var(--color-exito);
  color: white;
}

.bg-secondary {
  background-color: var(--color-pausa);
  color: white;
}

/* ------------------------------
   FORMULARIOS
------------------------------ */
form {
  margin-top: 20px;
}

input, textarea, select {
  width: 80%;
  padding: 10px;
  border-radius: var(--radio-borde);
  border: 1px solid #ccc;
  margin-bottom: 15px;
  font-size: 1em;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secundario);
  box-shadow: 0 0 4px rgba(0, 168, 255, 0.3);
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #666;
  background-color: white;
  border-top: 1px solid #ddd;
}

footer a {
  color: var(--color-primario);
  font-weight: 500;
}

/* ------------------------------
   NAVBAR MODERNA Y RESPONSIVE
------------------------------ */

.navbar {
  background: var(--color-primario);
  color: white;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
}

.navbar-logo a {
  color: white;
  font-weight: 600;
  font-size: 1.2em;
  text-decoration: none;
  letter-spacing: 0.5px;
}

/* --- Links principales --- */
.navbar-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.navbar-menu li {
  position: relative;
}

.navbar-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  display: block;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.navbar-menu a:hover {
  background: var(--color-secundario);
}

/* --- Dropdown --- */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 25px;
  left: 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  min-width: 180px;
  animation: fadeDown 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  color: var(--color-texto);
  padding: 10px 15px;
}

.dropdown-menu li a:hover {
  background: var(--color-secundario);
  color: white;
}

/* --- Logout especial --- */
.logout {
  background: var(--color-secundario);
  color: black !important;
  border-radius: 5px;
}

.logout:hover {
  background: #ffb200;
}

/* --- Animación --- */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Modo móvil --- */
.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  background: white;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: 0.3s;
}

/* --- Vista móvil --- */
@media (max-width: 768px) {
  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: fixed;
    left: -100%;
    top: 0;
    width: 220px;
    height: 100%;
    background: var(--color-primario);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 60px;
    transition: left 0.3s ease;
  }

  .navbar-menu.active {
    left: 0;
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu a {
    width: 100%;
    padding: 15px 20px;
  }

  .dropdown-menu {
    position: static;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  .dropdown-menu li a {
    color: #fff;
    padding-left: 30px;
  }

  .navbar-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}
.container {
  padding: 20px;
  color: #333;
  font-family: 'Poppins', sans-serif;
}

.titulo-seccion {
  font-size: 24px;
  color: #003366;
  margin-bottom: 15px;
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filtros select, .filtros input {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.filtros button, .btn-reset {
  background: #003366;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.filtros button:hover, .btn-reset:hover {
  background: #0055aa;
}

.tabla-usuarios {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.tabla-usuarios th, .tabla-usuarios td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.tabla-usuarios th {
  background: #003366;
  color: white;
}

.socio { color: green; font-weight: bold; }
.no-socio { color: red; font-weight: bold; }

.completo { color: green; font-weight: bold; }
.pendiente { color: red; font-weight: bold; }

.btn-ver {
  background: #0066cc;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
}

.btn-ver:hover {
  background: #004c99;
}

.sin-resultados {
  color: #777;
  font-style: italic;
}
.reportes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.reporte-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.reporte-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.reporte-card h3 {
  color: #006633;
  margin-bottom: 10px;
}

.reporte-card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}

.form-mini {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.form-mini input {
  width: 80px;
  padding: 4px;
  text-align: center;
}

.btn-ver {
  background: #00994d;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 8px;
  transition: background 0.2s;
}

.btn-ver:hover {
  background: #007a3d;
}

.alerta {
  background: #e0ffe0;
  color: #006633;
  padding: 10px;
  border: 1px solid #00994d;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
}

.btn-mail {
  background: #cc0000;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-mail:hover {
  background: #a30000;
}

.container {
    padding: 30px;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 25px;
}

.ficha-usuario {
    background: #fff;
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.completo {
    color: green;
    font-weight: bold;
}

.pendiente {
    color: red;
    font-weight: bold;
}

.btn-mail {
    background: #ff9800;
    border: none;
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-volver {
    display: inline-block;
    margin-top: 25px;
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
}

.exito {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
}

