/* Landing — sitio web institucional Cámara Malargüe */
:root {
    --navy: #0F2F4F;
    --navy-mid: #1E4E79;
    --blue: #2A6AA0;
    --blue-soft: #e8eef4;
    --teal: #1E4E79;
    --teal-soft: #e8eef4;
    --green: #1E4E79;
    --green-soft: #e8eef4;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #e3e8ef;
    --white: #ffffff;
    --sand: #F4F7FA;
    --gold: #f0a202;
    --gold-bright: #fbbf24;
    --gold-deep: #ea580c;
    --gold-ink: #92400e;
    --header-h: 46px;
    --font: "Source Sans 3", system-ui, sans-serif;
    --display: "Source Serif 4", Georgia, serif;
    --radius: 12px;
    --shadow: 0 12px 36px rgba(10, 39, 64, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    font-size: 14px;
}
html, body { overflow-x: hidden; max-width: 100vw; }

body.landing-camara {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--sand);
    min-height: 100vh;
}

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

.shell {
    width: min(1080px, calc(100% - 2.25rem));
    margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(10, 39, 64, 0.08);
}

.site-header-inner {
    width: min(1080px, calc(100% - 2.25rem));
    margin: 0 auto;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.site-header .nav-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--navy-mid);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header .nav-admin:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    text-decoration: none;
}

/* ===== HERO ===== */
.hero-site {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.1rem 0 8.5rem;
    background:
        linear-gradient(105deg, rgba(8, 28, 48, 0.88) 0%, rgba(14, 52, 82, 0.72) 42%, rgba(20, 70, 105, 0.55) 100%),
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(120, 190, 230, 0.35), transparent 55%),
        linear-gradient(160deg, #0a2740 0%, #1a4a6e 45%, #2a6f9a 100%);
    color: #fff;
    overflow: hidden;
}

.hero-site::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.9;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100% - 2.25rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 1.5rem 2.25rem;
    align-items: center;
    animation: heroIn 0.7s ease both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.hero-copy {
    min-width: 0;
}

.hero-brand-mark {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    max-width: 36rem;
}

.hero-brand-mark img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.hero-brand-name {
    font-family: var(--display);
    font-size: clamp(0.88rem, 1.4vw, 1.05rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
    max-width: 26rem;
}

.hero-title {
    margin: 0 0 0.45rem;
    font-family: var(--display);
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    max-width: none;
}

.hero-lead {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    max-width: 34rem;
}

.hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0;
    max-width: none;
    animation: heroIn 0.7s ease 0.12s both;
}

.hero-actions .btn-portal {
    min-height: 3.5rem;
    padding: 0.7rem 0.9rem;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 56px;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 200%;
    height: 100%;
    animation: waveDrift 16s linear infinite;
}

.hero-wave-path--back {
    fill: rgba(247, 250, 252, 0.45);
}

.hero-wave-path--front {
    fill: #f7fafc;
}

@keyframes waveDrift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.btn-portal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    min-height: 3.75rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-portal:hover,
.btn-portal:focus {
    transform: translateY(-4px);
    text-decoration: none;
}

