body {
    margin: 0;
    padding: 0;
    padding-bottom: 60px; /* Reducido de 90px a 60px por la altura menor del footer */
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url('img/cancha_fondo_03.jpg') no-repeat center center fixed;
    background-size: cover;
    box-sizing: border-box;
}
  
  
  
  .container {
      background-color: rgba(255, 255, 255, 0.85);
      padding: 30px 40px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      width: 100%;
      max-width: 400px; /* 🔥 Ahora el formulario no se pasa de 400px */
      text-align: center;
      margin-bottom: 30px; /* Espacio adicional antes del footer */
  }
  
  h1, h2 {
      margin-bottom: 20px;
  }
  
  label {
      display: block;
      margin: 10px 0 5px;
      text-align: left;
  }
  
  input, select, button {
      width: 100%;
      padding: 10px;
      margin-bottom: 15px;
      border: 1px solid #ccc;
      border-radius: 5px;
      font-size: 14px;
  }

  /* Estilos específicos para el selector de horarios */
  #hora {
      background-color: #f8f9fa;
      border: 2px solid #28a745;
      font-weight: 500;
  }

  #hora:focus {
      outline: none;
      border-color: #20c997;
      box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
  }

  #hora option {
      padding: 8px;
      font-size: 14px;
  }

  #hora option:disabled {
      background-color: #f8d7da;
      color: #721c24;
  }

  /* Información de la cancha seleccionada */
  #infoCanchaSeleccionada {
      background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
      border: 1px solid #c3e6cb;
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 20px;
      text-align: left;
      line-height: 1.5;
  }
  
  button {
      background-color: #28a745;
      color: white;
      font-weight: bold;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
  }
  
  button:hover {
      background-color: #218838;
      transform: translateY(-1px);
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  button:disabled {
      background-color: #6c757d;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
  }

  /* Botón de WhatsApp específico */
  #btnIrAPagar {
      background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
      font-size: 16px;
      padding: 15px;
      border-radius: 8px;
      margin-top: 20px;
  }

  #btnIrAPagar:hover {
      background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
  }
  
  ul {
      padding: 0;
      list-style: none;
      text-align: left;
  }
  
  ul li {
      margin-bottom: 10px;
      background-color: #f8f8f8;
      padding: 10px;
      border-radius: 5px;
  }
  
  /* Navbar */
  .navbar {
      background-color: #252525;
      padding: center;
      text-align: center;
    }
    
    .navbar ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .navbar li {
      display: inline-block;
      margin: 0 20px;
    }
    
    .navbar a {
      color: white;
      text-decoration: none;
      font-weight: bold;
      font-size: 18px;
    }
    
    .navbar a:hover {
      color: orange;
    }
    
    /* Intro section */
    .intro-section {
      max-width: 800px;
      margin: 60px auto;
      text-align: center;
      padding: 20px;
      color: #333;
    }
    
    .logo-img {
      max-width: 250px;
      margin-bottom: 20px;
      border-radius: 10px;
    }
    nav {
      width: 100vw;
      background: rgba(0,0,0,0.8);
      padding: 32px 0 24px 0;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.5rem;
    }
    nav a {
      color: #fff;
      text-decoration: none;
      margin: 0 32px;
      font-weight: bold;
      letter-spacing: 1px;
      transition: color 0.2s;
    }
    nav a:hover {
      color: #ffd700;
    }
    .contenido {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 60vh;
      text-align: center;
      color: #fff;
      text-shadow: 1px 1px 8px #000;
    }
    
    h1 {
      font-size: 3rem;
      margin-bottom: 1rem;
    }
    
    p {
      font-size: 1.3rem;
      max-width: 700px;
      margin-bottom: 0.5rem;
    }
    
    /* Centrado vertical y horizontal para formularios principales */
    .container, .admin-container, .registro-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 80vh;
      margin: 0 auto;
    }
    
    form {
      width: 100%;
      max-width: 400px;
      margin: 0 auto;
    }
    
    /* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  background: #25d366;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: box-shadow 0.2s, background 0.2s;
}
.whatsapp-float:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  background: #1ebe57;
}
.whatsapp-float img {
  width: 36px;
  height: 36px;
}

/* Estilo para tablas de administración */
table.admin-table {
    width: 100%;
    max-width: 1400px;
    min-width: 900px;
    margin: 30px auto;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    font-size: 1.05rem;
}
table.admin-table th, table.admin-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    max-width: 220px;
    word-break: break-word;
}
table.admin-table th {
    background: #252525;
    color: #fff;
    font-weight: bold;
}
table.admin-table tr:nth-child(even) {
    background: #f7f7f7;
}
table.admin-table img {
    display: inline-block;
    max-width: 80px;
    max-height: 60px;
    border-radius: 4px;
    box-shadow: 0 0 2px #333;
    margin: 2px;
}

