/* ========================================================
   Directorio Comercial Nagua & María Trinidad Sánchez
   Hoja de estilos principal
   ======================================================== */

:root {
  --color-primary: #0d7d7a;      /* turquesa caribeño */
  --color-primary-dark: #095f5d;
  --color-accent: #f5871f;       /* coral/naranja atardecer */
  --color-accent-dark: #d66e0d;
  --color-sand: #fdf3e2;         /* arena */
  --color-navy: #113b4c;         /* azul profundo */
  --color-whatsapp: #25D366;
  --color-vip: #b8860b;          /* dorado VIP */
  --shadow-card: 0 6px 18px rgba(17, 59, 76, 0.10);
  --shadow-card-hover: 0 14px 30px rgba(17, 59, 76, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--color-navy);
  background-color: #f7fbfb;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
}

/* ---------- Utilidades de marca ---------- */
.bg-brand { background-color: var(--color-primary); }
.text-brand { color: var(--color-primary); }
.bg-brand-dark { background-color: var(--color-primary-dark); }
.bg-accent { background-color: var(--color-accent); }
.text-accent { color: var(--color-accent); }
.bg-sand { background-color: var(--color-sand); }

.gradient-hero {
  background: linear-gradient(120deg, rgba(9,95,93,0.92) 0%, rgba(13,125,122,0.85) 45%, rgba(245,135,31,0.75) 100%);
}

.gradient-cta {
  background: linear-gradient(120deg, #f5871f 0%, #d66e0d 100%);
}

/* ---------- Navbar ---------- */
.navbar-shadow { box-shadow: 0 2px 12px rgba(17,59,76,0.08); }

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--color-navy);
  transition: color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 3px;
  background: var(--color-accent);
  border-radius: 4px;
}

/* ---------- Botón WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 50;
  background: var(--color-whatsapp);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
  animation: pulse-wa 2.4s infinite;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  transition: filter .2s ease, transform .15s ease;
}
.btn-whatsapp:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ---------- Tarjetas de negocio ---------- */
.business-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid #eef2f2;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.business-card .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background-color: #e5eeee;
}

/* Bordes especiales según plan */
.business-card.plan-vip { border: 2px solid var(--color-vip); }
.business-card.plan-premium { border: 2px solid var(--color-accent); }

/* ---------- Badges de plan ---------- */
.badge-plan {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-vip { background: linear-gradient(120deg,#f6d365,#b8860b); color: #3a2a00; }
.badge-premium { background: linear-gradient(120deg,#ffd9a8,#f5871f); color: #4a2600; }
.badge-basico { background: #d7ecec; color: var(--color-primary-dark); }
.badge-gratis { background: #eaeaea; color: #555; }

/* ---------- Categorías ---------- */
.category-card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid #eef2f2;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  background: var(--color-sand);
}
.category-card i {
  font-size: 30px;
  color: var(--color-primary);
  margin-bottom: 10px;
}

/* ---------- Planes de precios ---------- */
.plan-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  border: 2px solid #eef2f2;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.plan-card.featured {
  border-color: var(--color-accent);
  position: relative;
  transform: scale(1.03);
}
.plan-card.vip { border-color: var(--color-vip); }
.plan-card ul li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.plan-card ul li i { color: var(--color-primary); margin-top: 3px; }
.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* ---------- Formularios ---------- */
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid #d9e4e4;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,125,122,0.15);
}
label.form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: block; color: var(--color-navy); }

/* ---------- Loader ---------- */
.loader {
  border: 4px solid #e0eded;
  border-top: 4px solid var(--color-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.9s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Estrellas de calificación ---------- */
.stars i { color: #f5a623; }

/* ---------- Scroll top button ---------- */
.scrolltop-btn {
  position: fixed; bottom: 22px; left: 22px; z-index: 50;
  background: var(--color-primary); color:#fff;
  width: 44px; height:44px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 16px rgba(17,59,76,.25);
  opacity:0; pointer-events:none; transition: opacity .25s ease, transform .2s ease;
}
.scrolltop-btn.show { opacity:1; pointer-events:auto; }
.scrolltop-btn:hover { transform: translateY(-3px); }

/* ---------- Misc ---------- */
.section-title {
  font-weight: 700;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content:"";
  position:absolute; left:0; bottom:-8px;
  width: 60px; height: 4px; border-radius: 4px;
  background: var(--color-accent);
}
.chip {
  display:inline-block; padding: 4px 12px; border-radius: 999px;
  background: #eef7f7; color: var(--color-primary-dark); font-size: 13px; font-weight:600;
}

.map-embed {
  width: 100%; height: 260px; border: 0; border-radius: 14px;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Página "Cómo promover el directorio" ---------- */
.plantilla-box {
  background: #f7fbfb;
  border: 1px solid #e0eded;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: var(--color-navy);
  max-height: 260px;
  overflow-y: auto;
}

.canal-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid #eef2f2;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.canal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.timeline-item {
  position: relative;
  padding-left: 52px;
  padding-bottom: 34px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px; top: 40px; bottom: 0;
  width: 2px;
  background: #d9e4e4;
}
.timeline-item:last-child::before { display: none; }
.timeline-num {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: 'Baloo 2', sans-serif;
  box-shadow: 0 4px 10px rgba(13,125,122,0.3);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #eef2f2;
  background: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.checklist-item:hover { background: #f7fbfb; }
.checklist-item input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.checklist-item.done { background: #eefaf3; border-color: #bfe8d1; }
.checklist-item.done span { text-decoration: line-through; color: #7a8a8a; }

.share-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #eef2f2;
  box-shadow: var(--shadow-card);
  font-weight: 700;
  font-size: 13px;
  color: var(--color-navy);
  transition: transform .2s ease, box-shadow .2s ease;
}
.share-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.share-btn i { font-size: 26px; }

/* Volante imprimible: oculto en pantalla normal si no se está imprimiendo */
@media print {
  body * { visibility: hidden; }
  #volante-imprimible, #volante-imprimible * { visibility: visible; }
  #volante-imprimible {
    position: absolute; left: 0; top: 0; width: 100%;
  }
  .no-print { display: none !important; }
}
