/*
 * Capsula Records — estilos principales
 * Portada migrada desde Joomla y simplificada para WordPress.
 */

@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/raleway-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Raleway";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/raleway-semibold.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/lato-regular.woff2") format("woff2");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/lato-bold.woff2") format("woff2");
}

:root {
    --text: #424753;
    --navigation-text: #312f38;
    --link: #0072ce;
    --yellow: #ecbf3e;
    --footer: #e4e4de;
    --line: #e0e0e5;
    --container: 75rem;
}

/* Base -------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: "Raleway", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 2;
    -webkit-font-smoothing: antialiased;
}

body *::selection {
    color: #fff;
    background: var(--footer);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link);
    transition: color .2s, opacity .2s;
}

a:hover {
    color: var(--text);
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

p {
    margin: 1rem 0;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Lato", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-weight: 400;
}

h1 {
    font-size: 2.25rem;
}
h2 {
    font-size: 1.9rem;
}
h3 {
    font-size: 1.5rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.container {
    width: var(--container);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.563rem;
}

.container--text {
    text-align: center;
}

/* HEADER
-------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 11;
    min-height: 100px;
    color: var(--navigation-text);
    background: #fff;
}

.header-container {
    position: relative;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
}

.brand-row {
    position: relative;
    display: flex;
    min-height: 50px;
    padding-top: 15px;
    align-items: center;
    justify-content: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.brand img {
    display: block;
    width: auto;
    max-width: min(90vw, 28rem);
    max-height: 50px;
    margin: 0 auto;
}


/* MENÚ ESCRITORIO
-------------------------------------------------- */

.desktop-nav {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    font-family: "Lato", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.5;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    margin: 0;
    padding: 0;
}

.main-menu a {
    display: block;
    margin: 0 0.5rem;
    padding: 0.2345rem 0;
    color: var(--navigation-text);
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
}

.main-menu a:hover {
    color: rgba(49, 47, 56, 0.7);
}

/* MENÚ MÓVIL
-------------------------------------------------- */

.mobile-nav {
    display: none;
}

.mobile-nav summary {
    list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
    display: none;
}


/* ACCESIBILIDAD
-------------------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #000;
}


/* RESPONSIVE HEADER
-------------------------------------------------- */

@media only all and (min-width: 60rem) and (max-width: 74.99rem) {
    .main-menu a {
        margin-right: 0.2rem;
        margin-left: 0.2rem;
    }
}

@media only all and (max-width: 47.99rem) {
    .site-header {
        min-height: 100px;
    }

    .brand-row {
        min-height: 100px;
    }

    .brand img {
        max-width: min(76vw, 22rem);
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        position: absolute;
        z-index: 100;
        top: 1.2rem;
        left: 0.75rem;
        display: block;
    }

    .mobile-nav summary {
        display: flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        color: var(--yellow);
        cursor: pointer;
        font-family: Arial, sans-serif;
        font-size: 2rem;
        line-height: 1;
    }

    .mobile-nav nav {
        position: absolute;
        top: 2.7rem;
        left: -0.75rem;
        width: 12rem;
        padding: 0.75rem 0;
        color: var(--navigation-text);
        background: var(--footer);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu {
        display: grid;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mobile-menu li {
        margin: 0;
        padding: 0;
    }

    .mobile-menu a {
        display: block;
        padding: 0.45rem 1rem;
        color: var(--navigation-text);
        font-family: "Lato", Helvetica, Arial, sans-serif;
        font-weight: 700;
        line-height: 1.5;
        text-decoration: none;
    }

    .mobile-menu a:hover{
        color: #abab98;
    }
}


/* Portada -------------------------------------------------- */

.home-content {
    width: 100%;
}

.hero {
    position: relative;
    height: 100vmax;
    padding: 0;
    background: #f4f5f7 url("../img/inicio/tocadiscos.jpg") no-repeat center center fixed;
    background-size: cover;
}

.section {
    padding: 0;
}

#artistas {
    padding-top: 2rem;
}

#contacto {
    padding-bottom: 2rem;
}

.section--centered {
    text-align: center;
}

.section-title {
    margin: 0 0 2rem;
    text-align: center;
}

#artistas,
#ediciones,
#sobre-nosotros,
#contacto {
    scroll-margin-top: 1rem;
}

