:root {
    --navy: #001b4d;
    --navy-dark: #000d2d;
    --orange: #f5a000;
    --white: #ffffff;
    --black: #050505;
    --text: #17213a;
    --muted: #687086;
    --border: #dfe3eb;
    --max-width: 1180px;
    --navbar-height: 130px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

body > main {
    flex: 1 0 auto;
}

body > .footer {
    flex-shrink: 0;
}

body.menu-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
p,
ul,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
}

h1 {
    margin-bottom: 24px;
    color: var(--white);
    font-size: clamp(42px, 6vw, 74px);
    letter-spacing: -0.045em;
}

h2 {
    margin-bottom: 28px;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.03em;
}

p {
    margin-bottom: 20px;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

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

.container {
    width: min(calc(100% - 40px), var(--max-width));
    margin: 0 auto;
}

.icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: currentColor;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 3000;
    padding: 12px 18px;
    background: var(--orange);
    color: var(--navy-dark);
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--navbar-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 13, 45, 0.95);
    backdrop-filter: blur(12px);
}

.navbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.brand img {
    width: 250px;
    height: auto;
    max-height: calc(var(--navbar-height) - 20px);
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 22px);
    flex-wrap: nowrap;
}

.navbar-links > a:not(.navbar-cta) {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-links > a:not(.navbar-cta):hover {
    color: var(--orange);
}

.navbar-cta {
    padding: 10px 18px;
    background: var(--orange);
    color: var(--navy-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
}

.lang-switcher {
    position: relative;
}

.lang-switcher-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.lang-switcher-button:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.lang-switcher-button .icon {
    width: 16px;
    height: 16px;
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--navy-dark);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.lang-switcher-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.lang-switcher-menu a:hover,
.lang-switcher-menu a[aria-current="true"] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--orange);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 13px 26px;
    border: 2px solid var(--orange);
    background: var(--orange);
    color: var(--navy-dark);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.button:hover {
    background: transparent;
    color: var(--orange);
}

.secondary-button {
    min-height: 48px;
    padding: 11px 20px;
    border: 1px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--navbar-height);
    background:
        linear-gradient(
            90deg,
            rgba(0, 13, 45, 0.98),
            rgba(0, 19, 61, 0.9) 48%,
            rgba(0, 27, 77, 0.55)
        ),
        radial-gradient(
            circle at 78% 35%,
            rgba(8, 116, 199, 0.6),
            rgba(0, 37, 93, 0.75) 30%,
            rgba(0, 13, 45, 0.85) 68%
        ),
        url("/assets/img/circo-palamos-nits-de-circ-2026.jpg");
    background-size: cover;
    background-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    right: 4%;
    bottom: -10%;
    width: min(52vw, 660px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 54%),
        linear-gradient(145deg, transparent 25%, rgba(255, 255, 255, 0.16));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 110px 0;
    color: var(--white);
}

.hero-content p {
    max-width: 680px;
    font-size: 19px;
}

.hero-content .button {
    margin-top: 14px;
}

.section {
    padding: 95px 0;
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-navy {
    background: var(--navy-dark);
    color: var(--white);
}

.section-dark h2,
.section-navy h2 {
    color: var(--white);
}

.intro {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}

.show-single {
    max-width: 760px;
    margin: 0 auto;
}

.palamos-grid,
.contact-grid,
.location-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.disciplines {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 34px;
    padding: 0;
    list-style: none;
}

.disciplines li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.artist-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--navy-dark);
    cursor: pointer;
    text-align: left;
}

.artist-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.artist-card:hover img,
.artist-card:focus-visible img {
    transform: scale(1.06);
}

.artist-card-caption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 16px 14px;
    background: linear-gradient(to top, rgba(0, 13, 45, 0.92) 40%, rgba(0, 13, 45, 0));
    color: var(--white);
}

.artist-card-name {
    font-weight: 800;
    font-size: 16px;
}

.artist-card-tagline {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 400;
}

.artist-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(0, 7, 25, 0.96);
}

.artist-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-lightbox::backdrop {
    background: rgba(0, 7, 25, 0.9);
}

