/* =========================================================
   GLOBAL STYLES — Dominican To Do
   Diseñado para ser el CSS base del proyecto.
   Solo contiene estructura general, header, footer,
   tipografía, resets y responsive global.
========================================================= */

/* Variables CSS (sobreescritas por el Customizer vía <style id="dttd-custom-colors">) */
:root {
  --color-primary: #0055ff;
  --color-accent:  #99c2ff;
}


/* =========================================================
   RESET + TIPOGRAFÍA BASE
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

/* CONTENEDORES GLOBALES */
.section-container,
.dt-header-inner,
.dt-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}


/* =========================================================
   HEADER GLOBAL
========================================================= */

.dt-header {
  width: 100%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transition: 0.3s ease;
}

.dt-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.dt-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 700;
}

.dt-logo-mark {
  background: #0055ff;
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.dt-logo-text {
  font-size: 1.06rem;
}

/* NAV DESKTOP */
.dt-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.dt-nav a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  transition: 0.2s ease;
}

.dt-nav a:hover {
  color: #0055ff;
}

/* BOTÓN MI VIAJE */
.dt-nav-fav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff3ce;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid #ffe398;
}

.dt-nav-fav i {
  color: #e2a500;
}

/* BOTÓN GUARDAR EN MI VIAJE (header) */
.dttd-header-save-btn {
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  color: #6b7280;
  padding: 6px 9px;
  border-radius: 8px;
  line-height: 1;
  transition: color .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.dttd-header-save-btn:hover {
  background: #fff0f0;
  border-color: #fca5a5;
  color: #ef4444;
}
.dttd-header-save-btn.saved { color: #ef4444; }
.dttd-header-save-btn.saved:hover { color: #dc2626; }

/* Variante en menú mobile: muestra texto */
.dttd-header-save-mobile {
  width: 100%;
  text-align: left;
  font-size: .95rem;
  padding: .55rem .75rem;
  border-radius: 6px;
  gap: .5rem;
  display: flex;
  align-items: center;
}


/* =========================================================
   SELECTOR DE IDIOMA
========================================================= */

.dttd-lang-selector {
  position: relative;
}

.dttd-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #e9efff;
  color: #0055ff;
  border: 1px solid #c5d6ff;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.dttd-lang-btn:hover { background: #d6e4ff; border-color: #a8c0ff; }

.dttd-lang-arrow {
  font-size: .6rem;
  transition: transform .2s;
}
.dttd-lang-btn[aria-expanded="true"] .dttd-lang-arrow {
  transform: rotate(180deg);
}

.dttd-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 6px;
  min-width: 175px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dttd-lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dttd-lang-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .86rem;
  color: #374151;
  text-align: left;
  transition: background .12s;
}
.dttd-lang-opt:hover { background: #f3f4f6; }
.dttd-lang-opt.active { background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.dttd-lang-flag { font-size: 1rem; }
.dttd-lang-check { margin-left: auto; color: #2563eb; font-size: .75rem; }

/* Botón idioma solo ícono (mobile) */
.dttd-lang-btn-mobile {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #374151;
  cursor: pointer;
  padding: 4px 6px;
}

/* Fila de banderas en menú mobile */
.dttd-lang-mobile-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
  margin-top: 4px;
}
.dttd-lang-mobile-btn {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .15s;
}
.dttd-lang-mobile-btn:hover,
.dttd-lang-mobile-btn.active { background: #dbeafe; border-color: #93c5fd; }

/* =========================================================
   NAV MOBILE
========================================================= */

.dt-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dt-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.dt-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: #ffffff;
  border-top: 1px solid #eee;
  position: absolute;
  width: 100%;
  left: 0;
  top: 100%;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.dt-nav-mobile a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 1rem;
}

.dt-nav-mobile.active { display: flex; }


/* =========================================================
   FOOTER GLOBAL — diseño oscuro moderno
========================================================= */

.dt-footer {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  color: #cbd5e1;
  position: relative;
  overflow: hidden;
}

/* Línea decorativa superior con gradiente de color */
.dt-footer-wave {
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #7c3aed 35%, #0891b2 65%, #16a34a 100%);
}

.dt-footer-body { padding: 3.5rem 0 2.5rem; }

/* Grid de columnas */
.dt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

/* Col 1: Marca */
.dt-footer-brand { display: flex; flex-direction: column; gap: 1rem; }

.dt-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.dt-footer-logo-mark {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  padding: 7px 11px;
  border-radius: 10px;
  letter-spacing: .04em;
}
.dt-footer-logo-text {
  color: #f1f5f9;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
}

.dt-footer-tagline {
  color: #94a3b8;
  font-size: .83rem;
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

/* Redes sociales */
.dt-footer-social {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.dtsoc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  font-size: .9rem;
  transition: transform .15s, opacity .15s;
  color: #fff;
}
.dtsoc:hover { transform: scale(1.12); opacity: .85; }
.dtsoc-fb { background: #1877f2; }
.dtsoc-ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.dtsoc-tw { background: #000; }
.dtsoc-tk { background: #000; }
.dtsoc-wa { background: #25d366; }

/* Cols 2 & 3: Nav */
.dt-footer-nav { display: flex; flex-direction: column; gap: .15rem; }

.dt-footer-nav-title {
  color: #f1f5f9;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .75rem;
}
.dt-footer-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #94a3b8;
  text-decoration: none;
  font-size: .85rem;
  padding: .3rem 0;
  transition: color .15s, padding-left .15s;
}
.dt-footer-nav a:hover { color: #e2e8f0; padding-left: 4px; }
.dt-footer-nav a .fa-solid,
.dt-footer-nav a .fa-regular { font-size: .7rem; opacity: .7; flex-shrink: 0; }

/* Col 4: Rate Us */
.dt-footer-rateus { display: flex; flex-direction: column; gap: .5rem; }

.dt-rateus-question {
  color: #94a3b8;
  font-size: .82rem;
  margin: 0 0 .25rem;
  line-height: 1.4;
}
.dt-rateus-stars {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
}
.dt-rateus-star {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  color: #475569;
  font-size: 1.5rem;
  transition: color .12s, transform .1s;
  line-height: 1;
}
.dt-rateus-star:hover,
.dt-rateus-star.active { color: #f59e0b; transform: scale(1.15); }
.dt-rateus-star.voted  { color: #f59e0b; cursor: default; transform: none; }
.dt-rateus-star:disabled { cursor: default; }

.dt-rateus-meta {
  font-size: .78rem;
  color: #64748b;
  margin: 0;
}

/* Bottom bar */
.dt-footer-bottom {
  background: rgba(0,0,0,.25);
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.07);
}
.dt-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}
.dt-footer-bottom p {
  font-size: .78rem;
  color: #64748b;
  margin: 0;
}
.dt-footer-sep { margin: 0 .35rem; color: #334155; }
.dt-footer-credit {
  font-size: .78rem;
  color: #64748b;
}
.dt-footer-credit a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  transition: color .15s;
}
.dt-footer-credit a:hover { color: #bfdbfe; }

/* Responsive footer */
@media(max-width: 1024px) {
  .dt-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .dt-footer-tagline { max-width: 100%; }
}
@media(max-width: 600px) {
  .dt-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .dt-footer-bottom-inner { flex-direction: column; text-align: center; }
  .dt-rateus-star { font-size: 1.75rem; }
}


/* =========================================================
   RESPONSIVE GLOBAL
========================================================= */

@media(max-width: 880px){
  .dt-nav { display: none; }
  .dt-nav-toggle { display: block; }
  .dttd-lang-btn { display: none; }
  .dttd-lang-btn-mobile { display: flex; }
  .dt-nav-mobile.active { display: flex; }
}

/* =========================================================
   WHATSAPP BANNER — Barra fija inferior
========================================================= */
.dttd-wa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--wa-bg, #25d366);
  color: #fff;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.34,1.3,0.64,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
}

.dttd-wa-banner.dttd-wa-visible {
  transform: translateY(0);
}

.dttd-wa-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  flex-wrap: wrap;
}

.dttd-wa-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.dttd-wa-text {
  flex: 1;
  min-width: 180px;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.3;
}

.dttd-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.22);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}

.dttd-wa-cta:hover {
  background: rgba(0,0,0,0.35);
}

.dttd-wa-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px 6px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.dttd-wa-close:hover {
  color: #fff;
}

/* Padding para que el banner no tape el contenido al abrirse */
body.has-wa-banner {
  padding-bottom: 62px;
}

@media (max-width: 600px) {
  .dttd-wa-text { font-size: 0.82rem; }
  .dttd-wa-cta  { padding: 7px 14px; font-size: 0.82rem; }
}

/* =========================================================
   STRIP: CONTRIBUIR VÍA WHATSAPP (antes del footer)
   Aparece en todas las páginas via footer.php
   ========================================================= */

.section-wa-strip {
  background: var(--wa-bg, #25d366);
  padding: 18px 0;
  color: #fff;
}

.wa-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.wa-strip-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.wa-strip-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.wa-strip-left div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wa-strip-left strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.wa-strip-left span {
  font-size: 0.82rem;
  opacity: 0.85;
}

.wa-strip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--wa-bg, #25d366);
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wa-strip-btn:hover {
  opacity: 0.92;
  transform: translateX(3px);
}

.wa-strip-no-num {
  font-size: 0.8rem;
  opacity: 0.75;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .section-wa-strip {
    padding: 16px 0;
  }

  .wa-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .wa-strip-btn {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================================
   SCROLL TO TOP BUTTON
========================================================= */

.dttd-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary, #0055ff);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.dttd-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dttd-scroll-top:hover {
  background: var(--color-accent, #003ecc);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
  .dttd-scroll-top {
    bottom: 18px;
    right: 14px;
    width: 40px;
    height: 40px;
  }
}

/* ── Banner de sugerencia de idioma ─────────────────────────── */
#dttd-lang-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #1e293b;
  color: #f1f5f9;
  font-size: .88rem;
  padding: .7rem 1rem .7rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  z-index: 99990;
  max-width: min(480px, calc(100vw - 32px));
}
#dttd-lang-banner.dttd-lang-banner-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#dttd-lang-banner strong { color: #fff; }
#dttdLangBannerYes {
  background: #0055ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
#dttdLangBannerYes:hover { background: #003ecc; }
#dttdLangBannerNo {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1rem;
  padding: .25rem .4rem;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color .15s;
}
#dttdLangBannerNo:hover { color: #f1f5f9; }
@media (max-width: 480px) {
  #dttd-lang-banner { flex-wrap: wrap; bottom: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   SKELETON LOADING — Dominican To Do
   ═══════════════════════════════════════════════════════════════ */

@keyframes dttd-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

/* ── Imagen lazy: shimmer hasta que cargue ───────────────────── */
img[loading="lazy"]:not([data-loaded]) {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 1200px 100%;
  animation: dttd-shimmer 1.5s ease-in-out infinite;
}

/* ── Barra de progreso de navegación (top) ───────────────────── */
#dttd-nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0055ff, #60a5fa);
  z-index: 99999;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
#dttd-nav-bar.dttd-nb-start   { opacity: 1; transform: scaleX(0.35); transition: transform 0.6s ease; }
#dttd-nav-bar.dttd-nb-mid     { transform: scaleX(0.72); transition: transform 1.2s ease; }
#dttd-nav-bar.dttd-nb-done    { transform: scaleX(1);    transition: transform 0.15s ease; }
#dttd-nav-bar.dttd-nb-fade    { opacity: 0; transition: opacity 0.35s ease; }

/* ── Skeleton card utilities (para contenido AJAX / PHP) ─────── */
.dttd-sk {
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 1200px 100%;
  animation: dttd-shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}
.dttd-sk-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dttd-sk-img  { width: 100%; height: 180px; }
.dttd-sk-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.dttd-sk-line { height: 13px; border-radius: 6px; }
.dttd-sk-line.w-90 { width: 90%; }
.dttd-sk-line.w-70 { width: 70%; }
.dttd-sk-line.w-50 { width: 50%; }
.dttd-sk-line.w-35 { width: 35%; }

/* ── Entrada de cards con IntersectionObserver ───────────────── */
.dttd-fade-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.dttd-fade-card.dttd-in-view {
  opacity: 1;
  transform: none;
}

/* ── Skeleton de búsqueda (search.php — sin resultados) ──────── */
.dttd-sk-search { max-width: 520px; margin: 2rem auto; }
.dttd-sk-search .dttd-sk-line { margin-bottom: 10px; }
