.cdr-local-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px 70px;
}


/* =========================
   CARD CABECERA
========================= */

.cdr-local-header-card {
    display: flex;
    align-items: center;
    gap: 28px;

    background: #111;
    border: 1px solid #292929;
    border-radius: 22px;

    padding: 25px;

    margin-bottom: 20px;
}


/* LOGO */

.cdr-local-logo {
    width: 150px;
    height: 150px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #050505;

    border: 1px solid #e0002a;
    border-radius: 18px;

    padding: 10px;
}

.cdr-local-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* NOMBRE */

.cdr-local-header-info h1 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 42px;
    line-height: 1.05;

    text-transform: uppercase;
}

.cdr-local-address {
    color: #aaa;

    font-size: 17px;
    line-height: 1.5;
}


/* =========================
   CARD REDES + FOTOS
========================= */

.cdr-local-media-card {
    display: grid;
    grid-template-columns: 180px 1fr;

    gap: 35px;

    background: #111;
    border: 1px solid #292929;
    border-radius: 22px;

    padding: 25px;

    margin-bottom: 20px;
}


/* REDES */

.cdr-local-social-column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.cdr-local-section-title {
    color: #fff;

    font-size: 17px;
    font-weight: 600;

    margin-bottom: 15px;
}

.cdr-local-social {
    display: block;

    width: 100%;

    box-sizing: border-box;

    margin-bottom: 9px;

    padding: 11px 14px;

    border: 1px solid #333;
    border-radius: 9px;

    background: #181818;

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    transition: .2s;
}

.cdr-local-social:hover {
    border-color: #1683ff;
    background: #181818;
    color: #1683ff;
}


/* =========================
   GALERÍA
========================= */

.cdr-local-gallery-column {
    min-width: 0;
}

.cdr-local-gallery {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;

    border-radius: 14px;

    background: #080808;
}

.cdr-local-gallery > img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* FLECHAS */

.cdr-gallery-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 2;

    width: 34px;
    height: 34px;

    border: 0;
    border-radius: 50%;

    background: rgba(0,0,0,.6);

    color: #fff;

    font-size: 25px;

    cursor: pointer;
}

.cdr-gallery-arrow.prev {
    left: 10px;
}

.cdr-gallery-arrow.next {
    right: 10px;
}


/* MINIATURAS */

.cdr-local-thumbs {
    display: flex;
    gap: 7px;

    margin-top: 8px;
}

.cdr-local-thumb {
    width: 58px;
    height: 40px;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;
    border-radius: 6px;

    background: none;

    cursor: pointer;
}

.cdr-local-thumb.active {
    border-color: #e0002a;
}

.cdr-local-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =========================
   BOTONES
========================= */

.cdr-local-actions {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 5px;
}

.cdr-local-action {
    padding: 13px 24px;

    border-radius: 10px;

    border: 1px solid #e0002a;

    background: #111;

    color: #fff;

    text-decoration: none;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.cdr-local-action:hover {
    background: #e0002a;
    color: #fff;
}


/* =========================
   LIGHTBOX
========================= */

.cdr-local-lightbox {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,.95);
}

.cdr-local-lightbox.active {
    display: flex;
}

.cdr-local-lightbox img {
    max-width: 90vw;
    max-height: 88vh;

    object-fit: contain;
}

.cdr-lightbox-close,
.cdr-lightbox-prev,
.cdr-lightbox-next {
    position: absolute;

    border: 0;
    background: none;

    color: #fff;

    cursor: pointer;
}

.cdr-lightbox-close {
    top: 15px;
    right: 25px;

    font-size: 48px;
}

.cdr-lightbox-prev {
    left: 25px;

    font-size: 55px;
}

.cdr-lightbox-next {
    right: 25px;

    font-size: 55px;
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 700px) {

    .cdr-local-page {
        padding: 30px 15px 60px;
    }

    .cdr-local-header-card {
        gap: 18px;
        padding: 18px;
    }

    .cdr-local-logo {
        width: 105px;
        height: 105px;
    }

    .cdr-local-header-info h1 {
        font-size: 27px;
    }

    .cdr-local-address {
        font-size: 14px;
    }

    .cdr-local-media-card {
        grid-template-columns: 1fr;

        gap: 25px;

        padding: 20px;
    }

    .cdr-local-social-column {
    width: 100%;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    align-items: center;
    gap: 8px;
}

.cdr-local-section-title {
    width: 100%;
    margin-bottom: 5px;
}

.cdr-local-social {
    width: auto;

    display: block;

    margin: 0;

    padding: 10px 16px;
}

    .cdr-local-gallery {
        height: 190px;
    }

    .cdr-local-map-card iframe {
        height: 190px;
    }

    .cdr-local-actions {
        flex-direction: column;
    }

    .cdr-local-action {
        text-align: center;
    }
}