.artist-lightbox-figure {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artist-lightbox-figure img {
    max-width: min(92vw, 1100px);
    max-height: 76vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.artist-lightbox-figure figcaption {
    margin-top: 16px;
    color: var(--white);
    text-align: center;
}

.artist-lightbox-figure figcaption [data-lightbox-name] {
    margin-right: 10px;
    font-weight: 800;
    font-size: 18px;
}

.artist-lightbox-figure figcaption [data-lightbox-tagline] {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
}

.artist-lightbox-figure figcaption [data-lightbox-tagline]:empty {
    display: none;
}

.artist-lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.artist-lightbox-close,
.artist-lightbox-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 13, 45, 0.6);
    color: var(--white);
    cursor: pointer;
}

.artist-lightbox-close:hover,
.artist-lightbox-nav:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.artist-lightbox-close {
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
}

.artist-lightbox-nav {
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translateY(-50%);
}

.artist-lightbox-prev {
    left: 20px;
}

.artist-lightbox-next {
    right: 20px;
}

.artist-lightbox-close .icon,
.artist-lightbox-nav .icon {
    width: 24px;
    height: 24px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 45px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--border);
}

.benefits div {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--white);
    color: var(--navy);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--border);
}

.information-item {
    min-height: 205px;
    padding: 28px 22px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.information-item:last-child {
    border-right: 0;
}

.information-item .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 13px;
    color: var(--orange);
}

.information-item strong {
    display: block;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 20px;
}

.information-item p {
    margin-bottom: 5px;
    color: var(--muted);
}

.information-item p a {
    color: var(--navy);
    font-weight: 700;
}

.ticket-action {
    margin-top: 36px;
    text-align: center;
}

.family {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 610px;
}

.family-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.family-content {
    display: flex;
    align-items: center;
    padding: 80px max(40px, calc((100vw - var(--max-width)) / 2));
    padding-left: 70px;
    background: var(--navy);
    color: var(--white);
}

.family-content h2 {
    color: var(--white);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.42);
}

.location {
    padding: 95px 0;
    background: var(--navy-dark);
    color: var(--white);
}

.location h2 {
    color: var(--white);
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.location-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding: 12px 17px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.location-action:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.map-container,
.map-preview,
.map-frame {
    min-height: 480px;
}

.map-container {
    position: relative;
    overflow: hidden;
    background: #071a35;
}

.map-preview {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    background: #071a35;
}

.map-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

.map-preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 38px;
    background:
        linear-gradient(
            to top,
            rgba(0, 13, 45, 0.96),
            rgba(0, 13, 45, 0.08) 75%
        );
}

.map-preview-overlay h3 {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 28px;
}

.map-preview-overlay p {
    margin-bottom: 18px;
}

.map-preview-overlay .icon {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    color: var(--orange);
}

.map-frame {
    width: 100%;
    display: block;
    border: 0;
}

.palamos-image {
    display: block;
    width: 100%;
    min-height: 500px;
    height: 100%;
    object-fit: cover;
}

.places {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 30px;
    padding: 0;
    list-style: none;
}

