.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 700;
    font-size: .92rem;
    padding: 16px 0;
}
.detail-breadcrumb a { color: var(--primary); }
.detail-breadcrumb strong { color: var(--primary-dark); }

.detail-hero {
    min-height: 360px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 25, 52, .88), rgba(8, 25, 52, .56), rgba(8, 25, 52, .12)),
        linear-gradient(180deg, rgba(8, 25, 52, .12), rgba(8, 25, 52, .42));
}
.detail-hero-content { position: relative; color: white; padding: 58px 0 68px; }
.detail-hero h1 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin: 14px 0 10px; letter-spacing: -.05em; }
.detail-hero p { max-width: 680px; color: rgba(255,255,255,.9); font-size: 1.1rem; margin: 0 0 24px; }
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    background: rgba(12, 120, 255, .62);
    border: 1px solid rgba(255,255,255,.24);
    padding: 7px 12px;
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .01em;
    box-shadow: none;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-actions .btn { min-width: 150px; }
.hero-actions .hero-save { background: rgba(255,255,255,.12); color: white; border-color: rgba(255,255,255,.42); backdrop-filter: blur(8px); }

.quick-info {
    position: relative;
    z-index: 3;
    margin-top: -28px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 12px;
}
.quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 16px;
    color: var(--primary-dark);
    border-right: 1px solid var(--border);
}
.quick-chip:last-child { border-right: 0; }
.quick-chip span { color: var(--primary); }
.quick-chip strong { font-size: .92rem; }

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    gap: 28px;
    padding-top: 28px;
    align-items: start;
}
.detail-main-column, .detail-side-column { display: grid; gap: 22px; }
.detail-side-column { position: sticky; top: 96px; }
.card-panel { padding: 0; overflow: hidden; }

.gallery-card { padding: 10px; }
.gallery-main {
    position: relative;
    height: clamp(300px, 39vw, 460px);
    border-radius: 18px;
    overflow: hidden;
    background: #dbeafe;
}
.gallery-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .28s ease, transform .28s ease;
}
.gallery-slide.active { opacity: 1; transform: scale(1); }
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 35px rgba(15,46,85,.22);
}
.gallery-btn.prev { left: 14px; }
.gallery-btn.next { right: 14px; }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.gallery-thumb {
    height: 92px;
    border: 3px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: white;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-card { padding: 26px; }
.detail-card h2, .info-card h3, .map-card h3, .side-note-card h3 {
    margin: 0 0 16px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.detail-card p { color: var(--muted); line-height: 1.85; margin: 0; }
.tags.big { margin-top: 18px; }
.tips-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.tips-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.tips-list li span {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: white;
    background: #22c55e;
    font-size: .76rem;
    font-weight: 900;
}

.info-card { padding: 24px; }
.info-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    color: var(--muted);
}
.info-row:last-child { border-bottom: 0; }
.info-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef6ff;
    color: var(--primary);
}
.info-row strong { color: var(--primary-dark); }
.info-row span:last-child { text-align: right; color: #49637f; font-weight: 700; }

.map-card { padding: 14px; }
.map-preview {
    height: 190px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(30deg, transparent 48%, rgba(255,255,255,.95) 49%, rgba(255,255,255,.95) 53%, transparent 54%),
        linear-gradient(120deg, transparent 45%, rgba(255,255,255,.95) 46%, rgba(255,255,255,.95) 50%, transparent 51%),
        linear-gradient(90deg, rgba(218,246,225,.9), rgba(238,244,250,.95));
    border: 1px solid var(--border);
}
.map-preview::before, .map-preview::after {
    content: '';
    position: absolute;
    inset: 28px 0 auto;
    height: 8px;
    background: rgba(202,213,226,.95);
    transform: rotate(-12deg);
}
.map-preview::after { inset: auto 0 45px; transform: rotate(10deg); }
.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 18px 34px rgba(15,46,85,.2);
    font-size: 2rem;
}
.map-card h3, .map-card p { padding: 0 8px; }
.map-card p { color: var(--muted); line-height: 1.6; margin: -6px 0 16px; }
.map-card .btn + .btn { margin-top: 10px; }
.map-btn { background: var(--primary); box-shadow: 0 14px 30px rgba(12,120,255,.22); }

