/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #F8F7F4; /* Marfil suave */
  color: #2F3E46; /* Azul grisáceo profundo */
}

.header {
  padding: 2rem 1rem;
  background-color: #000000; /* Negro */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav a {
  text-decoration: none;
  color: #F8F7F4; /* Texto claro sobre fondo negro */
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

.hero {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

@media(min-width: 768px) {
  .hero {
    flex-direction: row;
    text-align: left;
  }
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
}

.cta-button {
  display: inline-block;
  background-color: #FF8552; /* Naranja coral */
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #e96f3c;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.registro-section {
  background-color: #4BA3C3; /* Azul cielo */
  color: white;
  padding: 3rem 1rem;
  text-align: center; /* Texto centrado */
  margin: 0rem 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra contenido en eje horizontal */
  justify-content: center; /* Centra contenido en eje vertical si hay altura */
}

.registro-section h2,
.registro-section p {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.1;
}

.registro-section p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn-registro {
  display: inline-block;
  background-color: #FF8552; /* Naranja coral */
  color: white;
  padding: 0.75rem 2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  text-align: center;
}

.btn-registro:hover {
  background-color: #e96f3c;
}

/* Corrección para centrar texto dentro del container de registro-section */
.registro-section .container {
  max-width: 600px;
  margin: 0 auto;
  display: block; /* Se quita flex para centrar el contenido */
  text-align: center;
}

.registro-section .container p {
  font-size: 1.4rem; /* Aumenta el tamaño de los párrafos */
}

/* Estilos para formulario de registro */
form.register-form {
  max-width: 400px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(0 0 0 / 0.1);
  font-family: 'Inter', sans-serif;
  color: #2F3E46;
}

.register-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.register-form button {
  background-color: #FF8552; /* Naranja coral */
  color: white;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
}

.register-form button:hover {
  background-color: #e96f3c;
}

.register-form .errors {
  background-color: #ffdddd;
  border-left: 6px solid #f44336;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
}

.register-form .success {
  background-color: #ddffdd;
  border-left: 6px solid #4CAF50;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
}

.titulo-registro {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 2rem;
  margin-top: 5rem;
}
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="tel"],
.register-form input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.pasos-container {
  text-align: center;
}

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.paso {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  position: relative;
  transition: transform 0.3s ease;
}

.paso:hover {
  transform: translateY(-5px);
}

.numero-paso {
  display: inline-block;
  background-color: #FF8552;
  color: white;
  font-weight: bold;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  user-select: none;
}

/*Beneficios*/
.beneficios-section {
  background-color: #F0F4F8; 
  padding: 4rem 1rem;
  color: #2F3E46;
  font-family: 'Inter', sans-serif;
}

.beneficios-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Título a la izquierda */
.titulo-beneficios {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin: 0;
  flex: 1 1 250px; /* ocupa espacio fijo pero flexible */
  text-align: left;
  color: #000;
  min-width: 250px; /* que no se haga muy chico */
}

/* Lista de beneficios a la derecha */
.beneficios-lista {
  flex: 2 1 600px; /* ocupa el resto del espacio */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: left;
}

.beneficio h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #FF8552;
}

.beneficio p {
  font-size: 1rem;
  line-height: 1.5;
  color: #2F3E46;
}

/* Contacto */
.contacto-section {
  background-color: #F0F4F8;
  padding: 3rem 1rem;
  color: #2F3E46;
  font-family: 'Inter', sans-serif;
  
  /* Flex para centrar todo */
  display: flex;
  justify-content: center; /* centrar horizontal */
  align-items: center;     /* centrar vertical */
  flex-direction: column;  /* contenido en columna */
  min-height: 100vh;       /* altura mínima para centrar verticalmente */
  box-sizing: border-box;
}

.contacto-container {
  max-width: 600px;
  width: 100%;
  /* Ya no hace falta margin auto porque flexbox lo centra */
}