/* Artistas -------------------------------------------------- */

.artists-grid {
    display: grid;
    grid-template-columns: repeat(3, 32%);
    column-gap: 2%;
    align-items: start;
}

.artist-card,
.release-card {
    min-width: 0;
}

.artist-card__image,
.release-card__image {
    display: block;
    overflow: hidden;
}

.artist-photo {
    width: 100%;
    opacity: .75;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.artist-photo:hover {
    opacity: 1;
    transform: scale(1.2);
}

.card-title {
    margin: .75rem 0 5px;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.66rem;
}

.artist-card > p,
.release-title {
    margin: 1rem 0;
}

/* Ediciones -------------------------------------------------- */

.releases-grid {
    display: grid;
    grid-template-columns: repeat(4, 23%);
    column-gap: 2%;
    align-items: start;
}

.release-card__image img {
    width: 100%;
    transition: opacity .1s ease-in-out;
}

.release-card__image:hover img {
    opacity: .8;
}

.release-title {
    line-height: 1;
}

/* Iconos -------------------------------------------------- */

.icon-links {
    display: flex;
    min-height: 40px;
    margin-top: 10px;
    margin-bottom: 35px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
}

.icon-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-links img {
    width: 40px;
    max-width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform .5s ease-in-out;
}

.icon-links img:hover {
    transform: rotate(360deg);
}

.section-divider {
    height: 2px;
    margin: 75px 0 1.5rem;
    background-image: linear-gradient(to left, #fff, var(--link), var(--yellow), var(--link), #fff);
    border: 0;
}

/* Sobre nosotros -------------------------------------------------- */

#sobre-nosotros a {
    color: var(--link);
}

#sobre-nosotros i {
    font-style: italic;
}

/* Contacto -------------------------------------------------- */

.contact-icon {
    display: inline-block;
    min-width: 1.25rem;
    color: var(--text);
    font-family: Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
}

.map-card {
    position: relative;
    display: block;
    width: 400px;
    max-width: 100%;
    height: 300px;
    margin: 1rem auto;
    overflow: hidden;
    color: var(--navigation-text);
    background: #eef0eb;
    border: 1px solid #d0d3cb;
    text-decoration: none;
}

.map-grid {
    position: absolute;
    inset: -3rem;
    background-image:
        linear-gradient(31deg, transparent 46%, rgba(255, 255, 255, .92) 47%, rgba(255, 255, 255, .92) 52%, transparent 53%),
        linear-gradient(118deg, transparent 46%, rgba(255, 255, 255, .86) 47%, rgba(255, 255, 255, .86) 52%, transparent 53%),
        linear-gradient(90deg, rgba(66, 71, 83, .07) 1px, transparent 1px),
        linear-gradient(rgba(66, 71, 83, .07) 1px, transparent 1px);
    background-size: 180px 140px, 230px 170px, 42px 42px, 42px 42px;
    transform: rotate(-5deg);
}

.map-pin {
    position: absolute;
    top: 42%;
    left: 50%;
    width: 28px;
    height: 28px;
    background: var(--yellow);
    border: 5px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.map-label {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding: .4rem .75rem;
    color: #fff;
    background: rgba(49, 47, 56, .9);
    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.map-card:hover .map-label {
    background: var(--link);
}


/* FOOTER
-------------------------------------------------- */

.site-footer {
    padding: 3rem 0;
    color: var(--navigation-text);
    background: var(--footer);
}

.to-top {
    display: flex;
    width: fit-content;
    margin: 0 auto 1.5rem;
    padding: 0.6rem 1rem;
    align-items: center;
    gap: 0.45rem;
    color: #000;
    background: var(--yellow);
    border: 0;
    border-radius: 2rem;
    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.to-top:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
    opacity: 0.9;
}

.footer-grid {
    display: grid;
    grid-template-columns: 20% 5% 50% 25%;
    align-items: center;
}

.footer-logo-cell,
.footer-credit,
.social-links {
    margin: 0.625rem 0;
    padding: 0.938rem;
}

.footer-logo {
    display: block;
    width: 100%;
    height: auto;
}

.footer-credit {
    text-align: center;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    line-height: 1;
}

.social-links a {
    display: inline-flex;
    width: 48px;
    height: 48px;
    padding: 0.1875rem 0.4rem;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: opacity 0.1s ease-in-out;
}

.social-links a:hover {
    color: #000;
    opacity: 0.5;
}

.social-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.soundcloud-mark {
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 3rem;
    line-height: 1;
}


.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(49, 47, 56, 0.16);
    font-family: "Lato", Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
}

.footer-legal a {
    color: #111;
    font-weight: 600;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--link);
}

