:root {
  --primary: rgb(11, 163, 173);
  --primary-dark: rgb(8, 130, 138);
  --primary-light: rgba(11, 163, 173, 0.1);
  --secondary: #f43f5e;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #94a3b8;
  --light-gray: #e2e8f0;
}

/* Estilos base */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Header */
.main-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

/* Logo como texto */
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.zen {
  color: var(--dark);
}

.cita {
  color: var(--primary);
}

/* Enlaces desktop */
.desktop-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.auth-link {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  font-weight: 500;
}

.separator {
  color: var(--gray);
  font-size: 0.95rem;
}

.btn-business {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-business:hover {
  background: var(--primary-dark);
  color: white;
}

/* Menú móvil */


.mobile-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 100;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  justify-content: center;
  align-items: center;
}

.mobile-menu-content ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-content ul li {
  margin: 20px 0;
}

.mobile-menu-content ul li a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu-content ul li a:hover {
  color: #ff6347;
}

/* Menú móvil estilo deslizable */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  transition: right 0.3s ease;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 2rem;
}

.mobile-menu-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-content ul li {
  margin-bottom: 1.5rem;
}

.mobile-menu-content ul li a {
  color: var(--dark);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.mobile-menu-content ul li a:hover {
  color: var(--primary);
}

.close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  z-index: 1001;
}

.no-scroll {
  overflow: hidden;
}

/* Elimina los estilos antiguos del menú móvil */
@media (max-width: 768px) {


  .desktop-links {
    display: none;
  }

  .business-text {
    display: none;
  }

  .btn-business {
    padding: 0.6rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 600px;
  overflow: hidden;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.5) 100%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1200px;
  text-align: center;
  color: white;
  z-index: 3;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Search Components */

.search-input-container {
  display: flex;
  margin-bottom: 1rem;
}

.search-button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-button:hover {
  background: var(--primary-dark);
}

.quick-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.category-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-tag:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Video States */
.active-video {
  opacity: 1;
  z-index: 2;
}

.hidden-video {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.fading-out {
  opacity: 0;
  z-index: 1;
}

/* Sections */
.categories,
.professionals {
  padding: 4rem 0;
}

.professionals {
  background: var(--light);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Cards */

.rating {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-weight: bold;
  color: var(--primary);
}

/* Footer */
.main-footer {
  background: var(--dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  color: white;
  font-size: 1.25rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
}

/* Responsive */

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1000;
  padding: 1rem;
  overflow-y: auto;
}

/* Añadir al final de tu main.css */
.no-scroll {
  overflow: hidden;
}

/* Transición suave para el menú */
.mobile-menu {
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}

.mobile-menu.active {
  visibility: visible;
}

.auth-link i {
  margin-right: 7px;
}

/* Form Section Styles */
.form-section {
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    url('../../../dashboard/assets/img/logo.png') center/cover no-repeat fixed;
  display: block;
  padding: 15rem 0;
  background-color: var(--light);
}

.form-section .container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-size: 1.8rem;
}

/* Auth Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--dark);
}

.form-group input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-hint {
  color: var(--gray);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* Button Styles */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  text-decoration: none;
}

/* .btn-primary:hover {
  background: var(--primary-dark);
} */

.btn-block {
  display: block;
  width: 100%;
}

/* Message Styles */
.message-container {
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

.success-message {
  background: rgba(11, 163, 173, 0.1);
  color: var(--primary-dark);
}

.success-message a {
  margin-top: 1rem;
  display: inline-block;
}

.error-message {
  color: var(--secondary);
  background: rgba(244, 63, 94, 0.1);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  text-align: center;
}

/* Auth Link Styles */
.auth-link-text {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--dark);
}

.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.auth-link:hover {
  color: rgb(11, 163, 173);
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-section .container {
    padding: 1.5rem;
    margin: 0 1rem;
    width: auto;
  }
}

.welcome-text {
  font-weight: 500;
  color: #333;
}

.auth-links .separator {
  margin: 0 8px;
  color: #ccc;
}

/* Ajustes para el menú móvil */
.mobile-menu-content .auth-link {
  display: block;
  padding: 8px 0;
  color: #333;
  text-decoration: none;
}

.forgot-password {
  transition: color 0.2s;
  text-decoration: none;
}

.forgot-password:hover {
  color: #0056b3 !important;
  text-decoration: underline;
}

.dashboard-container {
  display: flex;
  flex-direction: row;
  min-height: 80vh;
}

.sidebar {
  width: 20%;
  background-color: #f7f7f7;
  padding: 20px;
  border-right: 1px solid #ddd;
}

.sidebar .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .menu li {
  margin-bottom: 15px;
}

.sidebar .menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar .menu a:hover {
  color: rgb(11, 163, 173);
}

@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .auth-modal-content {
    width: 90%;
    margin: 10% auto;
  }
}

