:root {
    --blue: #00bfff;
    --ochre: #ad6b25;
    --ink: #373737;
    --muted: #717171;
    --card: #e7e7e7;
    --sheet: #f2f2f2;
    --footer: #0b0b0b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Verdana, Geneva, sans-serif;
    color: #222;
    background: #a5a5a5 url("../img/fondo.jpg") center top / 100% auto no-repeat fixed;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 50; }

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
}
.nav-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 28px 15px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand img { display: block; width: 178px; height: auto; }
.menu {
    display: flex;
    gap: 46px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu > li > a {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}
.menu > li > a:hover,
.menu > li > a:focus,
.menu > li > a.is-active { color: var(--blue); }
.has-sub { position: relative; }
.has-sub > a::after {
    content: "";
    display: inline-block;
    margin-left: 6px;
    border: 4px solid transparent;
    border-top-color: currentColor;
    vertical-align: 2px;
}
.sub {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 210px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}
.has-sub:hover > .sub,
.has-sub:focus-within > .sub,
.has-sub.open > .sub { display: block; }
.sub a {
    display: block;
    padding: 8px 16px;
    color: #333;
    font-size: 15px;
}
.sub a:hover,
.sub a:focus,
.sub a.is-active { background: var(--blue); color: #fff; }
.nav-toggle {
    display: none;
    width: 46px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 4px;
    background: transparent;
    padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    height: 2px;
    background: #fff;
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
}
.nav-toggle span { width: 20px; margin: 0 auto; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.container { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

.hero { min-height: calc(100vh - 84px); padding-top: 8px; }
.home {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #8e9498;
}
.home main {
    min-height: 0;
    overflow: hidden;
}
.home .hero {
    position: relative;
    height: 100%;
    min-height: 0;
    padding-top: 0;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}
.hero-bg { display: none; }
.home .hero-bg {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    flex: 0 0 auto;
}
.home .hero .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.home .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}
.hero-heading { text-align: center; }
.hero-kicker {
    margin: 4.5rem 0 0;
    color: var(--ochre);
    font-size: 18px;
}
.hero-title {
    margin: 5rem 5rem 0;
    color: #f8f9fa;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
}
.hero-rule {
    position: relative;
    width: min(35rem, 90%);
    height: 1px;
    margin: 1.875rem auto 0;
    background: #2f3032;
}
.hero-rule::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--blue);
    transform: translate(-50%, -50%) rotate(45deg);
}
.quote-card { max-width: 390px; margin: 2.5rem 0 3rem; }
.quote-box {
    position: relative;
    margin: 0 0 1.25rem;
    padding: 1.25rem 1.875rem 1.25rem 5rem;
    background: rgba(0, 0, 0, .5);
    color: #eceff3;
    font-size: 16px;
    line-height: 1.55;
}
.quote-box::before {
    content: "“";
    position: absolute;
    left: 0;
    top: 15px;
    width: 52px;
    height: 46px;
    background: var(--ochre);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 32px;
    line-height: 46px;
    text-align: center;
}
.quote-box p { margin: 0; }
.quote-author { display: flex; align-items: center; gap: 1.25rem; }
.quote-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}
.quote-author cite {
    color: var(--ochre);
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
}

.sheet { background: transparent; margin-top: 118px; padding: 0 0 48px; }
.sheet-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    padding: 22px 18px 28px;
}
.prose { color: #333; line-height: 1.6; }
.prose h2, .prose h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
}
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; }
.empty-gallery { margin: 0; color: #666; }

.masonry { position: relative; }
.piece {
    position: absolute;
    display: block;
    width: 100%;
    margin: 0;
    background: var(--card);
    cursor: pointer;
}
.piece-photo { position: relative; }
.piece-photo img { display: block; width: 100%; height: auto; }
.piece-zoom {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    opacity: 0;
    transition: opacity .2s;
}
.piece-zoom::before,
.piece-zoom::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #fff;
}
.piece-zoom::before { width: 18px; height: 2px; margin: -1px 0 0 -9px; }
.piece-zoom::after { width: 2px; height: 18px; margin: -9px 0 0 -1px; }
.piece:hover .piece-zoom,
.piece:focus-within .piece-zoom { opacity: 1; }
.piece-copy { padding: 12px 14px 16px; }
.piece-copy h2 {
    margin: 0 0 6px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.piece-text { font-size: 13px; color: var(--muted); line-height: 1.45; }
.piece-text p, .piece-text ul { margin: 0 0 8px; }
.piece-text ul { padding-left: 18px; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, .86);
    display: flex;
    flex-direction: column;
    padding: 0;
}
.lightbox[hidden] { display: none; }
.lb-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    padding: 14px 16px 8px 22px;
    color: #e0f0ff;
}
.lb-heading p { margin: 0; }
#lb-title { font-size: 18px; line-height: 1.3; }
#lb-count { margin-top: 4px; color: #c5c5c5; font-size: 13px; }
.lightbox figure {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: 8px 76px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lb-strip {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px 12px;
    background: rgba(0, 0, 0, .55);
}
.lb-strip button {
    flex: 0 0 auto;
    width: 84px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    background: #1a1a1a;
    cursor: pointer;
}
.lb-strip button.is-current { border-color: #fff; }
.lb-strip img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}
.lb-close, .lb-prev, .lb-next {
    border: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}
.lb-close { position: static; flex: 0 0 auto; }
.lb-prev, .lb-next { position: absolute; top: 46%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: #fff; color: #000; }

.site-footer {
    background: rgba(11, 11, 11, .78);
    border-top: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
}
.site-info a { color: var(--ochre); }
.site-info {
    max-width: 1170px;
    margin: 0 auto;
    padding: 14px 15px;
    text-align: center;
    color: #ccc;
    font-size: 15px;
}
.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 25;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: #2b2b2b;
    color: #fff;
}
.cookie-bar[hidden] { display: none; }
.cookie-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 16px 22px;
    text-align: center;
}
.cookie-inner p { margin: 0 0 8px; }
.cookie-inner a { color: #fff; text-decoration: underline; }
.cookie-accept {
    margin-top: 8px;
    border: 0;
    background: #f7a477;
    color: #fff;
    border-radius: 28px;
    padding: 10px 28px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .nav-toggle { display: block; }
    .menu {
        display: none;
        position: absolute;
        top: 78px;
        left: 12px;
        right: 12px;
        flex-direction: column;
        gap: 0;
        background: rgba(12, 12, 12, .92);
        padding: 8px 0;
    }
    .menu.is-open { display: flex; }
    .menu > li > a, .sub a { display: block; padding: 12px 16px; }
    .sub { position: static; display: none; box-shadow: none; background: transparent; min-width: 0; }
    .has-sub.open > .sub { display: block; }
    .sub a { color: #fff; }
    .hero-title { margin: 2.5rem 1rem 0; font-size: 36px; }
    .hero-kicker { margin-top: 6.5rem; }
    .quote-card { max-width: none; margin-left: 0; margin-right: 0; }
    .lightbox figure { padding: 8px 52px 12px; }
    .lb-strip button { width: 64px; height: 48px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}
@media (max-width: 600px) {
    .hero-rule { width: 15rem; }
    .hero-title { font-size: 32px; }
}
