/*
 * Estilos específicos de la crónica de Frankfurt.
 * Se cargan después de /css2/home.css para mantener el lenguaje visual común.
 */

.article-page {
    overflow-x: hidden;
}

/* Selector de idioma visible; el control nativo de Google queda como motor oculto. */
.language-bar {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.language-control__label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.language-control__label svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.language-control__select {
    min-width: 154px;
    height: 32px;
    padding: 4px 34px 4px 11px;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: var(--white);
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.language-control__select:hover,
.language-control__select:focus-visible {
    border-color: #efa47c;
    outline: 3px solid rgba(239, 164, 124, 0.26);
    outline-offset: 2px;
}

.language-control__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.google-translate-engine {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

body > .skiptranslate,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt {
    display: none !important;
}

html,
body {
    top: 0 !important;
}

/* Compatibilidad con el menú heredado incluido desde menu.php. */
.site-nav .fh5co-nav-toggle,
.site-nav .js-fh5co-nav-toggle,
.site-nav .mobile-menu,
.site-nav .menu-toggle,
.site-nav script,
.site-nav style {
    display: none !important;
}


.site-nav a[aria-current="page"],
.site-nav a[href$="a-francfurt.php"] {
    color: var(--accent-dark);
}

/* Hero editorial */
.article-hero {
    position: relative;
    min-height: clamp(650px, 86vh, 900px);
    display: flex;
    align-items: flex-end;
    color: var(--white);
    background: #37332e;
    isolation: isolate;
}

.article-hero__media,
.article-hero__shade {
    position: absolute;
    inset: 0;
}

.article-hero__media {
    z-index: -2;
    overflow: hidden;
}

.article-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: article-hero-in 1200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.article-hero__shade {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(14, 13, 11, 0.14) 12%, rgba(14, 13, 11, 0.22) 48%, rgba(14, 13, 11, 0.9) 100%),
        linear-gradient(90deg, rgba(14, 13, 11, 0.64), transparent 68%);
}

.article-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 150px;
    padding-bottom: clamp(86px, 10vw, 138px);
}

.breadcrumbs {
    margin-bottom: clamp(50px, 9vw, 120px);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 700;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    color: rgba(255, 255, 255, 0.35);
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--white);
}

.article-hero .eyebrow {
    color: #ffc09e;
}

.article-hero h1 {
    max-width: 1020px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.2rem, 7vw, 7.8rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-wrap: balance;
}

.article-hero__lead {
    max-width: 780px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 34px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
    font-weight: 700;
}

.article-meta a {
    color: var(--white);
}

.article-quick-nav {
    margin-bottom: 0;
}

/* Artículo */
.article-layout {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 790px);
    justify-content: center;
    gap: clamp(55px, 8vw, 120px);
    padding-top: clamp(85px, 10vw, 145px);
    padding-bottom: clamp(100px, 12vw, 170px);
}

.article-sidebar {
    min-width: 0;
}

.article-sidebar__sticky {
    position: sticky;
    top: 145px;
    padding-top: 5px;
}

.table-of-contents ol {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 1px solid var(--line);
}

