/* ==========================================================================
   ESTILOS LOCALES 100% OFFLINE - LA ENTRADA NAGUANAGUA
   ========================================================================== */

/* 1. FUENTES LOCALES (INTER) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* 2. REINICIO GLOBAL & VARIABLES */
:root {
  --color-primary: #059669;       /* Verde Esmeralda */
  --color-primary-dark: #047857;  /* Verde Oscuro */
  --color-secondary: #0f766e;    /* Verde Teal */
  --color-bg-light: #f8fafc;     /* Fondo Claro Slate */
  --color-text-dark: #0f172a;    /* Texto Principal */
  --color-text-muted: #475569;   /* Texto Secundario */
  --color-border: #e2e8f0;       /* Bordes Suaves */
  --color-verde: #1B9C07;       /* Color Verde */
  --color-rojo: #C81309;       /* Color Rojo */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

/* 3. ESTRUCTURA Y MENÚ SUPERIOR FIJO (STICKY NAVBAR) */
.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #d1fae5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Bloques de 3 columnas para centrado simétrico */
.nav-block-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-block-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-block-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

/* Ajuste del Logo */
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.03);
}

/* Enlaces del Menú */
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Botón Destacado */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), #115e59);
  box-shadow: 0 4px 6px rgba(0,0,0,0.12);
}

/* Botón Hamburguesa Móvil */
.mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

/* Menú Desplegable Móvil */
.mobile-dropdown {
  display: none;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem;
}

.mobile-dropdown.active {
  display: block;
}

.mobile-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--color-text-dark);
  border-radius: 0.375rem;
}

.mobile-dropdown a:hover {
  background-color: #ecfdf5;
  color: var(--color-primary);
}

/* 4. MEDIAS QUERIES PARA ADAPTABILIDAD MÓVIL */
@media (max-width: 992px) {
  .nav-block-center {
    display: none; /* Oculta menú de escritorio en pantallas pequeñas */
  }

  .mobile-btn {
    display: block; /* Muestra botón de 3 rayas */
  }

  .btn-primary.desktop-only {
    display: none;
  }
}

/* ==========================================================================
   SECCIONES Y FOOTER (CSS NATIVO OFFLINE)
   ========================================================================== */

/* CONTENEDOR GENERAL */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-padding {
  padding: 4rem 0;
}

/* 1. SECCIÓN HERO / BUSCADOR */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto 2rem auto;
}

.search-box {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.08);
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-input, .search-select {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.search-input:focus, .search-select:focus {
  border-color: var(--color-primary);
}

/* 2. GRID DE CATEGORÍAS (ALINEACIÓN HORIZONTAL Y TAMAÑO REDUCIDO) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Ancho mínimo para que quepa ícono + texto */
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.category-card {
  background: #ffffff;
  padding: 0.6rem 1rem; /* Reducimos el relleno interno vertical */
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  
  /* Flexbox en fila para alineación horizontal */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Espacio entre el ícono y el texto */
  
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.category-card i {
  font-size: 1.1rem; /* Reducimos el tamaño del ícono para equilibrar la altura */
  color: var(--color-primary);
  margin-bottom: 0; /* Eliminamos el margen inferior antiguo */
  display: inline-block;
}

.category-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  white-space: nowrap; /* Evita que el texto salte de línea */
}

/* 3. GRID DEL DIRECTORIO (CARDS DE COMERCIOS) */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0,0,0,0.08);
}

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #e2e8f0;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
  text-transform: uppercase;
}

.badge-free { background: #e0f2fe; color: #0369a1; }
.badge-premium { background: #fef3c7; color: #b45309; }

.badge-open { background: #BEFCBB; color: #1B9C07; }
.badge-close { background: #FCBEBB; color: #C81309; }

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem 0;
}

.card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.card-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* 4. SECCIÓN TURÍSTICA */

.tourism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tourism-bg {
  background: #0f172a;
  color: #ffffff;
  border-radius: 1rem;
  padding: 3rem 2rem;
}

.tourism-bg h2 {
  font-size: 2rem;
  color: #34d399;
  margin-bottom: 1rem;
}

/* 5. TABLA COMPARATIVA PLANES (FREEMIUM) */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.plan-card {
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.plan-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px -5px rgba(5, 150, 105, 0.2);
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  margin: 1rem 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
  font-size: 0.9rem;
}

.plan-features li {
  padding: 0.5rem 0;
  border-bottom: 1px border-subtle;
}

/* 6. FORMULARIO REGISTRO / CONTACTO */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
}

/* 7. FOOTER */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 1.5rem 0;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
}

/* ==========================================================================
   MODAL LIGHTBOX PARA GALERÍA
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85); /* Fondo oscuro semitransparente con desenfoque */
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Regla clave: Máximo 80% de la pantalla, o tamaño real si es menor */
#modalImg {
  max-width: 80vw;  /* Nunca superará el 80% del ancho del monitor */
  max-height: 80vh; /* Nunca superará el 80% de la altura del monitor */
  width: auto;      /* Mantiene su tamaño original si es más pequeña */
  height: auto;     /* Mantiene proporciones reales sin estirarse */
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

/* Botón de cerrar (X) */
.modal-close-btn {
  position: absolute;
  top: -2.5rem;
  right: -0.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--color-primary, #10b981);
  transform: scale(1.15);
}