/* Centrar y mejorar el panel de administración */
.admin-panel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    background: rgba(255,255,255,0.92);
    box-sizing: border-box;
    padding: 40px 0 60px 0;
}

.admin-panel-container h1, .admin-panel-container h2 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 18px;
}

.admin-panel-container table.admin-table {
    margin: 24px auto 36px auto;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.admin-panel-container button {
    display: block;
    margin: 30px auto 0 auto;
}

@media (max-width: 1200px) {
    table.admin-table {
        max-width: 98vw;
        min-width: 600px;
        font-size: 0.95rem;
    }
}

@media (max-width: 800px) {
    .admin-panel-container {
        padding: 10px 0 30px 0;
    }
    table.admin-table {
        min-width: 350px;
        font-size: 0.85rem;
    }
}

/* Quitar fondo blanco de .container solo en admin.html */
body.admin-panel-bg .container {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100vw !important;
}
/* ==================
   Footer Styles - Footer fijo mejorado
   ================== */
   
footer {
  background: rgba(0, 0, 0, 0.8); /* Misma opacidad que el navbar */
  color: #ecf0f1;
  padding: 8px 40px; /* Reducido de 15px a 8px (aprox 30% menos altura) */
  width: 100%; /* Volver al ancho completo */
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0; /* Volver a la posición original */
  z-index: 1000;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 35px; /* Reducido de 50px a 35px (30% menos altura) */
}

.footer-content p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icons a {
  display: inline-block;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-icons img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  /* Removido el filtro para que los iconos mantengan sus colores originales */
  transition: all 0.3s ease;
}

.social-icons a:hover img {
  /* Solo efecto de escala, sin cambio de color */
  transform: scale(1.1);
}

.btn-cancelar {
    background-color: #e74c3c; /* Rojo */
    padding: 5px 10px;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   ESTILOS PARA LA PÁGINA DE INICIO
======================================== */

.contenido {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    margin-top: 20px;
    margin-bottom: 100px; /* Espacio para el footer */
    border: 1px solid #34495e;
}

.contenido h1 {
    text-align: center;
    color: #ecf0f1;
    font-size: 2.8em;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-weight: 700;
}

.descripcion-principal {
    text-align: center;
    font-size: 1.3em;
    color: #bdc3c7;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Sección dual - dos columnas */
.seccion-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.columna-usuario, .columna-propietario {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 50%, #2980b9 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.columna-usuario:hover, .columna-propietario:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.6);
}

.columna-usuario {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #16a085 100%);
    border-left: 5px solid #f1c40f;
}

.columna-propietario {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 50%, #e74c3c 100%);
    border-left: 5px solid #f39c12;
}

.icono-seccion {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.columna-usuario h2, .columna-propietario h2 {
    text-align: center;
    color: #ecf0f1;
    font-size: 2em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: 600;
}

.leyenda-container h3 {
    color: #f8f9fa;
    font-size: 1.4em;
    margin-bottom: 15px;
    border-bottom: 3px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.lista-recomendaciones {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.lista-recomendaciones li {
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.1) 100%);
    margin: 12px 0;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    color: #ecf0f1;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.lista-recomendaciones li:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
}

.tips-usuario, .tips-propietario {
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.2) 100%);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.tips-usuario h4, .tips-propietario h4 {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.tips-usuario ul, .tips-propietario ul {
    list-style: none;
    padding: 0;
}

.tips-usuario li, .tips-propietario li {
    margin: 10px 0;
    padding: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #bdc3c7;
    border-left: 3px solid #f39c12;
    transition: all 0.2s ease;
}

.tips-usuario li:hover, .tips-propietario li:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
}

/* Botones de acción */
.btn-accion {
    display: block;
    text-align: center;
    padding: 18px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.4s ease;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-usuario {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 50%, #d35400 100%);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-usuario:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 50%, #e74c3c 100%);
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.4);
}

.btn-propietario {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 50%, #e74c3c 100%);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.btn-propietario:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #9b59b6 100%);
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
}

/* Sección de acceso rápido */
.acceso-rapido {
    text-align: center;
    margin-top: 50px;
    padding: 35px;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 50%, #1a252f 100%);
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.acceso-rapido h3 {
    color: #ecf0f1;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.botones-rapidos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-rapido {
    display: inline-block;
    padding: 18px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-reservar {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
}

.btn-admin {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 50%, #17a2b8 100%);
}

.btn-rapido:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.btn-reservar:hover {
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

.btn-admin:hover {
    box-shadow: 0 12px 35px rgba(22, 160, 133, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .seccion-dual {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contenido {
        margin: 10px;
        padding: 20px;
    }
    
    .contenido h1 {
        font-size: 2em;
    }
    
    .botones-rapidos {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-rapido {
        width: 200px;
    }
    
    /* Footer responsivo */
    footer {
        padding: 6px 20px; /* Mantener la proporción reducida en móviles */
        width: 100%; /* Ancho completo en móviles también */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        min-height: auto;
    }
    
    .footer-content p {
        font-size: 12px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons img {
        width: 20px;
        height: 20px;
    }
    
    /* Ajustar padding del body en móviles */
    body {
        padding-bottom: 80px; /* Ajustado proporcionalmente */
    }
}

/* =================== ESTILOS PARA TURNOS MANUALES =================== */

/* Formulario de creación de turnos manuales */
.manual-booking-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border-left: 4px solid #e74c3c;
}

.manual-booking-form h4 {
    color: #e74c3c;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.btn-crear-manual {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
}

.btn-crear-manual:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Lista de turnos manuales */
.manual-bookings-list {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.manual-bookings-list h4 {
    color: #3498db;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtros-manual {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.filtros-manual select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-refresh {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-refresh:hover {
    background: #2980b9;
}

/* Tabla de turnos manuales */
#tablaTurnosManuales {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#tablaTurnosManuales th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

#tablaTurnosManuales td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

#tablaTurnosManuales tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Botones de acción en la tabla */
.btn-eliminar-manual {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.btn-eliminar-manual:hover {
    background: #c0392b;
}

/* Indicadores de tipo de turno */
.tipo-manual {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Responsive para turnos manuales */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filtros-manual {
        flex-direction: column;
        align-items: stretch;
    }
    
    #tablaTurnosManuales {
        font-size: 12px;
    }
    
    #tablaTurnosManuales th,
    #tablaTurnosManuales td {
        padding: 8px 4px;
    }
}

/* =================== ESTILOS PARA PANEL DE PROPIETARIOS =================== */

/* Contenido de pestañas para propietarios */
.tab-content {
    display: none;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Formulario de turnos fijos para propietarios */
.btn-crear-fijo {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 48px;
}

.btn-crear-fijo:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Lista de turnos fijos */
.turnos-fijos-list {
    margin-top: 30px;
}

.turnos-fijos-list h4 {
    color: #28a745;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botón de eliminar para propietarios */
.btn-eliminar-fijo {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.btn-eliminar-fijo:hover {
    background: #c82333;
}

/* Estilos para badges de tipo de reserva */
.tipo-reserva-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-normal {
    background: #28a745;
    color: white;
}

.badge-manual {
    background: #e74c3c;
    color: white;
}

/* Mejorar tabla de administración */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.admin-table tbody tr:hover {
    background: #f8f9fa;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* =================== ESTILOS MEJORADOS PARA PESTAÑAS =================== */

/* Pestañas de administración */
.admin-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin: 25px 0;
    border: 2px solid #e9ecef;
}

.admin-tabs .tab-btn {
    flex: 1;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #dee2e6;
}

.admin-tabs .tab-btn:last-child {
    border-right: none;
}

.admin-tabs .tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.admin-tabs .tab-btn.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.admin-tabs .tab-btn.active::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.admin-tabs .tab-btn:hover:not(.active) {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Pestañas del propietario - Mejoradas */
.propietario-tabs {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin: 25px 0;
    border: 2px solid #e9ecef;
}

.propietario-tabs .tab-btn {
    flex: 1;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 14px;
    color: #495057;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid #dee2e6;
}

.propietario-tabs .tab-btn:last-child {
    border-right: none;
}

.propietario-tabs .tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: all 0.3s ease;
}

.propietario-tabs .tab-btn.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.propietario-tabs .tab-btn.active::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.propietario-tabs .tab-btn:hover:not(.active) {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #28a745;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Efectos adicionales para mayor visibilidad */
.admin-tabs, .propietario-tabs {
    position: relative;
}

.admin-tabs::after, .propietario-tabs::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        rgba(0,123,255,0.1), 
        rgba(40,167,69,0.1), 
        rgba(255,193,7,0.1), 
        rgba(220,53,69,0.1));
    border-radius: 17px;
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Indicador de pestaña activa más visible */
.admin-tabs .tab-btn.active::after,
.propietario-tabs .tab-btn.active::after {
    content: '●';
    position: absolute;
    top: 5px;
    right: 10px;
    color: #ffd700;
    font-size: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Indicadores de navegación para mejorar visibilidad */
.admin-tabs::before, .propietario-tabs::before {
    content: '👆 Haz clic en las pestañas para navegar';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #007bff, #28a745);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Hacer más prominente el cursor pointer */
.admin-tabs .tab-btn, .propietario-tabs .tab-btn {
    cursor: pointer !important;
}

.admin-tabs .tab-btn:hover, .propietario-tabs .tab-btn:hover {
    cursor: pointer !important;
}