.btn-portal-icon {
    flex-shrink: 0;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.btn-portal-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.btn-portal-title {
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.2;
}

.btn-portal-desc {
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.85;
}

.btn-portal-arrow {
    flex-shrink: 0;
    font-size: 0.95rem;
    opacity: 0.7;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn-portal:hover .btn-portal-arrow {
    transform: translateX(4px);
    opacity: 1;
}

.btn-portal-primary {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.btn-portal-primary .btn-portal-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.btn-portal-primary:hover,
.btn-portal-primary:focus {
    color: var(--navy);
    background: #f4f9fc;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.btn-portal-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.btn-portal-secondary .btn-portal-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-portal-secondary:hover,
.btn-portal-secondary:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.clima-malargue {
    min-width: 0;
}

.clima-malargue-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.2rem 0.55rem 0.2rem 0.2rem;
    border-radius: 8px;
    background: var(--blue-soft);
    border: 1px solid rgba(42, 111, 154, 0.15);
}

.clima-icono {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--blue);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.clima-datos {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.55rem;
    line-height: 1.2;
    min-width: 0;
}

.clima-temp {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
}

.clima-lugar {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.clima-desc {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

/* ===== VIDRIERA ===== */
.section-vidriera-main {
    position: relative;
    padding: 1.75rem 0 3.75rem;
    background:
        linear-gradient(180deg, #f7fafc 0%, var(--sand) 100%);
    overflow: hidden;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.section-label::before,
.section-label::after {
    content: "";
    width: 1.35rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-heading {
    margin: 0 0 1.35rem;
    font-family: var(--display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--navy);
    max-width: 42rem;
    line-height: 1.3;
}

.section-lead {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 36rem;
    line-height: 1.5;
}

.vidriera-head {
    position: relative;
    z-index: 1;
}

.vidriera-empresas {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
    animation: heroIn 0.65s ease 0.08s both;
}

.vidriera-stage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
}

.vidriera-viewport {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 320px;
    min-width: 0;
}

.vidriera-nav {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 162, 2, 0.35);
    background: #fff;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 6px 16px rgba(10, 39, 64, 0.08);
    flex-shrink: 0;
}

.vidriera-nav:hover,
.vidriera-nav:focus-visible {
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 100%);
    border-color: var(--gold);
    color: #1b1f24;
    transform: scale(1.05);
}

.vidriera-nav:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

.vidriera-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.vidriera-rotador {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.vidriera-rotador.is-visible { opacity: 1; transform: none; }
.vidriera-rotador.is-hidden { opacity: 0; transform: translateX(18px) scale(0.98); }

.vidriera-pie {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.vidriera-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.vidriera-dot {
    width: 0.45rem;
    height: 0.45rem;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #c5d4e3;
    cursor: pointer;
    transition: 0.25s ease;
}

.vidriera-dot.active {
    width: 1.35rem;
    border-radius: 6px;
    background: var(--gold);
}

.vidriera-contador {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 600;
}

.vidriera-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 64px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    line-height: 0;
}

.vidriera-wave svg {
    display: block;
    width: 200%;
    height: 100%;
    animation: waveDrift 20s linear infinite reverse;
}

.vidriera-wave-path--back {
    fill: rgba(10, 39, 64, 0.08);
}

.vidriera-wave-path--front {
    fill: var(--navy);
}

.vidriera-card {
    width: 100%;
    margin: 0 auto;
    border-radius: 1.5rem;
    background: #fffdf8;
    border: 1px solid rgba(240, 162, 2, 0.32);
    overflow: hidden;
    position: relative;
    box-shadow:
        0 28px 60px rgba(10, 39, 64, 0.16),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 0 32px rgba(240, 162, 2, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: grid;
    grid-template-columns: minmax(280px, 1.28fr) minmax(0, 1fr);
    min-height: 320px;
}

.vidriera-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    z-index: 4;
    background: linear-gradient(90deg, #f59e0b, var(--gold), var(--gold-bright), #f59e0b);
    background-size: 200% 100%;
    animation: pubPopupShine 3s linear infinite;
}

.vidriera-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 34px 70px rgba(10, 39, 64, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset,
        0 0 40px rgba(240, 162, 2, 0.2);
}

.vidriera-card-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.35rem;
    min-height: 320px;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 18%, rgba(251, 191, 36, 0.32), transparent 40%),
        radial-gradient(circle at 88% 82%, rgba(30, 78, 121, 0.55), transparent 48%),
        linear-gradient(165deg, #1a2740 0%, #0c1524 58%, #101826 100%);
}

.vidriera-card-frame {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 268px;
    padding: 1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(251, 191, 36, 0.32);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 18px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.vidriera-card-media-img {
    position: relative;
    z-index: 0;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 268px;
    object-fit: contain;
    object-position: center;
    padding: 0;
    border-radius: 0.35rem;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.vidriera-card-body {
    padding: 1.85rem 1.9rem 1.55rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.35rem;
    min-width: 0;
    background:
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(251, 191, 36, 0.14), transparent 58%),
        linear-gradient(180deg, rgba(255, 253, 248, 0.96) 0%, rgba(255, 246, 228, 0.94) 100%);
    border-left: 1px solid rgba(240, 162, 2, 0.22);
    backdrop-filter: blur(8px);
}

.vidriera-card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
}

.vidriera-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: wrap;
}

.vidriera-card-kicker {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.vidriera-card-kicker::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(240, 162, 2, 0.7), transparent);
}

.vidriera-card-body .vidriera-descuento-chip {
    flex: 0 0 auto;
    animation: chipPulse 2.8s ease-in-out infinite;
}

@keyframes chipPulse {
    0%, 100% { box-shadow: 0 8px 18px rgba(240, 162, 2, 0.38); }
    50% { box-shadow: 0 10px 22px rgba(240, 162, 2, 0.58); }
}

.vidriera-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.vidriera-card .badge-rubro {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--gold-ink);
    background: linear-gradient(135deg, #fff7d6, #fde68a);
    border: 1px solid rgba(240, 162, 2, 0.45);
    border-radius: 999px;
    padding: 0.32rem 0.8rem;
}

.vidriera-badge-familiar {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--navy);
    background: rgba(15, 47, 79, 0.06);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
}

.vidriera-card-titulo {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.03em;
    line-height: 1.15;
    word-break: break-word;
}

.vidriera-card-detalle {
    margin: 0;
    font-size: 1.02rem;
    color: #4b5568;
    line-height: 1.55;
    max-width: 34rem;
}

.vidriera-card-foot {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--gold-ink);
    letter-spacing: 0.03em;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 162, 2, 0.38);
    background: rgba(255, 255, 255, 0.72);
}

.vidriera-descuento-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #1b1f24;
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 45%, var(--gold-deep) 100%);
    border-radius: 999px;
    padding: 0.42rem 0.85rem;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(240, 162, 2, 0.45);
}

