@media (min-width: 769px) { html { zoom: 0.9; } }

        :root {
            --lime: #74b42c; --lime-dark: #5a9420; --lime-light: #9bd86c; --lime-soft: #eef7e2;
            --sky: #04a4dc; --sky-dark: #0481b0; --sky-light: #7ad7f0; --sky-soft: #e6f6fc;
            --primary-blue: #044c8c; --ink: #243b2e; --gray: #5d6d6a;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; overflow-x: hidden; background: #f7fbf3; }
        .capas-header, .capas-header * { line-height: normal !important; }

        .news-hero { position: relative; background: linear-gradient(120deg, var(--lime) 0%, var(--lime-dark) 35%, var(--sky-dark) 75%, var(--sky) 100%); color: var(--white); padding: 46px 20px 80px; text-align: center; overflow: hidden; }
        .news-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 1.5px, transparent 1.5px), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 1.5px, transparent 1.5px); background-size: 60px 60px, 90px 90px; pointer-events: none; }
        .news-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
        .news-hero-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; backdrop-filter: blur(6px); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
        .news-hero h1 { font-size: 2.6rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; text-shadow: 0 3px 12px rgba(0,0,0,0.2); }
        .news-hero h1 span { color: #eaffd1; text-shadow: 0 0 18px rgba(155, 216, 108, 0.6); }
        .news-hero p { font-size: 1.1rem; opacity: 0.95; line-height: 1.5; max-width: 560px; margin: 0 auto; }
        .news-hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 1; }
        .news-hero-wave svg { display: block; width: 100%; height: 60px; }
        @media (max-width: 768px) { .news-hero { padding: 38px 16px 65px; } .news-hero h1 { font-size: 1.9rem; } .news-hero p { font-size: 0.95rem; } .news-hero-icon { width: 54px; height: 54px; font-size: 1.6rem; } }

        .tabs-wrap { max-width: 1150px; margin: -34px auto 0; padding: 0 20px; position: relative; z-index: 5; }
        .tabs-switch { display: inline-flex; background: white; border-radius: 50px; padding: 6px; box-shadow: 0 10px 30px rgba(4, 76, 140, 0.14); gap: 4px; position: relative; left: 50%; transform: translateX(-50%); }
        .tab-btn { display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent; color: var(--gray); font-weight: 700; font-size: 1rem; padding: 12px 28px; border-radius: 40px; cursor: pointer; transition: all 0.3s ease; font-family: inherit; }
        .tab-btn i { font-size: 1.15rem; }
        .tab-btn.active.is-news { background: linear-gradient(135deg, var(--sky), var(--sky-dark)); color: white; box-shadow: 0 6px 16px rgba(4, 164, 220, 0.35); }
        .tab-btn.active.is-info { background: linear-gradient(135deg, var(--lime), var(--lime-dark)); color: white; box-shadow: 0 6px 16px rgba(116, 180, 44, 0.35); }
        .tab-btn:not(.active):hover { color: var(--ink); background: #f1f6ec; }
        @media (max-width: 480px) { .tab-btn { padding: 10px 18px; font-size: 0.9rem; } }

        .content-area { max-width: 1150px; margin: 0 auto; padding: 40px 20px 60px; }
        .panel { display: none; animation: fadeSlide 0.45s ease; }
        .panel.active { display: block; }
        @keyframes fadeSlide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
        .panel-intro { text-align: center; margin-bottom: 34px; }
        .panel-intro h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
        .panel-intro.news-tone h2 { color: var(--sky-dark); }
        .panel-intro.info-tone h2 { color: var(--lime-dark); }
        .panel-intro p { color: var(--gray); max-width: 580px; margin: 0 auto; line-height: 1.6; }

        .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
        .card { background: white; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(36, 59, 46, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
        .card:hover { transform: translateY(-7px); box-shadow: 0 16px 34px rgba(36, 59, 46, 0.16); }
        .card-img { position: relative; height: 185px; overflow: hidden; cursor: zoom-in; background: linear-gradient(135deg, var(--sky-light), var(--sky)); }
        .info-tone-card .card-img { background: linear-gradient(135deg, var(--lime-light), var(--lime)); }
        .card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
        .card:hover .card-img img { transform: scale(1.08); }
        .card-zoom-hint { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.45); color: white; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; backdrop-filter: blur(4px); z-index: 2; }
        .card-tag { position: absolute; top: 12px; left: 12px; color: white; font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; display: inline-flex; align-items: center; gap: 5px; z-index: 2; box-shadow: 0 3px 9px rgba(0,0,0,0.18); }
        .tag-sky { background: var(--sky); } .tag-lime { background: var(--lime); } .tag-blue { background: var(--primary-blue); }
        .card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
        .card-date { font-size: 0.82rem; color: var(--gray); font-weight: 600; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 5px; }
        .card-upload-date { font-size: 0.76rem; color: #7d8b88; font-weight: 600; margin: -2px 0 10px; display: inline-flex; align-items: center; gap: 5px; opacity: 0.82; }
        .card-upload-date i { font-size: 0.82rem; }
        .card-body h4 { font-size: 1.2rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 9px; line-height: 1.3; }
        .card-body p { color: var(--gray); font-size: 0.94rem; line-height: 1.55; margin-bottom: 16px; flex: 1; }
        .card-readmore { align-self: flex-start; border: none; background: transparent; font-weight: 700; font-size: 0.92rem; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 0; font-family: inherit; transition: gap 0.3s ease; }
        .news-tone-card .card-readmore { color: var(--sky-dark); }
        .info-tone-card .card-readmore { color: var(--lime-dark); }
        .card-readmore:hover { gap: 12px; }
        @media (max-width: 768px) { .content-area { padding: 30px 16px 50px; } .panel-intro h2 { font-size: 1.55rem; } .cards { grid-template-columns: 1fr; gap: 22px; } }

        /* FIX: mantener bordes redondos siempre en tarjetas y avisos */

        .card-img,
        .card-img img {
            border-radius: 18px 18px 0 0 !important;
        }

        .news-modal { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(20, 35, 28, 0.82); backdrop-filter: blur(4px); padding: 20px; overflow-y: auto; }
        .news-modal.open { display: flex; align-items: flex-start; justify-content: center; }
        .modal-card { background: white; max-width: 640px; width: 100%; border-radius: 22px; overflow: hidden; margin: auto; box-shadow: 0 30px 70px rgba(0,0,0,0.4); animation: modalPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
        @keyframes modalPop { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
        .modal-img { position: relative; height: 260px; background: linear-gradient(135deg, var(--lime-light), var(--sky)); }
        .modal-img img { width: 100%; height: 100%; object-fit: cover; }
        .modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(0,0,0,0.5); color: white; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; z-index: 3; }
        .modal-close:hover { background: rgba(0,0,0,0.75); }
        .modal-body { padding: 28px 30px 32px; }
        .modal-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--lime-dark); margin-bottom: 10px; }
        .modal-body h3 { font-size: 1.6rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 14px; line-height: 1.25; }
        .modal-body p { color: var(--gray); line-height: 1.7; margin-bottom: 14px; }
        .modal-list { list-style: none; margin: 0 0 8px; }
        .modal-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); margin-bottom: 9px; line-height: 1.5; }
        .modal-list li i { color: var(--lime); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
        .modal-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; background: linear-gradient(135deg, var(--lime), var(--lime-dark)); color: white; padding: 12px 24px; border-radius: 30px; text-decoration: none; font-weight: 700; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 6px 18px rgba(116, 180, 44, 0.3); }
        .modal-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(116, 180, 44, 0.4); color: white; }
        .img-lightbox { display: none; position: fixed; inset: 0; z-index: 10001; background: rgba(0,0,0,0.9); cursor: zoom-out; padding: 30px; }
        .img-lightbox.open { display: flex; align-items: center; justify-content: center; }
        .img-lightbox img { max-width: 92%; max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: modalPop 0.3s ease; }
        .img-lightbox-close { position: absolute; top: 22px; right: 30px; color: white; font-size: 2.4rem; cursor: pointer; line-height: 1; }
        @media (max-width: 560px) { .modal-img { height: 200px; } .modal-body { padding: 22px; } .modal-body h3 { font-size: 1.35rem; } }

        .alerts-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 44px; }
        .alert-mini { background: linear-gradient(135deg, var(--sky-soft), var(--lime-soft)); border-left: 5px solid var(--lime); border-radius: 14px; padding: 22px; display: flex; gap: 16px; align-items: center; }
        .alert-mini:nth-child(even) { border-left-color: var(--sky); }
        .alert-mini-icon { min-width: 50px; height: 50px; border-radius: 50%; background: white; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--lime-dark); flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
        .alert-mini:nth-child(even) .alert-mini-icon { color: var(--sky-dark); }
        .alert-mini h4 { font-size: 1.05rem; color: var(--primary-blue); margin-bottom: 4px; }
        .alert-mini p { font-size: 0.88rem; color: var(--gray); line-height: 1.4; margin: 0; }
        .alert-link { text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
        .alert-link:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(4, 76, 140, 0.14); }
        .alert-mini-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--sky-dark); font-size: 0.86rem; font-weight: 800; }
        .alert-mini-btn i { transition: transform 0.3s ease; }
        .alert-link:hover .alert-mini-btn i { transform: translateX(4px); }

        /* Botón de regreso igual al de Delegaciones */
        .back-button {
            position: absolute;
            top: 25px;
            left: 25px;
            z-index: 10;
        }

        .btn-back {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            padding: 14px 24px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1rem;
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: 2px solid rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(20px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .btn-back:hover {
            background: rgba(255, 255, 255, 0.95);
            color: var(--lime-dark);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(116, 180, 44, 0.3);
            border-color: rgba(255, 255, 255, 0.8);
        }

        .btn-back i {
            font-size: 1.3rem;
            transition: transform 0.3s ease;
        }

        .btn-back:hover i {
            transform: translateX(-4px);
        }

        @media (max-width: 768px) {
            .back-button { top: 15px; left: 15px; }
            .btn-back { padding: 8px 16px; font-size: 0.85rem; gap: 6px; }
            .btn-back i { font-size: 1.1rem; }
        }

        @media (max-width: 576px) {
            .back-button { top: 12px; left: 12px; }
            .btn-back { padding: 6px 12px; font-size: 0.8rem; gap: 4px; }
            .btn-back i { font-size: 1rem; }
        }

        /* Botón inferior de regresar verde limón y azul */
        :root {
            --sunset-orange: #74b42c;
            --vibrant-orange: #5a9420;
            --deep-blue-return: #04a4dc;
            --ocean-blue: #0481b0;
            --white: #FFFFFF;
        }

        .return-button-container {
            display: flex;
            justify-content: center;
            margin: 30px 0;
            padding: 0 20px;
        }

        .return-portal-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, var(--sunset-orange), var(--deep-blue-return));
            color: var(--white);
            padding: 12px 24px;
            border-radius: 40px;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
            position: relative;
            overflow: hidden;
            border: none;
            cursor: pointer;
            z-index: 1;
        }

        .return-portal-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--vibrant-orange), var(--ocean-blue));
            opacity: 0;
            z-index: -1;
            transition: opacity 0.4s ease;
        }

        .return-portal-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 77, 153, 0.35);
            color: var(--white);
        }

        .return-portal-btn:hover::before { opacity: 1; }
        .return-portal-btn i { font-size: 1.2rem; transition: transform 0.3s ease; }
        .return-portal-btn:hover i { transform: translateX(-4px); }

        /* Botón scroll igual a Delegaciones */
        .back-to-top-pulse {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #2E86AB, #044C8C);
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(4, 76, 140, 0.3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            z-index: 99;
        }

        .back-to-top-pulse svg { transition: transform 0.3s ease; }

        .back-to-top-pulse:hover {
            background: linear-gradient(135deg, #044C8C, #2E86AB);
            box-shadow: 0 6px 20px rgba(4, 76, 140, 0.4);
            transform: translateY(0) scale(1.05);
        }

        .back-to-top-pulse:hover svg { transform: translateY(-3px); }

        .back-to-top-pulse.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            animation: subtle-glow 6s ease infinite;
        }

        .back-to-top-pulse::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-color: transparent;
            border: 2px solid #044C8C;
            opacity: 0;
            z-index: -1;
            animation: subtle-ripple 4s 2s ease-out infinite;
        }

        @keyframes subtle-ripple {
            0% { transform: scale(1); opacity: 0; }
            15% { opacity: 0.3; }
            50% { transform: scale(1.5); opacity: 0; }
            100% { transform: scale(1.5); opacity: 0; }
        }

        @keyframes subtle-glow {
            0%, 100% { box-shadow: 0 4px 15px rgba(4, 76, 140, 0.3); }
            50% { box-shadow: 0 0 20px 5px rgba(4, 164, 220, 0.5); }
        }

        /* Botón flotante de chat igual a Delegaciones */
        .watsi__button {
            position: fixed;
            bottom: 20px;
            left: 20px;
            z-index: 1000;
            cursor: pointer;
            user-select: none;
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .watsi__button.watsi-visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .watsi__button.watsi__button--hidden {
            opacity: 0;
            visibility: hidden;
            transform: scale(0.8);
            pointer-events: none;
        }

        .watsi__button__open {
            position: relative;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #1976d2 0%, #4caf50 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 20px rgba(25, 118, 210, 0.4);
            transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            overflow: hidden;
            animation: watsiPulse 2s infinite;
        }

        .watsi__button:hover .watsi__button__open {
            transform: scale(1.1);
            background: linear-gradient(135deg, #1565c0 0%, #388e3c 100%);
            box-shadow: 0 6px 25px rgba(21, 101, 192, 0.6);
        }

        .watsi__button__sendtext {
            position: absolute;
            left: 70px;
            top: 50%;
            transform: translateY(-50%);
            background: linear-gradient(135deg, #1565c0 0%, #388e3c 100%);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            pointer-events: none;
            user-select: none;
        }

        .watsi__button:hover .watsi__button__sendtext {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) translateX(10px);
        }

        .watsi__button__sendtext::before {
            content: '';
            position: absolute;
            left: -8px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-right: 8px solid #1565c0;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
        }

        .watsi__button__send {
            position: absolute;
            top: 0;
            left: 0;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .watsi__tooltip {
            position: absolute;
            bottom: 75px;
            left: 0;
            background: #333;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 13px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            pointer-events: none;
        }

        .watsi__tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 20px;
            width: 0;
            height: 0;
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid #333;
        }

        .watsi__button:hover .watsi__tooltip {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .watsi__box {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 350px;
            max-width: calc(100vw - 40px);
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px) scale(0.8);
            transform-origin: bottom left;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 999;
            overflow: hidden;
        }

        .watsi__box.watsi__box--show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .watsi__header {
            background: linear-gradient(135deg, #1565c0 0%, #00695c 100%);
            padding: 20px;
            position: relative;
            color: white;
        }

        .watsi__powered {
            font-size: 14px;
            font-weight: 600;
            color: white;
            letter-spacing: 0.5px;
        }

        .watsi__close {
            position: absolute;
            top: 15px;
            right: 20px;
            width: 30px;
            height: 30px;
            cursor: pointer;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .watsi__close:hover { background: rgba(255, 255, 255, 0.2); }

        .watsi__close::before,
        .watsi__close::after {
            content: '';
            position: absolute;
            top: 14px;
            left: 7px;
            width: 16px;
            height: 2px;
            background: white;
            border-radius: 1px;
        }

        .watsi__close::before { transform: rotate(45deg); }
        .watsi__close::after { transform: rotate(-45deg); }

        .watsi__box__content { padding: 25px; }

        .watsi__message {
            background: linear-gradient(135deg, #e3f2fd 0%, #e0f2f1 100%);
            padding: 18px;
            border-radius: 15px;
            border-left: 4px solid #1e88e5;
            font-size: 16px;
            line-height: 1.5;
            color: #0d47a1;
        }

        .watsi__action {
            padding: 20px;
            border-top: 1px solid #e0e0e0;
            background: #fafafa;
            display: flex;
            gap: 10px;
        }

        .watsi__action__button {
            flex: 1;
            background: linear-gradient(135deg, #1e88e5 0%, #26a69a 100%);
            color: white;
            border: none;
            padding: 12px 16px;
            border-radius: 25px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
        }

        .watsi__action__button:hover {
            background: linear-gradient(135deg, #1565c0 0%, #00695c 100%);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 6px 16px rgba(30, 136, 229, 0.4);
        }

        .watsi__action__button--blue { background: #2196f3; }
        .watsi__action__button--blue:hover { background: #1976d2; }

        @keyframes watsiPulse {
            0% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(30, 136, 229, 0); }
            100% { box-shadow: 0 0 0 0 rgba(30, 136, 229, 0); }
        }

        @media (max-width: 768px) {
            .return-portal-btn { padding: 10px 20px; font-size: 0.95rem; }
            .back-to-top-pulse { width: 45px; height: 45px; bottom: 20px; right: 20px; }
            .watsi__button, .watsi__box { display: none !important; }
        }

        @media (max-width: 576px) {
            .return-portal-btn { padding: 8px 16px; font-size: 0.9rem; }
            .return-portal-btn i { font-size: 1rem; }
        }

        @media (max-width: 480px) {
            .back-to-top-pulse { width: 40px; height: 40px; bottom: 15px; right: 15px; }
            .watsi__box { width: calc(100vw - 20px); left: 10px; bottom: 15px; }
            .watsi__button { bottom: 15px; left: 15px; }
            .watsi__action { flex-direction: column; }
            .watsi__action__button { font-size: 16px; padding: 12px 20px; }
        }

    /* Mantiene las tarjetas redondeadas siempre, incluso durante hover */
    .card,
    .card:hover,
    .news-tone-card,
    .news-tone-card:hover,
    .info-tone-card,
    .info-tone-card:hover {
        border-radius: 18px !important;
        overflow: hidden !important;
        background-clip: padding-box !important;
        clip-path: inset(0 round 18px) !important;
    }

    .card-img,
    .card-img:hover {
        border-radius: 18px 18px 0 0 !important;
        overflow: hidden !important;
        background-clip: padding-box !important;
    }

    .card-img img,
    .card-img img:hover {
        border-radius: 18px 18px 0 0 !important;
        overflow: hidden !important;
        display: block !important;
    }

    /* Evita el salto visual cuando cambia el borde inferior en hover */
    .card {
        border: 1px solid transparent !important;
        border-bottom: 4px solid transparent !important;
    }

    .news-tone-card:hover {
        border-bottom-color: var(--sky) !important;
    }

    .info-tone-card:hover {
        border-bottom-color: var(--lime) !important;
    }

    /* Mantiene redondeados los cuadros de reportes/redes/mapa */
    .alert-mini,
    .alert-mini:hover,
    .alert-link,
    .alert-link:hover {
        border-radius: 14px !important;
        overflow: hidden !important;
        background-clip: padding-box !important;
        clip-path: inset(0 round 14px) !important;
    }

/* ===== Cambios de la revisión ===== */

/* 11. Ícono de "estás aquí" en el menú */
.capas-dropdown-item .icono-aqui { width: 1em; height: 1em; vertical-align: -0.125em; }

/* 3. Se ve qué tiene el foco con teclado */
.card-img[role="button"]:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.tab-btn:focus-visible, .card-readmore:focus-visible, .filtro:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* 6. Teléfonos: se ven igual, pero al tocarlos se marca */
a.tel { color: inherit; text-decoration: none; font-weight: 600; }
a.tel:hover { text-decoration: underline; }
@media (hover: none) { a.tel { text-decoration: underline dotted; text-underline-offset: 3px; } }
.modal-list a { color: var(--sky-dark); font-weight: 600; text-decoration: none; }

/* 16. Aviso de que las noticias vienen de Facebook */
.news-fuente { text-align: center; color: var(--gray); font-size: 0.88rem; margin: -6px auto 18px; }
.news-fuente i { color: #1877f2; }
.news-fuente a { color: var(--sky-dark); font-weight: 600; }

/* 18. Filtro por tipo */
.news-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 26px; }
.filtro {
    border: 2px solid #dbe9e0; background: white; color: var(--ink); font-family: inherit; font-weight: 600;
    font-size: 0.86rem; padding: 7px 16px; border-radius: 30px; cursor: pointer; transition: all 0.25s ease;
}
.filtro:hover { border-color: var(--sky); color: var(--sky-dark); }
.filtro.activo { background: var(--sky); border-color: var(--sky); color: white; }

/* 14. Etiqueta "Nuevo" */
.card-nuevo {
    position: absolute; top: 12px; right: 56px; z-index: 2; background: #ff6b35; color: white;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px; box-shadow: 0 3px 9px rgba(0, 0, 0, 0.18);
}

/* Publicación sin foto */
.card-img.sin-foto { background: linear-gradient(135deg, var(--sky-soft), var(--lime-soft)) url('/img principal/logo.png') center / 90px no-repeat; }
.modal-img.sin-foto img { object-fit: contain; padding: 40px; }

/* Mientras cargan las de Facebook */
.card-cargando { min-height: 380px; background: linear-gradient(90deg, #eef3f1 25%, #f7faf9 50%, #eef3f1 75%); background-size: 200% 100%; animation: cargandoBrillo 1.4s ease-in-out infinite; }
@keyframes cargandoBrillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sin-noticias { grid-column: 1 / -1; text-align: center; color: var(--gray); background: white; border-radius: 16px; padding: 26px; }
.sin-noticias i { color: var(--lime); font-size: 1.2rem; vertical-align: -2px; }
.sin-noticias a { color: var(--sky-dark); font-weight: 600; }

/* 13. Noticias anteriores */
.news-anteriores { margin: 34px 0 0; background: white; border-radius: 18px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); }
.news-anteriores summary {
    cursor: pointer; padding: 18px 24px; font-weight: 700; color: var(--primary-blue); list-style: none;
    display: flex; align-items: center; gap: 10px;
}
.news-anteriores summary::-webkit-details-marker { display: none; }
.news-anteriores summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; transition: transform 0.3s ease; }
.news-anteriores[open] summary::after { transform: rotate(180deg); }
.news-anteriores > .cards { padding: 0 24px 24px; }
@media (max-width: 768px) { .news-anteriores > .cards { padding: 0 14px 18px; } }

/* 17. Compartir dentro de la noticia */
.modal-compartir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed #dbe9e0; color: var(--gray); font-size: 0.88rem; font-weight: 600; }
.compartir-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 20px; border: 1px solid #dbe9e0;
    background: white; color: var(--ink); font-family: inherit; font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.compartir-btn:hover { border-color: var(--sky); color: var(--sky-dark); }
.compartir-wa { color: #128c4a; }

/* 19. Imagen en grande con flechas y pie */
.img-lightbox-close { background: none; border: none; padding: 0; font-family: inherit; z-index: 2; }
.img-lightbox-close:focus-visible, .img-lightbox-flecha:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: 4px; border-radius: 50%; }
.img-lightbox-figura { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 92%; }
.img-lightbox-figura img { max-width: 100%; }
.img-lightbox-figura figcaption { color: rgba(255, 255, 255, 0.85); margin-top: 12px; text-align: center; font-size: 0.95rem; }
.img-lightbox-flecha {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%;
    border: none; background: rgba(255, 255, 255, 0.15); color: white; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.img-lightbox-flecha:hover { background: rgba(255, 255, 255, 0.3); }
.img-lightbox-flecha.anterior { left: 18px; }
.img-lightbox-flecha.siguiente { right: 18px; }
.img-lightbox-flecha[hidden] { display: none; }
@media (max-width: 560px) { .img-lightbox-flecha { width: 40px; height: 40px; } .img-lightbox-flecha.anterior { left: 6px; } .img-lightbox-flecha.siguiente { right: 6px; } }

@media (prefers-reduced-motion: reduce) {
    .card-cargando, .watsi__button__open, .watsi__action__button, .watsi__action__button::before,
    .back-to-top-pulse::before, .back-to-top-pulse.visible, .capas-bubble { animation: none !important; }
}