.titulo-contacto {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0;
  padding: 1.8rem 0;
  color: #fff;
  background-color: #4BA3C3;
  text-align: center;
  width: 100%;
  border-radius: 8px 8px 0 0;
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: #f7f9fa;
  padding: 2rem;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #4BA3C3;
  outline: none;
}

.btn-enviar {
  background-color: #4BA3C3;
  color: #fff;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
  margin-top: 1rem;
}

.btn-enviar:hover {
  background-color: #3a8bb2;
}

/* Responsive: en móviles todo en columna */
@media (max-width: 480px) {
  .contacto-container {
    padding: 0 1rem;
  }
}

/* Footer */
footer {
  background-color: #000000;
  padding: 30px 0;
  text-align: center;
  font-family: 'Inter', sans-serif;
  color: #fff;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #4BA3C3;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.footer-nav a:hover::after {
  transform: scaleX(1);
}

/* DASHBOARD GENERAL */
.dashboard {
  padding: 40px 0;
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
}

.dashboard h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* DATOS PERSONALES */
.datos-personales {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.datos-personales h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #4BA3C3;
}

.datos-box p {
  font-size: 1rem;
  margin: 10px 0;
  color: #555;
}

/* SECCIÓN DE CARRITOS */
.carritos-section {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.carritos-section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #4BA3C3;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

.form-group select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.carritos-disponibles h3 {
  margin-top: 20px;
  color: #FF8552;
  font-weight: 600;
  font-size: 1.2rem;
}

.carritos-disponibles ul {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

.carritos-disponibles li {
  background-color: #f0f0f0;
  padding: 12px 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

/* BOTÓN LOGOUT */
.btn-logout {
  background-color: #FF8552;
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #e46b3d;
}

.error-message {
  color: red;
  margin-top: 10px;
  font-weight: bold;
}

/* ==================== */
/* ESTILOS ADMINISTRADOR */
/* ==================== */

.admin-container {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tabla de establecimientos */
#tabla-establecimientos {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#tabla-establecimientos thead {
  background-color: #2F3E46;
  color: white;
}

#tabla-establecimientos th {
  padding: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

#tabla-establecimientos td {
  padding: 0.8rem 1rem;
  background-color: white;
  border-bottom: 1px solid #F0F4F8;
}

#tabla-establecimientos tr:last-child td {
  border-bottom: none;
}

/* Estado del establecimiento */
.estado-activo {
  color: #28a745;
  font-weight: 600;
}

.estado-inactivo {
  color: #dc3545;
  font-weight: 600;
}

/* Botones de acción */
.acciones-botones {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-activar, 
.btn-inactivar, 
.btn-modificar {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-activar {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.btn-activar:hover {
  background-color: #28a745;
  color: white;
}

.btn-inactivar {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.btn-inactivar:hover {
  background-color: #dc3545;
  color: white;
}

.btn-modificar {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.btn-modificar:hover {
  background-color: #ffc107;
  color: #2F3E46;
}

/* Responsive para tabla */
@media (max-width: 768px) {
  .acciones-botones {
    flex-direction: column;
  }
  
  #tabla-establecimientos {
    font-size: 0.9rem;
  }
  
  #tabla-establecimientos th, 
  #tabla-establecimientos td {
    padding: 0.6rem;
  }
}

/* Estilos para DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  margin: 0 0.2rem;
  border: 1px solid #F0F4F8;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #4BA3C3;
  color: white !important;
  border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #F0F4F8;
  border: 1px solid #4BA3C3;
  color: #2F3E46 !important;
}

/* ==================== */
/* NUEVOS ESTILOS PARA TARJETAS DE SEDES Y CARRITOS */
/* ==================== */

/* Contenedor de tarjetas */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Estilo base para tarjetas */
.card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  background: white;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

/* Efecto hover para tarjetas */
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #4BA3C3;
}

/* Títulos dentro de tarjetas */
.card h3 {
  margin: 0 0 10px 0;
  color: #2F3E46;
  font-family: 'Poppins', sans-serif;
}

/* Texto dentro de tarjetas */
.card p {
  margin: 0;
  color: #666;
  font-size: 0.9em;
}

/* Estados de disponibilidad */
.available {
  border-left: 4px solid #4CAF50;
}

.occupied {
  border-left: 4px solid #F44336;
}

/* Botón de selección */
.btn-select {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #4BA3C3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
}

.btn-select:hover {
  background-color: #3a8bb2;
}

/* Botón para volver */
.back-button {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
  color: #4BA3C3;
  font-weight: 600;
  gap: 5px;
}

.back-button:hover {
  text-decoration: underline;
}

/* Clase para ocultar elementos */
.hidden {
  display: none;
}

/* Indicadores de estado */
.status {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.status-available {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.status-occupied {
  background-color: #ffebee;
  color: #c62828;
}

/* Responsive para tarjetas */
@media (max-width: 600px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}

/* mensajes de error login.php */
.input-error {
  border: 1px solid #ff4d4d;
}

.error-message {
  color: #ff4d4d;
  font-size: 0.9rem;
  margin-top: 4px;
}

/*Estilos para formulario crear sede */
/* Ajustes visuales y alineación */
.form-establecimiento {
  max-width: 1100px;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: left;
}


.form-establecimiento .form-group label {
  font-weight: 600;
  color: #2F3E46;
  margin-bottom: 0.4rem;
  display: block;
}

.form-establecimiento input[type="text"],
.form-establecimiento input[type="number"],
.form-establecimiento input[type="time"] {
  width: 100%;
  height: 45px;
  line-height: 1.2;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1.8px solid #ccc;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-establecimiento input:focus {
  border-color: #4BA3C3;
  box-shadow: 0 0 0 3px rgba(75, 163, 195, 0.2);
  outline: none;
}

.form-row,
.form-row-single {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1 1 48%;
  min-width: 0;
}

.form-row-single .form-group {
  flex: 1 1 40%;
  min-width: 200px;
}

.form-establecimiento button.btn-registro {
  margin-top: 1rem;
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 10px;
}

/* Agrega esto al final de tu CSS existente */
.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.registro-section {
  flex: 1; /* Hace que esta sección ocupe todo el espacio disponible */
  margin: 0; /* Elimina márgenes que podrían causar el espacio */
}

/* Ajustes específicos para el formulario de asignación */
.form-asignar {
  max-width: 400px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  color: #2F3E46;
}

.form-asignar label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2F3E46;
}

.form-asignar input[type="text"] {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

body.fondo-registro {
  background-color: #4BA3C3;
}

body.fondo-registro .titulo-registro {
  color: white;
}
.registro-section {
  min-height: 75vh;
}

body#modifyuser {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
}

body#modifyusersuperadmin {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main.container {
  flex: 1;
}

.header .nav ul li a,
.footer-nav a {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Banner tipo hero pantalla completa */
.banner {
  width: 100vw;
  height: 100vh; /* ocupa toda la altura de la ventana */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* cubre el espacio sin deformarse */
}

/* Contenido centrado encima del hero */
.banner {
  position: relative;
  overflow: hidden; /* evita que algo sobresalga */
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Negro semitransparente */
  z-index: 1; /* debajo del texto */
}

/* Tu contenido original SIN cambios */
.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FF8552;
  text-align: center;
  max-width: 90%;
  z-index: 2; /* encima del overlay */
}

.banner-content h1 {
  font-size: 5rem;
  font-weight: 700;
}

.banner-content p {
  font-size: 1.2rem;
  margin: 1rem 0;
}

.banner-content .btn-hero {
  padding: 0.8rem 1.5rem;
  background: #0099ff;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.banner-content .btn-hero:hover {
  background: #007acc;
}