.related-section { padding-top: 38px; }

@media (max-width: 980px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side-column { position: static; }
}
@media (max-width: 700px) {
    .detail-hero { min-height: 330px; }
    .detail-hero-content { padding: 42px 0 58px; }
    .quick-info { margin-top: -20px; }
    .quick-chip { width: calc(50% - 5px); border-right: 0; background: #f8fbff; border-radius: 12px; }
    .gallery-main { height: 280px; }
    .gallery-thumb { height: 72px; }
    .info-row { grid-template-columns: 34px 1fr; }
    .info-row span:last-child { grid-column: 2; text-align: left; }
}

/* Acciones informativas */
.whatsapp-hero-btn {
    background: rgba(255,255,255,.14) !important;
    color: white !important;
    border-color: rgba(255,255,255,.45) !important;
    backdrop-filter: blur(8px);
}
.side-note-card {
    padding: 22px;
    background: linear-gradient(135deg, #f8fbff, #ffffff);
    border: 1px solid rgba(218, 231, 246, .95);
}
.side-note-label {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    background: #eef6ff;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 900;
}
.side-note-card h3 {
    margin: 0 0 10px;
    color: var(--primary-dark);
}
.side-note-card p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.contact-card {
    padding: 22px;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}
.contact-card h3 { margin: 0 0 8px; color: var(--primary-dark); }
.contact-card p { color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.whatsapp-btn {
    background: #22c55e;
    box-shadow: 0 14px 30px rgba(34,197,94,.22);
}
@media (max-width: 700px) {
    .hero-actions .btn { width: 100%; }
}


/* Detalle limpio: sin ruta/breadcrumb y galería compacta */
.detail-breadcrumb {
    display: none !important;
}

.gallery-card.compact-detail-gallery {
    padding: 10px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 92px;
    overflow: hidden;
}

.gallery-thumb {
    display: none;
    height: 88px;
}

.gallery-thumb.visible {
    display: block;
}

.gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(12, 120, 255, .16);
}

@media (max-width: 700px) {
    .gallery-thumbs {
        max-height: 74px;
        gap: 8px;
    }
    .gallery-thumb {
        height: 70px;
    }
}


/* Header del detalle igual al inicio: transparente sobre banner y blanco al bajar */
.detail-overlay-page .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(7, 23, 48, .42), rgba(7, 23, 48, .14));
    border-bottom: 1px solid rgba(255,255,255,.14);
    box-shadow: none;
    color: white;
}
.detail-overlay-page .brand,
.detail-overlay-page .main-nav {
    color: white;
}
.detail-overlay-page .brand strong {
    color: #7ef4ff;
}
.detail-overlay-page .brand-icon {
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}
.detail-overlay-page .main-nav a {
    color: rgba(255,255,255,.94);
}
.detail-overlay-page .main-nav a:hover {
    color: white;
    background: rgba(255,255,255,.14);
}
.detail-overlay-page .nav-toggle {
    background: rgba(255,255,255,.16);
    color: white;
    border-color: rgba(255,255,255,.28);
    backdrop-filter: blur(10px);
}
.detail-overlay-page .site-header.header-scrolled {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 34px rgba(15, 46, 85, .10);
    color: var(--primary-dark);
}
.detail-overlay-page .site-header.header-scrolled .brand,
.detail-overlay-page .site-header.header-scrolled .main-nav {
    color: var(--primary-dark);
}
.detail-overlay-page .site-header.header-scrolled .brand strong {
    color: var(--turquoise);
}
.detail-overlay-page .site-header.header-scrolled .main-nav a {
    color: #243b5a;
}
.detail-overlay-page .site-header.header-scrolled .main-nav a:hover {
    color: var(--primary);
    background: #eef6ff;
}
.detail-overlay-page .site-header.header-scrolled .nav-toggle {
    background: white;
    color: var(--primary-dark);
    border-color: var(--border);
}
.detail-overlay-page .detail-hero {
    min-height: 430px;
}
.detail-overlay-page .detail-hero-content {
    padding-top: 128px;
}

@media (max-width: 700px) {
    .detail-overlay-page .detail-hero {
        min-height: 410px;
    }
    .detail-overlay-page .detail-hero-content {
        padding-top: 112px;
    }
}