.table-of-contents a {
    display: block;
    margin-left: -1px;
    padding: 9px 0 9px 18px;
    color: var(--ink-soft);
    border-left: 2px solid transparent;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.table-of-contents a:hover,
.table-of-contents a.is-current {
    color: var(--accent-dark);
    border-left-color: var(--accent-dark);
}

.article-sidebar__back {
    display: inline-block;
    margin-top: 30px;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.article-content {
    min-width: 0;
}

.article-content p {
    max-width: 730px;
    margin: 0 0 1.35em;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.15vw, 1.08rem);
}

.article-content .article-intro {
    margin-bottom: clamp(76px, 9vw, 118px);
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    letter-spacing: -0.025em;
    line-height: 1.32;
}

.article-section {
    position: relative;
    margin-top: clamp(90px, 11vw, 150px);
    scroll-margin-top: 145px;
}

.article-intro + .article-section {
    margin-top: 0;
}

.section-number {
    margin-bottom: 11px !important;
    color: var(--accent-dark) !important;
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.article-section h2 {
    max-width: 760px;
    margin: 0 0 32px;
    font-family: var(--serif);
    font-size: clamp(2.35rem, 4.9vw, 4.8rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.article-section h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.12;
}

.article-photo {
    margin: clamp(48px, 7vw, 76px) 0;
}

.article-photo > a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #d2cbc0;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

.article-photo img {
    width: 100%;
    height: auto;
    transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 220ms ease;
}

.article-photo > a:hover img,
.article-photo > a:focus-visible img {
    transform: scale(1.025);
    filter: brightness(0.92);
}

.article-photo__zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(24, 23, 20, 0.76);
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.article-photo > a:hover .article-photo__zoom,
.article-photo > a:focus-visible .article-photo__zoom {
    opacity: 1;
    transform: translateY(0);
}

.article-photo figcaption {
    max-width: 680px;
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 0.76rem;
    line-height: 1.5;
}

.article-photo figcaption span {
    color: rgba(69, 66, 59, 0.64);
}

.article-photo--portrait {
    max-width: 520px;
    margin-inline: auto;
}

.travel-note {
    margin: clamp(50px, 7vw, 82px) 0;
    padding: clamp(28px, 5vw, 50px);
    border: 1px solid rgba(24, 23, 20, 0.12);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: 0 20px 60px rgba(24, 23, 20, 0.08);
}

.travel-note .eyebrow {
    color: var(--accent-dark);
}

.travel-note ul {
    display: grid;
    gap: 13px;
    margin: 27px 0 0;
    padding: 0;
    list-style: none;
}

.travel-note li {
    position: relative;
    padding-left: 25px;
    color: var(--ink-soft);
}

.travel-note li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateY(-50%);
}

/* Galería final */
.article-gallery-section > p:not(.section-number) {
    margin-bottom: 35px;
}

.article-gallery {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.article-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 270px;
    border-radius: 18px;
    background: #c9c0b4;
    cursor: zoom-in;
}

.article-gallery__item--wide {
    grid-column: 1 / -1;
    min-height: 410px;
}

.article-gallery__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 200ms ease;
}

.article-gallery__item:hover img,
.article-gallery__item:focus-visible img {
    transform: scale(1.045);
    filter: brightness(0.85);
}

.article-gallery__item span {
    position: absolute;
    right: 16px;
    bottom: 15px;
    z-index: 1;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(24, 23, 20, 0.66);
    font-size: 0.68rem;
    font-weight: 700;
}

/* Cierre, compartir y autor */
.article-footer {
    margin-top: clamp(90px, 12vw, 160px);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags span {
    padding: 8px 12px;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    font-weight: 700;
}

.share-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    padding: clamp(28px, 5vw, 48px);
    color: var(--white);
    border-radius: var(--radius-md);
    background: var(--ink);
}

.share-panel .eyebrow {
    color: #efa47c;
}

.share-panel h2 {
    max-width: 520px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.6vw, 3.2rem);
    line-height: 1.06;
}

.share-panel__links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-panel__links a,
.share-panel__links button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.share-panel__links a:hover,
.share-panel__links button:hover {
    background: rgba(255, 255, 255, 0.14);
}

.share-panel__status {
    grid-column: 1 / -1;
    min-height: 1.2em;
    margin: -8px 0 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.72rem !important;
}

.author-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.45fr);
    gap: clamp(34px, 7vw, 80px);
    margin-top: 18px;
    padding: clamp(30px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
}

.author-card h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
}

.author-card p:not(.eyebrow) {
    margin-top: 18px;
}

.author-card__social {
    display: grid;
    align-content: center;
    gap: 8px;
}

.author-card__social a {
    padding: 10px 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.author-card__social a:hover {
    color: var(--accent-dark);
    background: var(--paper);
}

.article-contact {
    border-top: 1px solid var(--line);
}

/* Lightbox nativo */
.photo-dialog {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    color: var(--white);
    border: 0;
    border-radius: 22px;
    background: #10100e;
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.55);
}

.photo-dialog::backdrop {
    background: rgba(5, 5, 4, 0.86);
    backdrop-filter: blur(8px);
}

.photo-dialog figure {
    display: grid;
    min-height: min(78vh, 760px);
    margin: 0;
    padding: 26px 70px 60px;
    place-items: center;
}

.photo-dialog img {
    max-width: 100%;
    max-height: calc(100vh - 145px);
    object-fit: contain;
}

.photo-dialog figcaption {
    position: absolute;
    right: 72px;
    bottom: 19px;
    left: 72px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    text-align: center;
}

