/* Ocultar Checkbox */
#btn-menu {
  display: none;
}

/* Variables de Color y Estilos */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #eb3d00;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --border-color: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: transform 0.3s ease;
}

.logo-icon.sm {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.logo:hover .logo-icon {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.brand-subtitle {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.botonmenu label {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.botonmenu label:hover {
  background: #e2e8f0;
  color: var(--primary);
}

/* ===== NAV ESCRITORIO ===== */
.navweb {
  display: flex;
  align-items: center;
}

.linksnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.linksnav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.25s ease;
}

.linksnav a:hover {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
}

.linksnav a.active {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.12);
}

/* ===== BOTÓN CTA ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 99px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-cta i {
  font-size: 12px;
  transition: transform 0.2s ease;
}

.btn-cta:hover i {
  transform: translateX(3px);
}

/* ===== OVERLAY Y PANEL LATERAL ===== */
.directorio-menu {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

#btn-menu:checked ~ .directorio-menu {
  opacity: 1;
  visibility: visible;
}

.dire-menu {
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-sizing: border-box;
}

#btn-menu:checked ~ .directorio-menu .dire-menu {
  transform: translateX(0);
}

/* Cabecera del Panel */
.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.menu-brand {
  font-weight: 800;
  font-size: 16px;
  color: var(--text-dark);
}

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: #e2e8f0;
  color: var(--text-dark);
}

/* Enlaces del Panel */
.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  flex: 1;
}

.menu-nav a, .dropdown-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.menu-nav a i, .dropdown-btn i {
  color: var(--text-muted);
  width: 20px;
  font-size: 16px;
}

.menu-nav a:hover, .dropdown-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.menu-nav a:hover i, .dropdown-btn:hover i {
  color: var(--primary);
}

/* Dropdown */
.dropdown-group {
  width: 100%;
}

.dropdown-btn {
  justify-content: space-between;
}

.dropdown-links {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding-left: 32px;
  margin-top: 4px;
}

.dropdown-group:hover .dropdown-links {
  display: flex;
}

.dropdown-links a {
  font-size: 14px;
  padding: 10px 14px;
  color: var(--text-muted);
}

/* Footer del Panel */
.menu-footer {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #10b981;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease;
}

.btn-whatsapp:hover {
  background: #059669;
}

/* Responsive */
@media (max-width: 991px) {
  .navweb {
    display: none;
  }
}

@media (max-width: 576px) {
  .header-right {
    display: none;
  }
}