/* =========================================================
   COSTA DEL ROCK
   ARCHIVO LOCALES
   ========================================================= */


/* =========================================================
   CONTENEDOR
   ========================================================= */

.cdr-archive-locales {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 70px 35px 100px;

    box-sizing: border-box;
}


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

.cdr-archive-locales-header {
    position: relative;

    width: 100%;
    min-height: 125px;

    margin-bottom: 50px;
    padding-right: 270px;

    box-sizing: border-box;
}

.cdr-archive-locales-heading {
    width: 100%;
}

.cdr-archive-locales-header h1 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
}

.cdr-archive-locales-header p {
    margin: 0;

    color: #cfcfcf;

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


/* =========================================================
   BOTÓN AÑADIR BAR / EMPRESA
   ========================================================= */

.cdr-archive-locales-add {
    position: absolute;

    top: 50%;
    right: 0;

    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 235px;

    padding: 16px 24px;

    box-sizing: border-box;

    background: transparent;

    border: 2px solid #c00000;
    border-radius: 14px;

    color: #ffffff !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .3px;

    box-shadow:
        0 0 20px rgba(192,0,0,.10);

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


/* + vieja escuela */

.cdr-archive-locales-add span {
    display: inline-block;

    color: #ffffff !important;

    font-size: 25px;
    font-weight: 400;

    line-height: 1;
}


/* Hover */

.cdr-archive-locales-add:hover {
    background: rgba(192,0,0,.08);

    border-color: #e00000;

    color: #ffffff !important;

    box-shadow:
        0 0 28px rgba(192,0,0,.22);

    transform: translateY(calc(-50% - 2px));
}

.cdr-archive-locales-add:hover span {
    color: #ffffff !important;
}


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

.cdr-archive-locales-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;

    align-items: stretch;
}


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

.cdr-local-card {
    display: flex;

    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.015)
        );

    border: 1px solid rgba(255,255,255,.16);

    border-radius: 18px;

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

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

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

.cdr-local-card:hover {
    transform: translateY(-5px);

    border-color: rgba(224,0,42,.75);

    box-shadow:
        0 18px 45px rgba(0,0,0,.5);
}


/* =========================================================
   TIPO
   ========================================================= */

.cdr-local-card-type {
    width: 100%;

    padding: 9px 15px;

    box-sizing: border-box;

    text-align: center;

    color: #ffffff;

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

    letter-spacing: 2px;
    line-height: 1;

    border-bottom:
        1px solid rgba(255,255,255,.10);
}


/* BAR */

.cdr-local-card-type-bar {
    background:
        linear-gradient(
            135deg,
            rgba(224,0,42,.90),
            rgba(155,0,30,.72)
        );
}


/* EMPRESA */

.cdr-local-card-type-empresa {
    background:
        linear-gradient(
            135deg,
            rgba(0,110,255,.90),
            rgba(0,70,180,.72)
        );
}


/* =========================================================
   ZONA PRINCIPAL
   ========================================================= */

.cdr-local-card-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.cdr-local-card {
    height: 100%;
}

/* =========================================================
   ZONA DEL LOGO
   TAMAÑO FIJO PARA TODOS LOS LOCALES
========================================================= */

.cdr-local-card-image {
    width: 100%;
    height: 220px;

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

    padding: 20px;

    box-sizing: border-box;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.045),
            rgba(0,0,0,.35)
        );

    text-decoration: none;

    overflow: hidden;
}


/* CONTENEDOR VISUAL DEL LOGO */

.cdr-local-card-image img {
    display: block;

    width: auto;
    height: auto;

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

    min-width: 0;
    min-height: 0;

    object-fit: contain;

    transition:
        transform .3s ease;
}


/* HOVER */

.cdr-local-card:hover
.cdr-local-card-image img {
    transform: scale(1.035);
}


/* =========================================================
   SIN LOGO
========================================================= */

.cdr-local-card-no-image {
    width: 100%;
    height: 100%;

    display: flex;

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

    color: #777;

    font-size: 15px;

    text-align: center;
}