.places li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.faq {
    max-width: 920px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-item:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-button {
    position: relative;
    width: 100%;
    padding: 25px 60px 25px 0;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 19px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.accordion-button::before,
.accordion-button::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 18px;
    height: 2px;
    background: var(--orange);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.accordion-button::after {
    transform: rotate(90deg);
}

.accordion-button[aria-expanded="true"]::after {
    opacity: 0;
    transform: rotate(0);
}

.accordion-panel {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        height 0.28s ease,
        opacity 0.22s ease,
        transform 0.28s ease;
}

.accordion-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.accordion-content {
    padding: 0 60px 25px 0;
}

.accordion-content p {
    margin: 0;
}

.seo-content {
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
}

.contact {
    padding: 95px 0;
    background:
        linear-gradient(110deg, rgba(0, 13, 45, 0.98), rgba(0, 38, 94, 0.92)),
        radial-gradient(circle at 85% 35%, #0874c7, #001b4d 55%);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact-details {
    padding: 0;
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.contact-details a {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.contact-details a:hover {
    color: var(--orange);
}

.contact-card {
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 13, 45, 0.48);
}

.contact-card h3 {
    margin-bottom: 16px;
    font-size: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    text-decoration: none;
}

.social-link:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.final-cta {
    padding: 125px 0;
    background: var(--black);
    color: var(--white);
    text-align: center;
}

.final-cta h2 {
    color: var(--white);
    font-size: clamp(40px, 5vw, 62px);
}

.final-cta .content {
    max-width: 800px;
    margin: 0 auto;
}

.footer {
    padding: 28px 0;
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer a,
.footer button {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.footer a:hover,
.footer button:hover {
    color: var(--orange);
}

.legal-main {
    padding: 160px 0 100px;
    min-height: 60vh;
}

.legal-main h1 {
    color: var(--navy);
}

.legal-main .container {
    max-width: 780px;
}

.legal-intro {
    color: var(--muted);
    font-size: 19px;
}

.legal-section {
    padding-top: 34px;
    border-top: 1px solid var(--border);
    margin-top: 34px;
}

.legal-section:first-of-type {
    padding-top: 0;
    border-top: 0;
    margin-top: 10px;
}

.legal-section h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.legal-section p {
    margin-bottom: 16px;
}

.legal-section a {
    color: var(--navy);
    font-weight: 700;
}

.legal-section ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.legal-section li {
    margin-bottom: 8px;
}

.consent-dialog {
    width: min(calc(100% - 30px), 560px);
    padding: 0;
    border: 0;
    background: var(--white);
    color: var(--text);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
}

.consent-dialog::backdrop {
    background: rgba(0, 7, 25, 0.74);
}

.consent-dialog-content {
    padding: 32px;
}

.consent-dialog h2 {
    margin-bottom: 14px;
    font-size: 30px;
}

.consent-dialog p {
    color: var(--muted);
}

.consent-dialog a {
    color: var(--navy);
    font-weight: 700;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 26px;
}

@media (max-width: 1000px) {
    .benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .information-item {
        border-bottom: 1px solid var(--border);
    }

    .artists-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1120px) {
    .menu-button {
        display: block;
    }

    .navbar-links {
        position: fixed;
        top: var(--navbar-height);
        right: 0;
        left: auto;
        bottom: 0;
        height: calc(100vh - var(--navbar-height));
        height: calc(100dvh - var(--navbar-height));
        width: min(340px, 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 25px;
        overflow-y: auto;
        background: var(--navy-dark);
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    .navbar-links.open {
        transform: translateX(0);
    }

    .navbar-links > a:not(.navbar-cta) {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .navbar-cta {
        margin-top: 25px;
        text-align: center;
    }

    .lang-switcher {
        margin-top: 20px;
    }

    .lang-switcher-menu {
        position: static;
        margin-top: 10px;
        box-shadow: none;
    }

    .palamos-grid,
    .contact-grid,
    .location-grid,
    .family {
        grid-template-columns: 1fr;
    }

    .family-image,
    .palamos-image {
        min-height: 420px;
    }

    .family-content {
        padding: 70px 30px;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .section,
    .location,
    .contact {
        padding: 70px 0;
    }

    .hero {
        min-height: 700px;
    }

    .hero-content {
        padding: 75px 0;
    }

    .hero-content p {
        font-size: 17px;
    }

    .disciplines,
    .places,
    .benefits,
    .information-grid {
        grid-template-columns: 1fr;
    }

    .artists-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .artist-card-caption {
        padding: 12px 12px 10px;
    }

    .artist-card-name {
        font-size: 14px;
    }

    .artist-card-tagline {
        font-size: 12px;
    }

    .artist-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .artist-lightbox-nav {
        width: 42px;
        height: 42px;
    }

    .artist-lightbox-prev {
        left: 6px;
    }

    .artist-lightbox-next {
        right: 6px;
    }

    .artist-lightbox-figure img {
        max-height: 66vh;
    }

    .information-item {
        border-right: 0;
    }

    .tag-list {
        display: grid;
    }

    .map-container,
    .map-preview,
    .map-frame {
        min-height: 390px;
        height: 390px;
    }

    .map-preview-overlay {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .consent-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

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

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