.vidriera-card-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.45rem;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(10, 39, 64, 0.18);
}

.vidriera-card:hover .vidriera-card-cta {
    background: var(--navy-mid);
    box-shadow: 0 10px 22px rgba(10, 39, 64, 0.22);
}

.vidriera-card:hover .vidriera-card-cta i {
    transform: translateX(4px);
}

.vidriera-card-cta i {
    font-size: 0.78rem;
    transition: transform 0.2s ease;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.78);
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.site-footer-inner { width: min(1100px, 100%); margin: 0 auto; }

.site-footer strong {
    display: block;
    font-family: var(--display);
    font-size: 1.08rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.45rem;
}

.site-footer p {
    margin: 0 0 0.9rem;
    font-size: 0.9rem;
}

.site-footer a {
    color: #9ecae8;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ===== POPUP ===== */
body.pub-popup-open { overflow: hidden; }
#pub-popup-overlay {
    position: fixed; inset: 0; z-index: 2000;
    display: none; align-items: center; justify-content: center;
    padding: 1.25rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(240, 162, 2, 0.18), transparent 55%),
        radial-gradient(ellipse at center, rgba(20, 40, 70, 0.58), rgba(8, 12, 18, 0.92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#pub-popup-overlay.is-open { display: flex; }
.pub-popup-card {
    width: min(420px, 100%);
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(240, 162, 2, 0.35);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), 0 0 30px rgba(240, 162, 2, 0.15);
    animation: pubPopupIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.pub-popup-card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    z-index: 3;
    background: linear-gradient(90deg, #f59e0b, #f0a202, #fbbf24, #f59e0b);
    background-size: 200% 100%;
    animation: pubPopupShine 3s linear infinite;
}
.pub-popup-card.is-fading {
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@keyframes pubPopupIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
@keyframes pubPopupShine {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pubPopupCtaPulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(240, 162, 2, 0.4); }
    50% { box-shadow: 0 8px 22px rgba(240, 162, 2, 0.65); }
}
#pub-popup-close {
    position: absolute;
    top: 0.7rem;
    right: 0.75rem;
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}
#pub-popup-close:hover,
#pub-popup-close:active {
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
}
#pub-popup-close:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}
#pub-popup-media {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(240, 162, 2, 0.25), transparent 45%),
        linear-gradient(160deg, #1e293b 0%, #0f172a 55%, #111827 100%);
}
#pub-popup-media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.pub-popup-body { padding: 1.2rem 1.4rem 1.45rem; text-align: center; }
.pub-popup-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #92400e;
}
#pub-popup-empresa {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.65rem;
    font-weight: 700;
    color: #92400e;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid rgba(240, 162, 2, 0.45);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    margin: 0 0 0.65rem;
}
#pub-popup-titulo {
    font-size: 1.32rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.4rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