/* =========================================================
   INFORMACIÓN
   ALTURA CONTROLADA
========================================================= */

.cdr-local-card-info {
    min-height: 92px;

    padding: 16px 19px 17px;

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: flex-start;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.025),
            rgba(255,255,255,0)
        );
}


/* NOMBRE */

.cdr-local-card-info h2 {
    margin: 0 0 6px;

    color: #ffffff;

    font-size: 22px;

    line-height: 1.15;

    font-weight: 800;

    /*
     * Máximo 2 líneas.
     * Evita que un nombre muy largo
     * haga crecer la tarjeta.
     */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


/* CIUDAD */

.cdr-local-card-city {
    margin: 0;

    color: #a8a8a8;

    font-size: 15px;

    line-height: 1.4;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

/* =========================================================
   BOTÓN VER LOCAL
   ========================================================= */

.cdr-local-card-link {
    display: flex;

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

    margin: 0 14px 14px;
    padding: 11px 14px;

    box-sizing: border-box;

    color: #ffffff;

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

    text-decoration: none;

    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.10),
            rgba(255,255,255,.025)
        );

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

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

.cdr-local-card-link span {
    color: #e0002a;

    font-size: 21px;
    line-height: 1;

    transition:
        transform .2s ease,
        color .2s ease;
}

.cdr-local-card-link:hover {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(224,0,42,.30),
            rgba(224,0,42,.06)
        );

    border-color: rgba(224,0,42,.75);

    transform: translateY(-1px);
}

.cdr-local-card-link:hover span {
    color: #ffffff;

    transform: translateX(4px);
}


/* =========================================================
   BOTÓN EMPRESA
   ========================================================= */

.cdr-local-card-link-empresa {
    border-color: rgba(0,110,255,.35);

    background:
        linear-gradient(
            135deg,
            rgba(0,110,255,.18),
            rgba(0,110,255,.04)
        );
}

.cdr-local-card-link-empresa span {
    color: #3d9cff;
}

.cdr-local-card-link-empresa:hover {
    background:
        linear-gradient(
            135deg,
            rgba(0,110,255,.38),
            rgba(0,110,255,.08)
        );

    border-color: rgba(0,150,255,.85);
}

.cdr-local-card-link-empresa:hover span {
    color: #ffffff;
}


/* =========================================================
   SIN LOCALES
   ========================================================= */

.cdr-locales-empty {
    grid-column: 1 / -1;

    margin: 50px 0;

    color: #ffffff;

    text-align: center;

    font-size: 18px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .cdr-archive-locales-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* =========================================================
   TABLET PEQUEÑO
   ========================================================= */

@media (max-width: 800px) {

    .cdr-archive-locales {
        padding: 50px 25px 80px;
    }

    .cdr-archive-locales-header {
        min-height: auto;

        padding-right: 0;
    }

    .cdr-archive-locales-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .cdr-local-card-info {
        padding: 15px;
    }

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

    /* Botón añadir */

    .cdr-archive-locales-add {
        position: relative;

        top: auto;
        right: auto;

        transform: none;

        margin-top: 22px;
    }

    .cdr-archive-locales-add:hover {
        transform: translateY(-2px);
    }

}


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

@media (max-width: 560px) {

    .cdr-archive-locales {
        padding: 40px 18px 70px;
    }

    .cdr-archive-locales-header {
        margin-bottom: 35px;
    }

    .cdr-archive-locales-header h1 {
        font-size: 40px;
    }

    .cdr-archive-locales-header p {
        font-size: 17px;
    }

    .cdr-archive-locales-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .cdr-local-card-type {
        padding: 8px 12px;

        font-size: 10px;
    }

    .cdr-local-card-image {
        aspect-ratio: 1.5 / 1;

        padding: 12px;
    }

    .cdr-local-card-info {
        padding: 15px;
    }

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

    .cdr-local-card-link {
        margin: 0 12px 12px;

        padding: 10px 12px;
    }

    /* Botón añadir */

    .cdr-archive-locales-add {
        width: 100%;

        min-width: 0;
    }

}