/* --- RESET Y BASE --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #1d1d1f;
  background: #f5f5f7;
}

/* --- MENÚ APPLE --- */
.menu-bar {
  width: 100%;
  left: 0; right: 0; top: 0;
  position: sticky;
  background: rgba(24,24,24,0.8);
  color: #fff;
  box-shadow: 0 2px 8px #0001;
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  box-sizing: border-box;
}
.logo {
  font-size: 2em;
  color: #fff;
  text-decoration: none;
  font-family: 'San Francisco', 'Segoe UI', 'Arial', sans-serif;
  letter-spacing: 2px;
  margin-right: 32px;
  padding-left: 8px;
}
.menu-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'San Francisco', 'Segoe UI', 'Arial', sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.menu-link:hover,
.menu-link:focus {
  background: #fff2;
  color: #00b4ff;
}
.menu-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: 0;
  padding-right: 0;
}
.menu-icons a,
.menu-icons a i {
  color: #fff !important;
  font-size: 1.2rem;
  transition: color 0.2s;
}
.menu-icons a:hover,
.menu-icons a:focus,
.menu-icons a:active {
  color: #00b4ff !important;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  margin-left: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover,
.hamburger:focus {
  background: #fff2;
  color: #00b4ff;
}

/* --- MENÚ MÓVIL --- */
#appleMobileMenu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 80vw;
  max-width: 280px;
  height: 100vh;
  background: rgba(24,24,24,0.92);
  color: #fff;
  z-index: 200;
  box-shadow: 2px 0 16px #0002;
  transform: translateX(-100%);
  transition: transform 0.3s;
  flex-direction: column;
  padding-top: 12px;
  backdrop-filter: blur(8px);
}
#appleMobileMenu.open {
  display: flex;
  transform: translateX(0);
}
#appleMobileMenu .mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}
#appleMobileMenu .menu-link {
  font-size: 1.1rem;
  padding: 10px 0;
  border-radius: 0;
  border-bottom: 1px solid #222;
}
#closeMobileMenu {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.7rem;
  position: absolute;
  top: 6px;
  right: 10px;
  cursor: pointer;
  z-index: 10;
}
#menuOverlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #0007;
  z-index: 150;
  opacity: 0;
  transition: opacity 0.3s;
}
#menuOverlay.active {
  display: block;
  opacity: 1;
}
body.menu-open {
  overflow: hidden;
}

/* Responsive: menú móvil */
@media (max-width: 900px) {
  .menu-bar {
    height: 44px;
    min-height: 44px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .logo {
    font-size: 1.3em;
    margin-right: 12px;
    height: 44px;
  }
  .menu-links {
    display: none;
  }
  .menu-icons {
    gap: 8px;
    margin-right: 0;
    padding-right: 0;
  }
  .hamburger {
    display: block;
    font-size: 1.5em;
    margin-left: 8px;
  }
  #appleMobileMenu {
    width: 90vw;
    max-width: 280px;
    padding-top: 12px;
  }
  .mobile-menu-inner {
    padding: 12px;
    gap: 10px;
  }
}

/* --- SLIDER HERO --- */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  background: #f5f5f7;
}
.hero-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
/* Elimina overlay oscuro global */
.hero-overlay {
  display: none !important;
}
.hero-content {
  position: relative;
  z-index: 4;
  color: #fff;
  text-align: center;
  padding: 2em 1em;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  /* Fondo semitransparente solo para el texto */
  background: rgba(24,24,24,0.55);
  border-radius: 18px;
  box-shadow: 0 2px 16px #0003;
  display: inline-block;
}
.hero-content .logo-apple {
  display: none !important; /* Oculta la manzana en el slide */
}
.hero-content h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin: 0.2em 0 0.3em 0;
  letter-spacing: -2px;
}
.hero-content p {
  font-size: 1.3em;
  font-weight: 300;
  margin: 0;
}
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-dot {
  width: 12px;
  height: 12px;
  background: #fff8;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  display: inline-block;
  margin: 0;
  box-shadow: 0 1px 4px #0002;
}
.slider-dot.active {
  background: #fff;
  transform: scale(1.15);
}

