/* Manual de Marca - Conocé Baradero */
:root {
    --brand-purple: #72637D;      
    --brand-teal-light: #9BC4C2;  
    --brand-teal-dark: #1F4844;   
    --brand-gold: #D4A337;        
    --brand-brown: #8C7A6B;       
    --brand-lavender: #D5CEDD;    
    --brand-bg: #F9F7F5;          
}

body {
    background-color: #fff;
    color: #2D2530;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--brand-bg);
}

#menuContainer { min-width: 0; }
#menuContainer button { min-height: 44px; }
/* Escritorio/tablet: menú más compacto para que entre en un solo renglón */
@media (min-width: 768px) {
    #menuContainer { column-gap: .125rem; row-gap: .25rem; }
    #menuContainer button { padding-left: .4rem; padding-right: .4rem; white-space: nowrap; }
}
#subMenuWrapper, #homeSection, #dynamicContentSection, #categoriesContainer, #mapaHome, #conoceBaradero {
    scroll-margin-top: calc(var(--header-height, 180px) + 20px);
}

.record-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2rem) / 3);
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 4px 4px 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-purple) #eee9f1;
}
.record-rail > article { min-width: 0; scroll-snap-align: start; overflow-wrap: anywhere; }
.record-rail:focus-visible, #menuContainer button:focus-visible {
    outline: 2px solid var(--brand-purple);
    outline-offset: 3px;
}
.record-group + .record-group { margin-top: 1.5rem; }
.record-group-title { color: var(--brand-purple); font-size: .8rem; font-weight: 700; margin-bottom: .5rem; }
.record-rail-hint { color: #6b6370; font-size: .75rem; margin: 0 0 .5rem; }

.baradero-info { background: var(--brand-purple); color: #fff; margin-top: 3rem; }
.baradero-info-inner { max-width: 1050px; margin: auto; padding: 2rem 1.5rem 3.75rem; }
.baradero-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 5vw, 4.5rem); }
.baradero-stories article { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.baradero-photo { width: 240px; max-width: 100%; aspect-ratio: 1; height: auto; border-radius: 50%; object-fit: cover; border: 4px solid white; }
.baradero-card { position: relative; margin-top: -46px; background: white; color: var(--brand-purple); padding: 1rem 1.25rem 1.5rem; width: 100%; flex: 1; }
.baradero-card h2 { font-family: 'Arial Narrow', 'Liberation Sans Narrow', sans-serif; font-stretch: condensed; font-size: 2rem; font-weight: 800; line-height: 1.15; text-align: center; margin: 0 0 .4rem; letter-spacing: -.04em; }
.baradero-subtitle { text-align: center; font-size: .9rem; line-height: 1.45; min-height: 3.5rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--brand-lavender); }
.baradero-card > p:last-child { font-size: .9rem; line-height: 1.6; }
.baradero-info + footer { margin-top: 0; }

@media (max-width: 1023px) {
    .record-rail { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (max-width: 767px) {
    .site-header { padding: .5rem .75rem; }
    .site-header > div { gap: .25rem; }
    .site-header > div > div { gap: .5rem; }
    .site-header img { height: 40px; }
    #menuContainer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 .5rem;
        width: 100%;
    }
    #menuContainer button {
        min-width: 0;
        min-height: 32px;
        padding: .25rem .375rem;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.2;
        text-align: center;
    }
    #menuContainer > span { display: none; }
    .record-rail { grid-auto-columns: 88%; }
    .baradero-stories { grid-template-columns: 1fr; gap: 2rem; }
    .baradero-stories { max-width: 360px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* Íconos de redes sociales del footer */
.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background-color: rgba(114, 99, 125, 0.1);
    color: var(--brand-purple);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.footer-social:hover,
.footer-social:focus-visible {
    background-color: var(--brand-purple);
    color: #fff;
    transform: translateY(-2px);
}
.site-footer { background-color: var(--brand-bg); }
#footerMenu button { min-height: 44px; }

/* Imagen de portada de los anunciantes: misma proporción (2:1) que el recorte del admin */
.cb-portada { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: #f3f1f4; }

/* Mapa interactivo en la página de inicio */
#mapaHome { margin-bottom: 1rem; }

/* Derito: indicador de "escribiendo…" */
.derito-typing { display: inline-flex; gap: .3rem; padding: .8rem 1rem; }
.derito-typing span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--brand-purple); opacity: .35; animation: derito-dot 1s infinite ease-in-out; }
.derito-typing span:nth-child(2) { animation-delay: .15s; }
.derito-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes derito-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .derito-typing span { animation: none; } }
