/* Ruta de Tapas · plantilla */

/* Cabecera fija, translúcida, estilo Apple */
.rdt-site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 250, 247, 0.78); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(31, 36, 48, 0.06); }
.admin-bar .rdt-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.rdt-header .wp-block-site-title a { text-decoration: none; }
.rdt-header .wp-block-navigation a { text-decoration: none; }
.rdt-logo-dots { display: inline-flex; gap: 3px; }
.rdt-logo-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5A3C; }
.rdt-logo-dots i:nth-child(2) { background: #14B8A6; }
.rdt-logo-dots i:nth-child(3) { background: #8B5CF6; }

/* Página de ruta: el mapa ocupa el resto de la pantalla bajo la cabecera */
.rdt-main-ruta { --rdt-offset-top: 64px; }
.admin-bar .rdt-main-ruta { --rdt-offset-top: calc(64px + var(--wp--admin--admin-bar--height, 32px)); }
.rdt-main-ruta > .wp-block-post-content > *:first-child { margin-top: 0; }
@media (max-width: 720px) { .rdt-main-ruta .rdt-route { padding: 12px 16px 24px; } }

/* Portada */
.rdt-hero { position: relative; overflow: hidden; }
.rdt-hero > * { position: relative; }
.rdt-kicker { margin: 0 0 12px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--coral); }
.rdt-hero-title { margin: 0; font-size: clamp(3.25rem, 10vw, 8.5rem); line-height: 0.92; letter-spacing: -0.045em; }
.rdt-hero-title span { color: var(--wp--preset--color--teal); }
.rdt-hero-title em { font-style: normal; color: var(--wp--preset--color--violet); }
.rdt-hero-lead { max-width: 34ch; margin-top: 28px; color: var(--wp--preset--color--muted); }
.rdt-hero-dots { position: absolute !important; inset: 0; pointer-events: none; }
.rdt-hero-dots i { position: absolute; width: clamp(14px, 2.4vw, 30px); aspect-ratio: 1; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(20, 24, 36, 0.18); opacity: 0; animation: rdt-hero-drop 0.7s cubic-bezier(0.22, 1.2, 0.36, 1) forwards; }
.rdt-hero-dots i:nth-child(1) { left: 62%; top: 22%; background: #FF5A3C; animation-delay: 0.1s; }
.rdt-hero-dots i:nth-child(2) { left: 74%; top: 38%; background: #14B8A6; animation-delay: 0.2s; }
.rdt-hero-dots i:nth-child(3) { left: 86%; top: 18%; background: #8B5CF6; animation-delay: 0.3s; }
.rdt-hero-dots i:nth-child(4) { left: 68%; top: 62%; background: #F5B700; animation-delay: 0.4s; }
.rdt-hero-dots i:nth-child(5) { left: 82%; top: 70%; background: #EC4899; animation-delay: 0.5s; }
.rdt-hero-dots i:nth-child(6) { left: 92%; top: 48%; background: #3B82F6; animation-delay: 0.6s; }
.rdt-hero-dots i:nth-child(7) { left: 56%; top: 80%; background: #22C55E; animation-delay: 0.7s; }
@keyframes rdt-hero-drop { from { opacity: 0; transform: translateY(-60px) scale(0.5); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .rdt-hero-dots { opacity: 0.35; } }

.rdt-steps-wrap { background: var(--wp--preset--color--white); }
.rdt-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rdt-steps li { display: grid; gap: 8px; padding: 28px; border-radius: 28px; background: var(--wp--preset--color--paper); }
.rdt-steps b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rdt-color); color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.rdt-steps strong { font-family: var(--wp--preset--font-family--display); font-size: 1.4rem; letter-spacing: -0.02em; }
.rdt-steps span { color: var(--wp--preset--color--muted); }

.rdt-services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.rdt-services li { padding: 14px 20px; border-radius: 999px; background: var(--rdt-color); color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 12px 28px -16px var(--rdt-color); }

/* Pie */
.rdt-footer { background: var(--wp--preset--color--white); border-top: 1px solid rgba(31, 36, 48, 0.06); }
.rdt-footer-title { font-weight: 700; margin-bottom: 12px; }
.rdt-store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.rdt-store { display: grid; padding: 10px 18px; border-radius: 14px; background: var(--wp--preset--color--ink); color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.rdt-store span { font-size: 0.7rem; font-weight: 500; opacity: 0.75; }
.rdt-store.is-soon { opacity: 0.55; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .rdt-hero-dots i { animation: none; opacity: 1; } }

/* Ajustes finos */
.wp-site-blocks > .rdt-main-ruta, .wp-site-blocks > main.rdt-main-ruta { margin-block-start: 0; }
.rdt-main-ruta + footer, .rdt-main-ruta + .wp-block-template-part { margin-block-start: 0; }
.rdt-footer .wp-block-site-title a { text-decoration: none; }