.menu a.active {
  color: rgb(11, 163, 173);
  font-weight: 600;
  border-left: 4px solid rgb(11, 163, 173);
  background-color: #f9f9f9;
  padding-left: 11px;
  /* compensar el borde */
}

/* Users Management Styles */

.actions {
  white-space: nowrap;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-edit {
  padding: 0.5rem;
  border-radius: 4px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: all 0.2s;
}

.btn-edit {
  background-color: var(--primary);
}

.btn-edit:hover {
  /* background-color: var(--primary-dark); */
}

/* Responsive table */

/* Search box styles */
.search-box {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-button {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-button:hover {
  background: var(--primary-dark);
}

/* Table header links for sorting */

/* Pagination styles */

.pagination {
  display: flex;
  gap: 0.3rem;
}

.page-link {
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--dark);
  border: 1px solid var(--light-gray);
  transition: all 0.2s;
}

.page-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-style: italic;
}

/* Edit User Page Styles */

.btn-cancel {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  background: white;
  color: var(--dark);
  border: 1px solid var(--light-gray);
  text-decoration: none;
  transition: all 0.3s;
}

.btn-cancel:hover {
  background: #f8f9fa;
  border-color: var(--gray);
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-style: italic;
}

/* Estilos para el filtro */

/* Estilos para estados */

/* Estilos para el filtro */

/* Botón de restaurar */

.no-results {
  text-align: center;
  padding: 2rem;
  color: var(--gray);
  font-style: italic;
}

/* Business Management Styles */

/* Responsive table adjustments */

@media (max-width: 768px) {

  .action-buttons {
    flex-direction: column;
    gap: 0.3rem;
  }

  .action-buttons form {
    display: block;
    width: 100%;
  }

  .action-buttons button {
    width: 100%;
  }
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  top: 30%;
  transform: translateY(-50%);
}

.modal-image {
  width: 100%;
  height: auto;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 25px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: #ccc;
}

/* Estilos para los iconos de descarga de apps moviles */
.download-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
  border-radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Badge App Store */
.apple-badge {
  background: #000;
  color: #fff;
}

.badge-icon {
  font-size: 22px;
  margin-right: 8px;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.badge-text span:first-child {
  font-size: 9px;
  margin-bottom: 1px;
  opacity: 0.9;
}

.badge-text span:last-child {
  font-size: 15px;
  letter-spacing: 0.3px;
}

/* Botón menú móvil corregido */
.mobile-menu-button {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  display: none;
  /* Oculto por defecto en escritorio */
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
  .mobile-menu-button {
    display: block;
  }
}

.slider-item {
  color: inherit;
  text-decoration: none;
  display: block;
}

.slider-item:visited {
  color: inherit;
}

.slider-item:hover {
  text-decoration: none;
}

/* Evita heredar color blanco del hero y que el texto “desaparezca” */
#search-results,
#search-results .result-item,
#search-results .result-title,
#search-results .result-sub {
  color: #111827;
  /* gris muy oscuro */
}

/* Layout del resultado: imagen + texto + chevron */
.result-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
}

.result-card:hover {
  background: #f8fafc;
  cursor: pointer;
}

.result-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 36px;
}

.result-info {
  flex: 1 1 auto;
  min-width: 0;
  /* 🔑 evita que flex “coma” el texto */
}

.result-title {
  font-weight: 600;
  line-height: 1.25;
}

.result-sub {
  font-size: 0.92rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 🔑 truncado elegante */
}

.result-cta {
  margin-left: 8px;
  opacity: 0.6;
}

/* Responsive del fondo para móviles */
@media (max-width: 480px) {
  body {
    background-attachment: scroll;
    background-size: cover;
  }
}