#pub-popup-texto {
    color: #475569;
    margin: 0 0 1rem;
    font-weight: 500;
    line-height: 1.45;
}
#pub-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f0a202 45%, #ea580c 100%);
    color: #1b1f24;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.7rem 1.45rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(240, 162, 2, 0.4);
    animation: pubPopupCtaPulse 2.4s ease-in-out infinite;
}
#pub-popup-cta:hover,
#pub-popup-cta:active {
    color: #1b1f24;
    text-decoration: none;
    filter: brightness(1.06);
}
#pub-popup-cta:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 3px;
}
#pub-popup-dots {
    display: none;
    gap: 0.15rem;
    justify-content: center;
    margin-top: 0.85rem;
}
.pub-popup-dot {
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.pub-popup-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #e2e8f0;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, border-radius 0.2s ease, background 0.2s ease;
}
.pub-popup-dot.is-active::after {
    background: #f0a202;
    width: 1.25rem;
    border-radius: 6px;
}
.pub-popup-dot:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 0;
    border-radius: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
    .hero-site {
        padding: 1.15rem 0 2.85rem;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }
    .hero-title { max-width: none; }
    .hero-brand-mark {
        align-items: flex-start;
        max-width: none;
    }
    .hero-actions {
        grid-template-columns: 1fr;
        max-width: 28rem;
    }
    .hero-wave { height: 48px; }
    .vidriera-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        min-height: 0;
    }
    .vidriera-card-media {
        min-height: 250px;
        padding: 1rem;
    }
    .vidriera-card-frame {
        min-height: 210px;
        padding: 0.75rem;
    }
    .vidriera-card-body {
        border-left: 0;
        border-top: 1px solid rgba(240, 162, 2, 0.22);
    }
    .vidriera-stage {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    .vidriera-viewport {
        order: -1;
        width: 100%;
        min-height: 0;
    }
}

@media (max-width: 720px) {
    .shell,
    .site-header-inner,
    .hero-inner {
        width: min(1080px, calc(100% - 1.5rem));
    }
    .clima-lugar { display: none; }
    .clima-desc { max-width: 9rem; }
    .hero-brand-mark { gap: 0.85rem; }
    .hero-brand-mark img { width: 58px; height: 58px; border-radius: 12px; }
    .hero-brand-name { font-size: 0.92rem; max-width: none; }
    .hero-actions {
        gap: 0.7rem;
        max-width: none;
    }
    .hero-actions .btn-portal {
        padding: 0.95rem 1rem;
        min-height: 4.6rem;
        gap: 0.75rem;
    }
    .btn-portal-icon {
        width: 2.85rem;
        height: 2.85rem;
        font-size: 1.1rem;
    }
    .btn-portal-title { font-size: 0.95rem; }
    .btn-portal-desc { font-size: 0.82rem; }
    .vidriera-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .vidriera-nav-group { align-self: flex-end; }
    .vidriera-viewport { min-height: 0; }
    .vidriera-card-body {
        padding: 1.25rem 1.2rem 1.35rem;
        align-items: stretch;
    }
    .vidriera-card-titulo { font-size: 1.25rem; }
    .vidriera-card-detalle { font-size: 0.95rem; }
    .vidriera-card-cta { justify-content: center; align-self: stretch; }
    .vidriera-card-media-img {
        max-width: 100%;
        max-height: 210px;
    }
    .section-vidriera-main { padding: 2rem 0 4.5rem; }
    .vidriera-wave { height: 48px; }
}

@media (max-width: 420px) {
    .btn-portal-arrow { display: none; }
    .site-header .nav-admin { font-size: 0.78rem; padding: 0.35rem 0.65rem; }
    #pub-popup-overlay { padding: 0.85rem; }
    #pub-popup-media { height: 180px; }
    #pub-popup-titulo { font-size: 1.15rem; }
    .pub-popup-body { padding: 1rem 1.1rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-wave svg,
    .vidriera-wave svg,
    .hero-inner,
    .hero-actions,
    .vidriera-empresas,
    .vidriera-card-media-img,
    .vidriera-card-media .vidriera-descuento-chip,
    .vidriera-card::before,
    .pub-popup-card,
    .pub-popup-card::before,
    #pub-popup-cta {
        animation: none !important;
    }
    .vidriera-rotador,
    .pub-popup-card.is-fading,
    .pub-popup-dot::after {
        transition: none;
    }
    .vidriera-card:hover,
    .vidriera-card:hover .vidriera-card-media-img {
        transform: none;
    }
}