.footer-legal a + a::before {
    content: "·";
    display: inline-block;
    margin: 0 0.7rem;
    color: var(--yellow);
    font-weight: 700;
}


/* PÁGINAS LEGALES
-------------------------------------------------- */

.legal-page {
    width: min(100% - 3rem, 56rem);
    margin: 0 auto;
    padding: 3.5rem 0 4.5rem;
    color: var(--text);
}

.legal-page h1 {
    margin: 0 0 2.5rem;
    color: var(--navigation-text);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.legal-page h2 {
    margin: 2.5rem 0 0.75rem;
    color: var(--navigation-text);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.35;
}

.legal-page p {
    margin: 0 0 1rem;
}

.legal-page ul,
.legal-page ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.legal-page li {
    margin: 0.3rem 0;
}

.legal-page a {
    overflow-wrap: anywhere;
}

.legal-page table {
    width: 100%;
    margin: 1.5rem 0 2rem;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95rem;
    line-height: 1.55;
}

.legal-page th,
.legal-page td {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-page th {
    color: var(--navigation-text);
    background: #f4f5f7;
    font-family: "Lato", Helvetica, Tahoma, Geneva, Arial, sans-serif;
    font-weight: 700;
}

.legal-page code {
    padding: 0.1rem 0.3rem;
    background: #f4f5f7;
    border-radius: 0.2rem;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.9em;
}

.legal-page > :last-child {
    margin-bottom: 0;
}

/* Responsive -------------------------------------------------- */

@media (min-width: 60rem) and (max-width: 74.99rem) {
    :root {
        --container: 60rem;
    }

}

@media (min-width: 48rem) and (max-width: 59.99rem) {
    :root {
        --container: 48rem;
    }
}

@media (min-width: 30.01rem) and (max-width: 47.99rem) {
    :root {
        --container: 30rem;
    }
}

@media (max-width: 47.99rem) {
    .hero {
        background-attachment: scroll;
    }

    .artists-grid,
    .releases-grid {
        grid-template-columns: 100%;
        column-gap: 0;
    }
}

@media (max-width: 30rem) {
    :root {
        --container: 100%;
    }

    .container {
        padding-right: 1.375rem;
        padding-left: 1.375rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}

@media (max-width: 47.99rem) {

    .to-top {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-spacer {
        display: none;
    }

    .footer-logo {
        max-width: 220px;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }
}

.concert-contanier{
    text-align: center;
}


body:not(.home) .main-menu .current-menu-item > a,
body:not(.home) .main-menu .current_page_item > a {
    box-shadow: 0 2px 0 rgba(49, 47, 56, 0.2);
}

body:not(.home) .mobile-menu .current-menu-item > a,
body:not(.home) .mobile-menu .current_page_item > a {
    color: #abab98;
}

/* GTRANSLATE EN MENÚ PRINCIPAL
-------------------------------------------------- */

.main-menu .menu-item-gtranslate {
    position: relative !important;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

/* GTranslate introduce este contenedor con position:absolute inline */
.main-menu .menu-item-gtranslate > div {
    position: static !important;
}

/* Ocultamos el selector estándar de Google */
.main-menu .menu-item-gtranslate #google_translate_element2 {
    display: none !important;
}

/* Selector flotante adaptado al menú */
.main-menu .gt_float_switcher {
    position: relative !important;
    width: auto !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    font-family: "Lato", Helvetica, Tahoma, Geneva, Arial, sans-serif !important;
    font-size: 1rem !important;
}

/* Idioma seleccionado */
.main-menu .gt_float_switcher .gt-selected {
    background: transparent !important;
}

.main-menu .gt_float_switcher .gt-selected .gt-current-lang {
    padding: 0.2345rem 0.5rem !important;
    color: var(--navigation-text) !important;
    font-weight: 700 !important;
}

/* Bandera */
.main-menu .gt_float_switcher img {
    width: 20px !important;
    height: auto !important;
    margin: 0 5px 0 0 !important;
}

/* Código ES / CA / EN */
.main-menu .gt-lang-code {
    font-size: 0.9rem !important;
    text-transform: uppercase;
}

/* Desplegable */
.main-menu .gt_float_switcher .gt_options {
    position: absolute !important;
    z-index: 9999;
    top: 100%;
    right: 0;
    width: 150px !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Opciones del desplegable */
.main-menu .gt_float_switcher .gt_options a {
    display: flex !important;
    align-items: center;
    margin: 0 !important;
    padding: 0.6rem 0.8rem !important;
    color: var(--navigation-text) !important;
    font-family: "Lato", Helvetica, Arial, sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    text-transform: none;
    box-shadow: none !important;
}

.main-menu .gt_float_switcher .gt_options a:hover {
    background: #f2f2f2 !important;
}

/* GTRANSLATE - MENÚ MÓVIL
-------------------------------------------------- */

@media (max-width: 47.99rem) {

    .mobile-menu .menu-item-gtranslate {
        position: relative !important;
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* GTranslate lo pone absolute mediante style="" */
    .mobile-menu .menu-item-gtranslate > div {
        position: static !important;
        width: 100%;
    }

    /* Ocultamos el selector estándar de Google */
    .mobile-menu .menu-item-gtranslate #google_translate_element2 {
        display: none !important;
    }

    .mobile-menu .gt_float_switcher {
        position: relative !important;
        width: 100% !important;
        overflow: visible !important;
        background: transparent !important;
        box-shadow: none !important;
        font-family: "Lato", Helvetica, Arial, sans-serif !important;
    }

    .mobile-menu .gt_float_switcher .gt-selected {
        background: transparent !important;
    }

    /* Idioma actualmente seleccionado */
    .mobile-menu .gt_float_switcher .gt-selected .gt-current-lang {
        display: flex !important;
        width: 100%;
        padding: 0.45rem 1rem !important;
        align-items: center;
        color: var(--navigation-text) !important;
        background: transparent !important;
        font-weight: 700 !important;
        line-height: 1.5 !important;
    }

    .mobile-menu .gt_float_switcher img {
        width: 20px !important;
        height: auto !important;
        margin: 0 7px 0 0 !important;
    }

    .mobile-menu .gt-lang-code {
        font-size: 0.9rem !important;
        text-transform: uppercase;
    }

    /*
     * En móvil el desplegable debe formar parte del menú,
     * no aparecer flotando por encima.
     */
    .mobile-menu .gt_float_switcher .gt_options {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        background: rgba(255, 255, 255, 0.35) !important;
        box-shadow: none !important;
    }

    .mobile-menu .gt_float_switcher .gt_options a {
        display: flex !important;
        width: 100%;
        margin: 0 !important;
        padding: 0.45rem 1rem 0.45rem 1.5rem !important;
        align-items: center;
        color: var(--navigation-text) !important;
        background: transparent !important;
        font-family: "Lato", Helvetica, Arial, sans-serif !important;
        font-size: 0.9rem !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        text-decoration: none !important;
        text-transform: none !important;
        box-shadow: none !important;
    }

    .mobile-menu .gt_float_switcher .gt_options a:hover {
        color: #abab98 !important;
        background: transparent !important;
    }
}

@media (max-width: 47.99rem) {
    .footer-legal {
        flex-direction: column;
        gap: 0.4rem;
        margin-top: 1rem;
    }

    .footer-legal a + a::before {
        content: none;
    }

    .legal-page {
        width: min(100% - 2.75rem, 56rem);
        padding: 2.25rem 0 3rem;
    }

    .legal-page h1 {
        margin-bottom: 2rem;
    }

    .legal-page h2 {
        margin-top: 2rem;
        font-size: 1.2rem;
    }

    .legal-page table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .legal-page th,
    .legal-page td {
        min-width: 9rem;
    }
}

@media (min-width: 48rem) {

    .desktop-nav {
        position: relative;
    }

    .main-menu {
        width: 100%;
    }

    .main-menu .menu-item-gtranslate {
        position: absolute !important;
        right: 1.563rem;
        margin-left: 0;
    }
}