.photo-dialog__close,
.photo-dialog__arrow {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.photo-dialog__close {
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
    line-height: 1;
}

.photo-dialog__arrow {
    top: 50%;
    width: 46px;
    height: 46px;
    font-size: 2rem;
    transform: translateY(-50%);
}

.photo-dialog__arrow--previous {
    left: 13px;
}

.photo-dialog__arrow--next {
    right: 13px;
}

.photo-dialog__close:hover,
.photo-dialog__arrow:hover {
    background: rgba(255, 255, 255, 0.16);
}

@keyframes article-hero-in {
    from {
        opacity: 0.6;
        transform: scale(1.035);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 960px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .article-sidebar__sticky {
        position: static;
        padding: 22px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.55);
    }

    .table-of-contents ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-left: 0;
    }

    .table-of-contents a {
        margin: 0;
        padding: 8px 9px;
        border: 0;
        border-radius: 8px;
        background: var(--paper-deep);
        text-align: center;
    }

    .article-sidebar__back {
        margin-top: 20px;
    }

    .share-panel {
        grid-template-columns: 1fr;
    }

    .author-card {
        grid-template-columns: 1fr;
    }

    .author-card__social {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .utility-bar__inner.language-bar {
        justify-content: space-between;
    }

    .language-control__select {
        min-width: 138px;
    }

    .article-hero {
        min-height: 680px;
    }

    .article-hero__content {
        padding-top: 115px;
        padding-bottom: 76px;
    }

    .breadcrumbs {
        margin-bottom: 70px;
    }

    .article-hero h1 {
        font-size: clamp(3rem, 14vw, 5.2rem);
    }

    .article-meta {
        display: grid;
        gap: 6px;
    }

    .article-layout {
        padding-top: 70px;
    }

    .table-of-contents ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-gallery {
        grid-template-columns: 1fr;
    }

    .article-gallery__item,
    .article-gallery__item--wide {
        grid-column: auto;
        min-height: 320px;
    }

    .author-card__social {
        grid-template-columns: 1fr;
    }

    .photo-dialog figure {
        padding: 58px 15px 64px;
    }

    .photo-dialog figcaption {
        right: 18px;
        left: 18px;
    }

    .photo-dialog__arrow {
        top: auto;
        bottom: 12px;
        transform: none;
    }
}

@media (max-width: 520px) {
    .language-control__label span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
    }

    .article-hero__shade {
        background: linear-gradient(180deg, rgba(14, 13, 11, 0.18), rgba(14, 13, 11, 0.94) 82%);
    }

    .breadcrumbs {
        margin-bottom: 55px;
    }

    .table-of-contents ol {
        grid-template-columns: 1fr;
    }

    .article-content .article-intro {
        font-size: 1.55rem;
    }

    .article-section h2 {
        font-size: 2.45rem;
    }

    .article-photo {
        margin-inline: -8px;
    }

    .article-photo > a {
        border-radius: 16px;
    }

    .article-gallery__item,
    .article-gallery__item--wide {
        min-height: 270px;
    }

    .share-panel__links {
        display: grid;
    }

    .share-panel__links a,
    .share-panel__links button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-hero__media img {
        animation: none;
    }

    .article-photo img,
    .article-gallery__item img {
        transition: none;
    }
}

/* Comentarios del artículo */
.comments-section {
    padding-top: clamp(20px, 4vw, 55px);
    padding-bottom: clamp(100px, 12vw, 165px);
}

.comments-section__intro,
.comment-form,
.comments-listing {
    max-width: 960px;
    margin-inline: auto;
}

.comments-section__intro {
    margin-bottom: 30px;
}

.comments-section__intro h2,
.comments-listing__heading h2 {
    max-width: 820px;
    margin: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(2.25rem, 5vw, 4.7rem);
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.comments-section__intro > p:last-child {
    max-width: 690px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.comment-form {
    position: relative;
    padding: clamp(28px, 5vw, 55px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 24px 70px rgba(35, 30, 24, 0.07);
}

.comment-form__grid {
    display: grid;
    gap: 24px;
}

.comment-form__message textarea {
    min-height: 190px;
    resize: vertical;
}

.comment-form .form-field input,
.comment-form .form-field textarea {
    width: 100%;
}

.form-help {
    margin: 8px 0 0;
    color: var(--ink-muted);
    font-size: 0.78rem;
}

.comment-form__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.comment-form__actions > p {
    max-width: 510px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.comment-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.comment-message {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid currentColor;
    border-radius: 13px;
    font-size: 0.92rem;
}

.comment-message p {
    margin: 0 0 7px;
    font-weight: 700;
}

.comment-message ul {
    margin: 0;
    padding-left: 20px;
}

.comment-message--success {
    color: #28583d;
    background: #eef8f1;
}

.comment-message--error {
    color: #8a2e27;
    background: #fff0ee;
}

.comments-listing {
    margin-top: clamp(75px, 9vw, 125px);
}

.comments-listing__heading {
    display: grid;
    gap: 10px;
    margin-bottom: 35px;
}

.comments-listing__heading h2 {
    font-size: clamp(2rem, 4vw, 3.75rem);
}

.comment-list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-card {
    padding: clamp(23px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.5);
}

.comment-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.comment-card__author {
    margin: 0;
    color: var(--accent-dark);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
}

.comment-card time {
    flex: 0 0 auto;
    color: var(--ink-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.comment-card__text {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.comments-empty {
    margin: 0;
    padding: 28px;
    border: 1px dashed var(--line-strong, var(--line));
    border-radius: 18px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.35);
}

@media (max-width: 760px) {
    .comment-form {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .comment-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .comment-form__actions .button {
        width: 100%;
    }

    .comment-card__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}