/* Botones del hero y compartir */
.detail-hero-actions {
    gap: 14px;
}
.location-hero-btn {
    box-shadow: 0 18px 36px rgba(255, 115, 22, .28);
}
.share-hero-btn {
    background: rgba(255, 255, 255, .13) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.share-hero-btn:hover,
.whatsapp-hero-btn:hover {
    background: rgba(255, 255, 255, .22) !important;
    transform: translateY(-1px);
}

.share-modal[hidden] {
    display: none !important;
}
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
}
.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 23, 48, .58);
    opacity: 0;
    transition: opacity .18s ease;
}
.share-panel {
    position: relative;
    width: min(420px, 100%);
    padding: 30px;
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid rgba(218, 231, 246, .95);
    box-shadow: 0 28px 80px rgba(7, 23, 48, .30);
    text-align: left;
    transform: translateY(16px) scale(.98);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
}
.share-modal.is-open .share-modal-backdrop {
    opacity: 1;
}
.share-modal.is-open .share-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.share-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef4fb;
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 900;
    cursor: pointer;
}
.share-close:hover {
    background: #e2edf8;
}
.share-icon {
    display: none;
}
.share-header-copy {
    padding-right: 34px;
    margin-bottom: 18px;
}
.share-eyebrow {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.share-panel h3 {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 1.55rem;
    letter-spacing: -.03em;
}
.share-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    max-width: 340px;
}
.share-options {
    display: grid;
    gap: 10px;
}
.share-option {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #f8fbff;
    color: var(--primary-dark);
    font-weight: 950;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.share-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 46, 85, .10);
}
.share-option.whatsapp {
    background: #ecfdf5;
    color: #128c4a;
    border-color: #bbf7d0;
}
.share-option.facebook {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}
.share-option.copy {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}
.share-feedback {
    display: block;
    min-height: 18px;
    margin-top: 12px;
    color: #16a34a;
    font-weight: 850;
    text-align: center;
}
.share-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .detail-hero-actions .btn {
        width: 100%;
    }
    .share-panel {
        padding: 24px 18px;
        border-radius: 24px;
    }
}


/* Hero más minimalista: botones compactos, sin íconos ni brillo fuerte */
.detail-hero-actions {
    gap: 12px;
    margin-top: 4px;
}

.detail-hero-actions .btn {
    min-width: 138px;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: 12px;
    font-size: .94rem;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.01em;
    box-shadow: none;
}

.location-hero-btn {
    background: #f27a1a !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
    box-shadow: 0 10px 22px rgba(8, 25, 52, .18) !important;
}

.location-hero-btn:hover {
    background: #e86f13 !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(8, 25, 52, .20) !important;
}

.share-hero-btn {
    background: rgba(8, 25, 52, .24) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .34) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.share-hero-btn:hover {
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .52) !important;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .detail-hero-actions {
        gap: 10px;
    }
    .detail-hero-actions .btn {
        width: auto;
        min-width: 132px;
        min-height: 44px;
        padding: 10px 18px;
    }
}

/* Ajuste puntual: iconos limpios en Información, sin tocar la galería */
.info-title-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef5ff;
    color: var(--primary);
}
.info-title-icon svg,
.info-icon svg {
    width: 18px;
    height: 18px;
}
.info-row {
    grid-template-columns: 42px 1fr auto;
}
.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eef5ff;
    color: var(--primary);
}

/* Ajuste puntual: diseño limpio de Sobre este lugar */
.story-card {
    padding: 30px 26px;
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 46, 85, .04);
}
.story-card h3 {
    margin: 0;
    color: #10253e;
    font-size: clamp(1.2rem, 1.35vw, 1.45rem);
    line-height: 1.18;
    letter-spacing: -.02em;
}
.story-divider {
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: #ff7a1a;
    margin: 12px 0 16px;
}
.story-card p {
    margin: 0;
    color: #4f5c6d;
    font-size: .98rem;
    line-height: 1.75;
    letter-spacing: -.01em;
}

@media (max-width: 700px) {
    .info-row { grid-template-columns: 42px 1fr; }
    .story-card { padding: 24px 22px; }
    .story-card h3 { font-size: 1.3rem; }
    .story-card p { font-size: .96rem; line-height: 1.7; }
}