/* =========================================================
   DIRECTORIO DE LOCALES — /locales/
   ========================================================= */


/* =========================
   PÁGINA
========================= */

.cdr-locales-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 25px 90px;
    color: #fff;
}


/* =========================
   CABECERA
========================= */

.cdr-locales-header {
    text-align: center;
    margin-bottom: 60px;
}

.cdr-locales-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cdr-locales-header h1::after {
    content: "";
    display: block;

    width: 80px;
    height: 4px;

    margin: 18px auto 0;

    background: #e0002a;
}

.cdr-locales-header p {
    max-width: 750px;

    margin: 22px auto 0;

    color: #999;

    font-size: 17px;
    line-height: 1.6;
}


/* =========================
   GRID
========================= */

.cdr-locales-grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(330px, 1fr)
    );

    gap: 45px;

    align-items: start;

    justify-items: center;
}


/* =========================
   ENLACE GENERAL
========================= */

.cdr-local-card {
    display: block;

    color: inherit;
    text-decoration: none;

    transition:
        transform .25s ease,
        filter .25s ease;
}

.cdr-local-card:hover {
    color: inherit;
    text-decoration: none;

    transform: translateY(-7px);
}


/* =========================================================
   BAR / LOCAL
   POSAVASOS
========================================================= */

.cdr-local-card-bar {
    display: flex;
    justify-content: center;
}

/* =========================================================
   POSAVASOS — DISEÑO FINAL
========================================================= */

.cdr-local-coaster {

    position: relative;

    width: 100%;
    max-width: 310px;
    aspect-ratio: 1 / 1;

    padding: 32px;

    box-sizing: border-box;

    border-radius: 50%;

    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(255,255,255,.025) 0deg 2deg,
            transparent 2deg 30deg
        ),
        radial-gradient(
            circle at 50% 42%,
            #242424 0%,
            #151515 48%,
            #090909 78%,
            #030303 100%
        );

    border: 4px solid #111;

    box-shadow:
        0 0 0 2px #e0002a,
        0 0 18px rgba(224,0,42,.20),
        inset 0 0 25px rgba(0,0,0,.95),
        inset 0 0 4px rgba(255,255,255,.08);

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


/* ANILLO INTERIOR */

.cdr-local-coaster::before {

    content: "";

    position: absolute;

    inset: 11px;

    border-radius: 50%;

    border: 1px solid rgba(224,0,42,.55);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.035);

    pointer-events: none;
}


/* PEQUEÑOS DETALLES DEL BORDE */

.cdr-local-coaster::after {

    content: "";

    position: absolute;

    inset: 20px;

    border-radius: 50%;

    border: 1px dashed rgba(255,255,255,.10);

    pointer-events: none;
}


/* HOVER */

.cdr-local-card-bar:hover .cdr-local-coaster {

    transform: translateY(-5px) scale(1.015);

    box-shadow:
        0 0 0 2px #e0002a,
        0 0 28px rgba(224,0,42,.32),
        inset 0 0 28px rgba(0,0,0,.95),
        inset 0 0 5px rgba(255,255,255,.10);
}


/* LOGO */

.cdr-local-card-bar .cdr-local-card-logo {

    position: relative;

    z-index: 2;

    width: 105px;
    height: 105px;

    margin-bottom: 18px;

    display: flex;

    align-items: center;
    justify-content: center;
}

.cdr-local-card-bar .cdr-local-card-logo img {

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 5px 7px rgba(0,0,0,.9));
}


/* NOMBRE */

.cdr-local-coaster h2 {

    position: relative;

    z-index: 2;

    margin: 0;

    color: #fff;

    font-size: 22px;

    line-height: 1.1;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    text-shadow:
        0 2px 5px rgba(0,0,0,.9);
}


/* CIUDAD */

.cdr-local-coaster .cdr-local-city {

    position: relative;

    z-index: 2;

    margin-top: 11px;

    color: #e0002a;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: .3px;
}


/* =========================================================
   EMPRESA / PROFESIONAL
   TARJETA DE VISITA
========================================================= */

