/* ==================== CORE VISUAL SYSTEM ==================== */
:root {
  /* Backgrounds */
  --bg-page: #FFF9F2;
  --bg-card: #FFFFFF;
  --bg-section: rgba(255, 244, 232, 0.6);
  --bg-overlay: rgba(255, 255, 255, 0.95);
  
  /* Text */
  --text-primary: #232323;
  --text-secondary: #353535;
  --text-muted: #353535;
  
  /* Borders */
  --border-primary: #999999;
  --border-input: #999999;
  --border-input-focus: #4D4D4D;
  --border-light: rgba(153, 153, 153, 0.3);
  
  /* Accent Colors - Limited Use */
  --accent-purple-400: #987D9C;
  --accent-purple-200: #F9E8FA;
  --accent-blue-400: #768597;
  --accent-blue-200: #E4EDF8;
  --accent-orange-400: #BCA182;
  --accent-orange-200: #FEEFDC;
  --accent-pink-200: #FCC9C7;
  --accent-green-200: #b8d1ba;
  --accent-grey-200: #E9E1E1;
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(0, 0, 0, 0.1);
  
  /* Hero Gradients */
  --gradient-hero-warm: linear-gradient(
    rgba(252, 202, 199, 1) 0%,
    rgba(253, 215, 197, 0.8) 25%,
    rgba(254, 241, 229, 0.6) 50%,
    rgba(255, 250, 243, 0.8) 75%,
    rgba(252, 202, 199, 1) 100%
  );
  
  --gradient-hero-subtle: linear-gradient(180deg,
    rgba(252, 202, 199, 0.95) 0%,
    rgba(253, 215, 197, 0.8) 40%,
    rgba(252, 202, 199, 1) 100%);
}

/* ==================== GLOBAL STYLES ==================== */
body {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ==================== HEADER NAVIGATION ==================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  min-height: 80px;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo {
  height: 2.5rem;
  width: auto;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.user-name {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}

.btn-logout {
  background: transparent;
  color: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-logout:hover {
  background: #dc2626;
  color: white;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
  background: var(--text-primary);
  color: white;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  font-family: 'SF Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--text-secondary);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  padding: 0.75rem 1.5rem;
  font-family: 'SF Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  background: var(--gradient-hero-warm);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
  font-family: 'SF Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.hero-cta .btn-secondary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.free-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ==================== PLANS SECTION ==================== */
.plans-section {
  padding: 5rem 2rem;
  background: var(--bg-page);
}

.section-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.plan-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.plan-card.featured {
  background: var(--accent-purple-200);
  border: 2px solid var(--accent-purple-400);
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.plan-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.plan-price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.plan-features li {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* ==================== LOCATIONS SECTION ==================== */
.locations-section {
  padding: 5rem 2rem;
  background: var(--bg-section);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 3rem;
}

.location-card {
  background: var(--bg-card);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.location-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.location-icon {
  font-size: 1.5rem;
  color: var(--text-primary);
}

.location-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 998;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.875rem;
  opacity: 0.8;
  line-height: 1.8;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .header-nav {
    padding: 1rem;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .nav-menu {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
  
  .nav-link,
  .user-name {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  
  .brand-name {
    font-size: 1.25rem;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-logout {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    width: 100%;
  }
  
  .hero-section {
    padding: 10rem 1.5rem 3rem;
    min-height: 85vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    max-width: 300px;
  }
  
  .plans-section,
  .locations-section {
    padding: 3rem 1.5rem;
  }
  
  .plans-grid,
  .locations-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.75rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
}
/* Estilos para el Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    right: 0; /* Alinea el menú a la derecha para que no se salga de la pantalla */
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #007bff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle {
    cursor: pointer;
}

/* Línea separadora dentro del menú */
.dropdown-content hr {
    margin: 5px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Ajuste para el nombre de usuario */
.user-name {
    margin-right: 10px;
    font-weight: bold;
    color: #555;
}