/* --- TARJETAS DE SERVICIOS --- */
.servicios-grid {
  max-width: 1100px;
  margin: 2em auto;
  padding: 0 1em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5em;
}
.servicio-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.servicio-card:hover {
  transform: translateY(-4px);
}
.servicio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.servicio-content {
  padding: 1.5em;
}
.servicio-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 0.8em;
  color: #1d1d1f;
}
.servicio-desc {
  color: #555;
  margin-bottom: 1.5em;
}
.servicio-btn {
  background: #0071e3;
  color: #fff;
  border: none;
  padding: 0.8em 2em;
  border-radius: 24px;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.servicio-btn:hover {
  background: #005bb5;
}

/* --- FORMULARIOS --- */
.form-container {
  max-width: 600px;
  margin: 2em auto;
  background: #fff;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.form-group {
  margin-bottom: 1.5em;
}
.form-label {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 500;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8em;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9em;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0071e3;
}
.submit-btn {
  background: #0071e3;
  color: #fff;
  padding: 0.8em 2em;
  border: none;
  border-radius: 24px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-btn:hover {
  background: #005bb5;
}

/* --- CARDS Y PANELES CENTRADOS --- */
.panel-container, .card-centered, .diagnostico-card {
  max-width: 600px;
  margin: 2.5em auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #0002;
  padding: 2.2em 1.5em;
  text-align: center;
}

@media (max-width: 700px) {
  .panel-container, .card-centered, .diagnostico-card {
    max-width: 98vw;
    padding: 1.2em 0.5em;
  }
}

/* --- BOTONES Y FORMULARIOS MODERNOS --- */
input[type="text"], input[type="number"], input[type="color"], select, textarea {
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  padding: 0.7em 1em;
  font-size: 1em;
  margin-bottom: 0.7em;
  background: #f7f7fa;
  transition: border 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #0071e3;
  outline: none;
}
button, .btn-edit, .btn-delete, .submit-btn {
  border-radius: 24px;
  padding: 0.7em 2em;
  font-size: 1em;
  font-weight: 600;
  border: none;
  background: #1976d2;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
button:hover, .btn-edit:hover, .submit-btn:hover {
  background: #1251a3;
}
.btn-delete {
  background: #e53935;
}
.btn-delete:hover {
  background: #b30000;
}

/* --- SEPARADORES Y BADGES EN MENÚ --- */
.menu-separator {
  height: 1px;
  background: #fff3;
  margin: 0.5em 0;
  border-radius: 2px;
}
.menu-badge {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 0.8em;
  border-radius: 8px;
  padding: 2px 8px;
  margin-left: 6px;
  font-weight: 600;
}

/* --- TABLAS Y OTROS --- */
.dark-table {
  background: #181c23;
  color: #f1f1f1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px #0003;
}
.dark-table th, .dark-table td {
  border: none;
  padding: 10px 8px;
}
.dark-table th {
  background: #23272f;
  color: #fff;
  font-weight: 600;
}
.dark-table tr:nth-child(even) {
  background: #20242b;
}
.dark-table tr:nth-child(odd) {
  background: #181c23;
}
.slider-thumb {
  max-width: 60px;
  border-radius: 6px;
  box-shadow: 0 2px 8px #0002;
}
.btn-edit, .btn-delete {
  padding: 4px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 0 2px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-edit {
  background: #0071e3;
  color: #fff;
}
.btn-edit:hover {
  background: #005bb5;
}
.btn-delete {
  background: #e00;
  color: #fff;
}
.btn-delete:hover {
  background: #b30000;
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.badge-success {
  background: #1db954;
  color: #fff;
}
.badge-danger {
  background: #e00;
  color: #fff;
}
.promo-preview {
  font-weight: bold;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  background: #23272f;
}

/* --- DROPDOWN REPARACIONES --- */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown > .menu-link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(24,24,24,0.98);
  min-width: 200px;
  box-shadow: 0 8px 32px #0004;
  border-radius: 12px;
  z-index: 999;
  top: 100%;
  left: 0;
  flex-direction: column;
  padding: 10px 0;
}
.dropdown-content .menu-link {
  color: #fff;
  padding: 12px 22px;
  border-radius: 0;
  font-size: 1.05em;
  border-bottom: 1px solid #222;
  display: block;
}
.dropdown-content .menu-link:last-child {
  border-bottom: none;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: flex;
}
.dropdown > .menu-link i {
  font-size: 0.9em;
  margin-left: 4px;
}

/* --- MENÚ ADMINISTRADOR (admin_menu.php) --- */
.admin-menu {
  width: 220px;
  min-height: 100vh;
  background: #181c23;
  color: #fff;
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 16px #0003;
}
.admin-menu .admin-logo {
  font-size: 2em;
  font-weight: bold;
  padding: 1.2em 1em 0.5em 1em;
  color: #00b4ff;
  letter-spacing: 2px;
  text-align: left;
}
.admin-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.admin-menu li {
  margin: 0;
}
.admin-menu a {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding: 1em 1.5em;
  font-size: 1.05em;
  border-left: 4px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  gap: 10px;
}
.admin-menu a:hover,
.admin-menu a.active {
  background: #23272f;
  color: #00b4ff;
  border-left: 4px solid #00b4ff;
}
.admin-menu i {
  font-size: 1.2em;
  margin-right: 8px;
}
@media (max-width: 900px) {
  .admin-menu {
    position: static;
    width: 100vw;
    min-height: unset;
    flex-direction: row;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }
  .admin-menu ul {
    display: flex;
    flex-direction: row;
    width: 100vw;
    overflow-x: auto;
  }
  .admin-menu li {
    flex: 1;
  }
  .admin-menu a {
    padding: 1em 0.7em;
    font-size: 1em;
    border-left: none;
    border-bottom: 3px solid transparent;
    justify-content: center;
  }
  .admin-menu a.active,
  .admin-menu a:hover {
    border-bottom: 3px solid #00b4ff;
    background: #23272f;
    color: #00b4ff;
  }
  .admin-menu .admin-logo {
    display: none;
  }
}
.toast {
  position: fixed;
  top: 30px;
  right: 30px;
  background: #23272f;
  color: #fff;
  padding: 1em 2em;
  border-radius: 12px;
  box-shadow: 0 4px 24px #0004;
  font-size: 1.1em;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.7s;
}
.toast.success { background: #1db954; }
.toast.error { background: #e53935; }
.btn-pdf {
  background-color: #d32f2f;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: background-color 0.3s ease;
}

.btn-pdf:hover {
  background-color: #b71c1c;
}.permiso-usuario {
  display: flex;
  align-items: center;
  gap: 1.5em;
  margin-bottom: 1em;
}
.permiso-usuario label {
  margin: 0;
  font-weight: normal;
}
.permiso-usuario input[type="checkbox"] {
  margin-right: 6px;
}
.permiso-usuario input[type="radio"] {
  margin-right: 4px;
}
.success-message {
  color: #27ae60;
  font-size: 1.2em;
  margin-bottom: 16px;
}
.icon-check {
  font-size: 2em;
  vertical-align: middle;
}
.ticket-number {
  font-size: 1.3em;
  color: #2d3436;
  font-weight: bold;
}
.qr-container img {
  border: 2px solid #eee;
  border-radius: 8px;
  margin: 16px 0 8px 0;
  width: 180px;
  height: 180px;
}
.qr-hint {
  font-size: 0.9em;
  color: #636e72;
}
.summary {
  text-align: left;
  margin: 24px 0;
}
.summary ul {
  list-style: none;
  padding: 0;
}
.summary li {
  margin-bottom: 6px;
}
.photo-preview img {
  max-width: 100px;
  border-radius: 8px;
  margin-top: 8px;
}
.btn-primary {
  background: #1976d2;
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover {
  background: #1565c0;
}
.confirm-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  padding: 32px 24px;
  max-width: 420px;
  margin: 32px auto;
  text-align: center;
}

/* --- menu tyni--- */
.page-content h1, .page-content h2, .page-content p, .page-content ul, .page-content img {
  /* Tus estilos para títulos, párrafos, listas, imágenes, etc. */
  margin-bottom: 1rem;
  color: #1d1d1f;
  line-height: 1.5;
}

.page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Paginación Bootstrap personalizada */
.pagination {
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  border-radius: 0.375rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.pagination .page-item {
  margin: 0 0.25rem;
}

.pagination .page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  color: #0d6efd;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease-in-out;
}

.pagination .page-link:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #0a58ca;
}

.pagination .page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  cursor: default;
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Botones de acción en lista */
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.25rem;
  margin-right: 0.25rem;
}

.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
}

.btn-outline-success {
  color: #198754;
  border-color: #198754;
}

.btn-outline-success:hover {
  background-color: #198754;
  color: #fff;
}

.btn-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}

.btn-outline-danger:hover {
  background-color: #dc3545;
  color: #fff;
}

.btn-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  color: #fff;
}

/* CATALOGO PRODUCTOS  */
.catalogo {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.producto {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  width: 220px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}

.producto:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.producto img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.producto h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.producto p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
}

.producto strong {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.boton {
  background-color: black;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.boton:hover {
  background-color: #333;
}

.badges {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-apple {
  background-color: #d1e7dd;
  color: #0f5132;
}

.badge-original {
  background-color: #cfe2ff;
  color: #084298;
}

/* Menú principal */
.main-nav {
  background-color: #fff;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu-item {
  /* Puedes agregar estilos para cada item */
}

.menu-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu-link:hover {
  color: #007bff; /* color azul para hover */
}

/* Footer */
.main-footer {
  background-color: #f8f9fa;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #666;
}
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 10px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-weight: 700;
  font-size: 1.5rem;
  color: #000;
  text-decoration: none;
}

.main-nav .menu-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-item {}

.menu-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu-link:hover {
  color: #007bff;
}

/* Opciones destino URL o página form pilas  */
#destination_url,
#destination_page {
  transition: opacity 0.3s ease;
}

/* Puedes agregar más estilos para mejorar el diseño */

/* Estilos para páginas públicas 

.page-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #f5f5f7;
}

.page-container h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-content {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
}

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
} */