.cdr-local-card-empresa {

    min-height: 230px;

    box-sizing: border-box;

    padding: 28px;

    background:
        linear-gradient(
            135deg,
            #181818 0%,
            #0c0c0c 100%
        );

    border: 1px solid #292929;

    border-left: 4px solid #e0002a;

    box-shadow:
        0 12px 30px rgba(0,0,0,.45);

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}

.cdr-local-card-empresa:hover {

    border-color: #e0002a;

    box-shadow:
        0 15px 35px rgba(224,0,42,.15);
}


/* Logo */

.cdr-local-card-empresa .cdr-local-card-logo {

    height: 80px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: flex-start;
}

.cdr-local-card-empresa .cdr-local-card-logo img {

    max-width: 190px;
    max-height: 75px;

    object-fit: contain;
}


/* Información */

.cdr-local-card-info h2 {

    margin: 0 0 10px;

    color: #fff;

    font-size: 23px;

    line-height: 1.15;

    text-transform: uppercase;

    letter-spacing: .5px;
}


/* Ciudad */

.cdr-local-card-info .cdr-local-city {

    margin-bottom: 12px;

    color: #e0002a;

    font-size: 14px;

    font-weight: 600;
}


/* Descripción */

.cdr-local-card-info p {

    margin: 0;

    color: #aaa;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================
   SIN RESULTADOS
========================= */

.cdr-locales-empty {

    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    color: #777;

    font-size: 18px;
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 700px) {

    .cdr-locales-page {

        padding: 40px 18px 70px;
    }

    .cdr-locales-header {

        margin-bottom: 45px;
    }

    .cdr-locales-header h1 {

        font-size: 36px;
    }

    .cdr-locales-header p {

        font-size: 15px;
    }

    .cdr-locales-grid {

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .cdr-local-coaster {

        max-width: 310px;
    }

    .cdr-local-card-empresa {

        min-height: 210px;
    }
}

/* =========================================================
   LOCALES — VINILO
========================================================= */

.cdr-local-card-bar {
    display: flex;
    justify-content: center;
}

.cdr-local-vinyl {
    position: relative;

    width: 100%;
    max-width: 310px;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    transition:
        transform .25s ease,
        filter .25s ease;
}


/* VINILO */

.cdr-local-vinyl-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


/* SVG */

.cdr-local-vinyl-text {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;

    pointer-events: none;
}


/* NOMBRE */

.cdr-vinyl-name {
    fill: #e8dcc0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    paint-order: stroke;

    stroke: rgba(0,0,0,.55);
    stroke-width: 1px;
}


/* CIUDAD */

.cdr-vinyl-city {
    fill: #e8dcc0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    paint-order: stroke;

    stroke: rgba(0,0,0,.55);
    stroke-width: .8px;
}


/* LOGO CENTRAL */

.cdr-local-vinyl-logo {

    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 92px;
    height: 92px;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 3;
}

.cdr-local-vinyl-logo img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 3px 5px rgba(0,0,0,.9));
}


/* HOVER */

.cdr-local-card-bar:hover .cdr-local-vinyl {

    transform: translateY(-5px) scale(1.02);

    filter:
        drop-shadow(0 8px 14px rgba(224,0,42,.28));
}

/* =========================================================
   VINILO — LOCALES
========================================================= */

.cdr-local-card-bar {
    display: flex;
    justify-content: center;
}

.cdr-local-vinyl {
    position: relative;

    width: 100%;
    max-width: 310px;
    aspect-ratio: 1 / 1;

    overflow: hidden;

    transition:
        transform .25s ease,
        filter .25s ease;
}

.cdr-local-vinyl-bg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

.cdr-local-vinyl-logo {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    width: 88px;
    height: 88px;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 3;
}

.cdr-local-vinyl-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(0 3px 5px rgba(0,0,0,.9));
}

.cdr-local-vinyl-text {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 4;

    pointer-events: none;

    overflow: visible;
}

.cdr-vinyl-name {
    fill: #e8dcc0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: 1.5px;

    paint-order: stroke;

    stroke: rgba(0,0,0,.7);

    stroke-width: 1px;
}

.cdr-vinyl-city {
    fill: #e8dcc0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    paint-order: stroke;

    stroke: rgba(0,0,0,.7);

    stroke-width: .8px;
}

.cdr-local-card-bar:hover .cdr-local-vinyl {
    transform: translateY(-5px) scale(1.02);

    filter:
        drop-shadow(
            0 8px 16px rgba(224,0,42,.30)
        );
}

/* =========================================
   VINILO - TAMAÑO DEFINITIVO
   ========================================= */

.cdr-local-vinyl {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
    overflow: hidden;
}

.cdr-local-vinyl-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cdr-local-vinyl-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 105px;
    height: 105px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cdr-local-vinyl-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cdr-local-vinyl-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.cdr-vinyl-name {
    fill: #ffffff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 2px;
}

.cdr-vinyl-city {
    fill: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* =========================================
   CORRECCIÓN DEFINITIVA VINILO
   ========================================= */

.cdr-local-card-bar .cdr-local-vinyl {
    position: relative !important;
    width: 220px !important;
    height: 220px !important;
    min-width: 220px !important;
    min-height: 220px !important;
    max-width: 220px !important;
    max-height: 220px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.cdr-local-card-bar .cdr-local-vinyl-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;

    width: 220px !important;
    height: 220px !important;

    min-width: 220px !important;
    min-height: 220px !important;

    max-width: 220px !important;
    max-height: 220px !important;

    object-fit: contain !important;
    display: block !important;
    margin: 0 !important;
}

/* =========================================================
   DESCRIPCIÓN DEL LOCAL
   ========================================================= */

.cdr-local-description-card {
    margin-bottom: 20px;

    padding: 26px 30px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.015)
        );

    border: 1px solid rgba(255,255,255,0.14);

    border-radius: 22px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow:
        0 12px 35px rgba(0,0,0,0.30);

    box-sizing: border-box;
}


.cdr-local-description-card h2 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 22px;

    font-weight: 800;
}


.cdr-local-description-card p {
    margin: 0;

    color: #cfcfcf;

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .cdr-local-description-card {
        padding: 22px;
    }

    .cdr-local-description-card h2 {
        font-size: 20px;
    }

    .cdr-local-description-card p {
        font-size: 16px;
    }

}
/* =========================================================
   CONTENEDOR GENERAL DEL LOCAL
   ========================================================= */

.cdr-local-content-card {
    padding: 0;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.012)
        );

    border: 1px solid rgba(255,255,255,0.14);

    border-radius: 24px;

    overflow: hidden;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        0 15px 45px rgba(0,0,0,0.30);
}


/* =========================================================
   CABECERA
   ========================================================= */

.cdr-local-content-card .cdr-local-header-card {
    margin-bottom: 0;

    border: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.cdr-local-description-card {
    margin: 0 25px 20px;

    padding: 22px 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.035),
            rgba(255,255,255,0.01)
        );

    border: 1px solid rgba(255,255,255,0.10);

    border-radius: 16px;

    box-sizing: border-box;
}


.cdr-local-description-card p {
    margin: 0;

    color: #cfcfcf;

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   GALERÍA / REDES
   ========================================================= */

.cdr-local-content-card .cdr-local-media-card {
    margin-bottom: 0;

    border-radius: 0;

    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}

/* =========================================================
   AÑADIR LOCAL — BOTÓN SUPERIOR
   ========================================================= */

.cdr-local-page {
    position: relative;
}

.cdr-local-add-button {
    position: absolute;

    top: 0;
    right: 45px;

    z-index: 50;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 13px 22px;

    background: #0b0b0b;

    border: 1px solid #c00000;
    border-radius: 10px;

    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;

    box-shadow:
        0 5px 18px rgba(192, 0, 0, 0.12);

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


/* + VIEJA ESCUELA */

.cdr-local-add-button span {
    color: #ffffff !important;

    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}


/* HOVER */

.cdr-local-add-button:hover {
    background: #151515;

    border-color: #e00000;

    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow:
        0 8px 25px rgba(192, 0, 0, 0.20);
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 800px) {

    .cdr-local-add-button {
        position: relative;

        top: auto;
        right: auto;

        display: inline-flex;

        margin: 0 0 18px auto;

        transform: none;
    }

    .cdr-local-add-button:hover {
        transform: translateY(-2px);
    }
}

/* =========================================================
   VOLVER A LOCALES
========================================================= */

.cdr-local-back {
    display: flex;
    justify-content: center;

    margin-top: 28px;
}

.cdr-local-back a {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 12px 24px;

    background: transparent;

    border: 1px solid #333;
    border-radius: 10px;

    color: #bdbdbd !important;

    text-decoration: none !important;

    font-size: 15px;
    font-weight: 600;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease,
        transform .2s ease;
}

.cdr-local-back a:hover {
    color: #ffffff !important;

    border-color: #c00000;

    background: rgba(192, 0, 0, 0.08);

    transform: translateY(-2px);
}