/*
Theme Name: Phlox Pro Child
Template: phlox-pro
*/

/* ─── Aquí va TODO tu CSS (desde :root hasta el último @media) ─── */
.anpros-ui {
    --bg-glass: rgba(255, 255, 255, 0.9);
    --surface: #ffffff;
    --primary: #13382b;
    --accent: #166534;
    --accent-light: #f0fdf4;
    --gold: #c29b38;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --footer-bg: #0b1f18;
    --footer-text: #d1d5db;
    --border-subtle: rgba(0, 0, 0, 0.04);
    --border-light: rgba(0, 0, 0, 0.06);
    --radius-md: 14px;
    --radius-lg: 18px;
    --transition-smooth: 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.anpros-ui, .anpros-ui * {
    box-sizing: border-box;
}
body { margin: 0; }

.anpros-ui * {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ─── UTILITY BAR ─── */
.top-utility-bar {
    background-color: #111827;
    font-size: 0.8rem;
    color: #9ca3af;
}
.top-utility-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-left, .top-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.utility-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #9ca3af;
    transition: color 0.15s ease;
}
.utility-item:hover {
    color: #34d399;
}
.utility-divider {
    width: 1px;
    height: 12px;
    background-color: #374151;
}
.lang-switch {
    font-weight: 600;
    color: #f3f4f6;
    background: #1f2937;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    border: 1px solid #374151;
}
.admin-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: all 0.2s;
}
.admin-badge:hover {
    background: rgba(16, 185, 129, 0.22);
}

/* ─── GOLD LINE ─── */
.header-gold-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.85;
}

/* ─── HEADER ─── */
.anpros-header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    position: relative;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-light);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.brand-text {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
    letter-spacing: -0.03em;
}
.brand-text span {
    color: var(--accent);
}

/* ─── NAV ─── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    height: 100%;
}
.anpros-header .nav-item {
    position: static;
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.nav-link svg.chevron {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}
.nav-link:hover {
    color: var(--accent);
    background-color: var(--accent-light);
}
.nav-item:hover .nav-link svg.chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

/* ─── MEGA DROPDOWN ─── */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.98);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: 820px;
    max-width: 92vw;
    padding: 1.8rem 1.8rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    z-index: 100;
    pointer-events: none;
}
.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}
.mega-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: #fafafa;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    padding: 0;
    color: inherit;
}
.mega-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-light);
    background: white;
}
.mega-card-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    background: #e2e8f0;
    display: block;
    transition: transform 0.3s ease;
}
.mega-card:hover .mega-card-img {
    transform: scale(1.02);
}
.mega-card-body {
    padding: 0.8rem 1rem 1rem;
    width: 100%;
}
.mega-card-body h5 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.mega-card-body p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}
.mega-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.mega-card-body ul li a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
    display: inline-block;
    padding: 0.1rem 0;
}
.mega-card-body ul li a:hover {
    color: var(--accent);
}
.mega-card.no-img .mega-card-body {
    padding: 0.8rem 1rem;
}
.mega-card.no-img .mega-card-body h5 {
    margin-bottom: 0.4rem;
}

/* ─── TARJETA SIG ESPECIAL ─── */
.card-sig {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    overflow: hidden;
    background: #0b1f18;
    border: 1px solid rgba(194, 155, 56, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
    grid-column: span 1;
}
.card-sig:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
}
.card-sig .sig-bg {
    position: relative;
    padding: 1.4rem 1.4rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 150px;
    background: radial-gradient(circle at 30% 30%, #1a3a2e, #0b1f18);
    overflow: hidden;
}
.card-sig .sig-bg::before {
    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='%23c29b38' fill-opacity='0.06'%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");
    opacity: 0.5;
    pointer-events: none;
}
.card-sig .sig-bg .sig-icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--gold);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-sig .sig-bg .sig-icon span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.card-sig .sig-bg h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    margin-top: 0.2rem;
}
.card-sig .sig-bg h4 small {
    font-weight: 400;
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
    margin-top: 0.1rem;
}
.card-sig .sig-bg .sig-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.2rem;
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    color: #9ca3af;
}
.card-sig .sig-bg .sig-status .live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.card-sig .sig-body {
    padding: 0.9rem 1.2rem 1.2rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.card-sig .sig-body p {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}
.card-sig .sig-body .sig-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.1rem;
}
.card-sig .sig-body .btn-sig {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(19, 56, 43, 0.15);
}
.card-sig .sig-body .btn-sig:hover {
    background: #0b1f18;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(19, 56, 43, 0.2);
}
.card-sig .sig-body .btn-sig::after {
    content: '→';
    transition: transform 0.2s;
}
.card-sig .sig-body .btn-sig:hover::after {
    transform: translateX(4px);
}
.card-sig .sig-body .sig-meta {
    font-size: 0.65rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-sig .sig-body .sig-meta .sep {
    color: #e2e8f0;
}

/* ─── NUEVOS ESTILOS PARA CENTRO TÉCNICO ─── */
.mega-dropdown-ct {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 1.2rem !important;
    width: 950px !important;
    padding: 1.6rem 1.8rem 1.4rem !important;
}
.ct-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ct-card {
    background: #f9fafb;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.1rem 0.9rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.ct-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    border-color: var(--border-light);
    transform: translateY(-1px);
}
.ct-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4a5c6b;
}
.ct-card-title .ct-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #eef1f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}
.ct-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.04) 15%, rgba(0, 0, 0, 0.04) 85%, transparent 100%);
    margin: 0.1rem 0 0.3rem;
}
.ct-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.ct-link-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.4rem;
    border-radius: 7px;
    transition: background 0.15s;
    font-size: 0.85rem;
    color: #1e2a36;
    font-weight: 500;
    cursor: pointer;
}
.ct-link-list li:hover {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.ct-link-list li .ct-bullet {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.15s;
}
.ct-link-list li:hover .ct-bullet {
    opacity: 1;
    transform: scale(1.4);
}
.ct-link-list a {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s;
}
.ct-link-list li:hover a {
    color: var(--accent);
}
.ct-card-featured {
    background: linear-gradient(155deg, #051210 0%, #0b2720 30%, #0e3129 60%, #061b15 100%);
    border: 1px solid rgba(182, 139, 44, 0.18);
    border-radius: var(--radius-md);
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all var(--transition-smooth);
    height: 100%;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.15);
}
.ct-card-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    border-color: rgba(182, 139, 44, 0.3);
}
.ct-featured-image {
    height: 130px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.ct-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.7) saturate(1.4);
    transition: transform 0.4s ease;
}
.ct-card-featured:hover .ct-featured-image img {
    transform: scale(1.04);
    filter: brightness(0.8) saturate(1.5);
}
.ct-featured-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: linear-gradient(to top, rgba(5, 18, 16, 0.95), transparent);
    pointer-events: none;
}
.ct-featured-content {
    padding: 0.9rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}
.ct-featured-content .ct-card-title {
    color: #b7c9c0;
    margin-bottom: 0;
}
.ct-featured-content .ct-card-title .ct-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #d4a845;
}
.ct-featured-content h4 {
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: -0.01em;
}
.ct-featured-content .ct-desc {
    font-size: 0.78rem;
    color: #8ba39a;
    line-height: 1.5;
}
.ct-status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.66rem;
    color: #6b8078;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}
.ct-status-badge {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    padding: 0.12rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.62rem;
    border: 0.5px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.ct-status-badge .ct-dot-live {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2.5s ease-in-out infinite;
}
.ct-access-badge {
    background: rgba(182, 139, 44, 0.12);
    color: #d4a845;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 20px;
    border: 0.5px solid rgba(182, 139, 44, 0.2);
    align-self: flex-start;
    letter-spacing: 0.02em;
    margin-top: 0.2rem;
}

/* ─── HEADER ACTIONS ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cmd-search {
    background: #f1f5f9;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.2s;
}
.cmd-search:hover {
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}
.cmd-search kbd {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    appearance: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0.4rem;
    margin-left: 0.5rem;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── MOBILE OVERLAY ─── */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 1.2rem;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}
.mobile-menu .close-btn {
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.2rem 0.6rem;
}
.mobile-menu .mobile-nav-item {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}
.mobile-menu .mobile-nav-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.2rem 0;
}
.mobile-menu .mobile-nav-item .sub-links {
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: 0.3rem;
}
.mobile-menu .mobile-nav-item .sub-links a {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.1rem 0;
}
.mobile-menu .mobile-nav-item .sub-links a:hover {
    color: var(--accent);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1259px) {
    .anpros-header .header-container > nav { display: none !important; }
    .anpros-header .nav-menu { display: none !important; }
    .anpros-header .hamburger { display: flex !important; }
    .mobile-menu-overlay { display: block; }
    .header-actions .cmd-search { display: none; }
    .mega-dropdown,
    .mega-dropdown-ct {
        width: 700px !important;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    }
    .mega-dropdown-ct {
        grid-template-columns: 1fr 1fr !important;
    }
    .ct-col:last-child {
        grid-column: span 2;
        flex-direction: row;
        gap: 1rem;
    }
    .ct-col:last-child .ct-card { flex: 1; }
}
@media (max-width: 800px) {
    .mega-dropdown,
    .mega-dropdown-ct {
        width: 90vw !important;
        grid-template-columns: 1fr 1fr !important;
        padding: 1.2rem !important;
    }
    .mega-dropdown-ct {
        grid-template-columns: 1fr !important;
    }
    .ct-col:last-child {
        grid-column: span 1;
        flex-direction: column;
    }
    .ct-card-featured { flex-direction: row; }
    .ct-featured-image {
        width: 40%;
        height: auto;
        min-height: 150px;
    }
    .ct-featured-content { flex: 1; }
}
@media (max-width: 550px) {
    .mega-dropdown,
    .mega-dropdown-ct {
        grid-template-columns: 1fr !important;
        padding: 1rem !important;
        width: 95vw !important;
    }
    .ct-card-featured { flex-direction: column; }
    .ct-featured-image {
        width: 100%;
        height: 130px;
    }
    .top-utility-container {
        padding: 0 1rem;
        flex-wrap: wrap;
        height: auto;
        min-height: 38px;
        gap: 0.3rem;
    }
    .top-left, .top-right {
        gap: 0.8rem;
        flex-wrap: wrap;
    }
    .utility-divider { display: none; }
    .top-right .admin-badge span { display: none; }
    .header-container {
        padding: 0 1rem;
        height: 64px;
    }
    .brand-text { font-size: 1rem; }
    .brand-icon { width: 30px; height: 30px; }
    .brand-icon svg { width: 16px; height: 16px; }
}

/* ─── FOOTER ─── */
.anpros-footer {
    z-index: 1;
    isolation: isolate;
    background: var(--footer-bg);
    color: var(--footer-text);
    border-top: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}
.anpros-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), #fbbf24, var(--gold), transparent);
    opacity: 0.5;
    pointer-events: none;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}
.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.footer-brand h3 span { color: var(--gold); }
.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 280px;
}
.footer-brand .brand-icon-lg {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    backdrop-filter: blur(4px);
}
.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.footer-socials a {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    transition: all 0.25s ease;
    text-decoration: none;
}
.footer-socials a:hover {
    background: rgba(194, 155, 56, 0.15);
    border-color: var(--gold);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.5);
}
.footer-heading {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e5e7eb;
    margin-bottom: 1.4rem;
    position: relative;
    display: inline-block;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--gold);
    border-radius: 4px;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}
.footer-links a::before {
    content: '›';
    color: var(--gold);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.footer-links a:hover::before { opacity: 1; }
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}
.footer-contact li svg {
    color: var(--gold);
    opacity: 0.7;
    flex-shrink: 0;
}
.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-contact a:hover { color: #ffffff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
    max-width: 1400px;
    margin: 0 auto;
}
.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}
.footer-bottom-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-bottom-links a:hover { color: #d1d5db; }

@media (max-width: 900px) {
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 550px) {
    .footer-container { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1.5rem 1rem; }
    .footer-bottom-links { flex-wrap: wrap; gap: 0.75rem; }
}

/* ─── REGLAS DEL HEADER AISLADAS DEL NAV/EL CONTENT DE PHLOX ─── */
.anpros-header .header-container {
    display: flex !important;
    align-items: center !important;
    height: 76px !important;
}

@media (min-width: 1260px) {
    .anpros-header .header-container > nav {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
    }
    .anpros-header .nav-menu {
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .anpros-header .nav-item {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .anpros-header .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 0.5rem 0.85rem !important;
    }
}

@media (max-width: 1259px) {
    .anpros-header .header-container > nav,
    .anpros-header .nav-menu { display: none !important; }
    .anpros-header .hamburger { display: flex !important; }
}

@media (max-width: 550px) {
    .anpros-header .header-container { height: 64px !important; }
}

/* El panel y el oscurecedor no pueden capturar clics estando cerrados. */
@media (min-width: 1260px) {
    #mobileOverlay, #mobileMenu { display: none !important; }
}

/* ============================================================
   ANPROS: enlaces, logo oficial, busqueda real y recursos locales
   Se limita deliberadamente al header/footer para no afectar Elementor.
   ============================================================ */
@font-face {
    font-family: 'Inter ANPROS';
    src: local('Inter'), url('assets/fonts/Inter-Variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
.anpros-ui, .anpros-ui * {
    font-family: 'Inter ANPROS', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.anpros-ui .brand-logo-img {
    display: block;
    width: 224px;
    height: 64px;
    max-width: none;
    object-fit: contain;
}
.anpros-footer .footer-logo {
    display: inline-flex;
    width: 224px;
    max-width: 100%;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1rem;
}
.anpros-footer .footer-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 224px;
}
.anpros-ui .anpros-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.anpros-ui .lang-controls { gap: 0.25rem; }
.anpros-ui .lang-divider { color: #9ca3af; }
.anpros-ui button.lang-switch {
    appearance: none;
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1.35;
    padding: 0.15rem 0.38rem;
    border-radius: 4px;
    border: 1px solid transparent;
    color: #9ca3af;
    background: transparent;
    box-shadow: none;
    margin: 0;
    min-width: 0;
    min-height: 0;
    cursor: pointer;
}
.anpros-ui button.lang-switch.active {
    color: #f3f4f6;
    border-color: #374151;
    background: #1f2937;
}
.anpros-ui button.lang-switch:focus-visible,
.anpros-ui .cmd-search input:focus-visible,
.anpros-ui .mobile-search input:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}
.anpros-ui form.cmd-search {
    margin: 0;
    padding: 0.28rem 0.5rem 0.28rem 0.8rem;
    width: 226px;
    gap: 0.25rem;
    height: 39px;
}
.anpros-ui .cmd-search input[type="search"] {
    appearance: none;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    color: #0f172a;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 0;
    font-size: 0.79rem;
    line-height: 1.2;
    flex: 1 1 auto;
}
.anpros-ui .cmd-search input::placeholder { color: #64748b; opacity: 1; }
.anpros-ui .cmd-search button[type="submit"] {
    appearance: none;
    border: 0;
    border-radius: 5px;
    padding: 0.2rem;
    background: none;
    box-shadow: none;
    min-width: 0;
    min-height: 0;
    width: 23px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #64748b;
    cursor: pointer;
}
.anpros-ui .cmd-search kbd { flex: 0 0 auto; white-space: nowrap; font-size: 0.6rem; }
.anpros-ui .ct-card-featured { position: relative; }
.anpros-ui .ct-featured-stretched-link {
    position: absolute;
    z-index: 3;
    inset: 0;
    border-radius: inherit;
    text-decoration: none;
}
.anpros-ui .ct-featured-stretched-link:focus-visible {
    outline: 3px solid #34d399;
    outline-offset: 2px;
}
.anpros-ui .mobile-search {
    display: flex;
    position: relative;
    gap: 0;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 9px;
    margin: 0.5rem 0 0.8rem;
    overflow: hidden;
}
.anpros-ui .mobile-search input {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0.7rem;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: #0f172a;
    font-size: 0.83rem;
}
.anpros-ui .mobile-search button {
    appearance: none;
    border: 0;
    margin: 0;
    padding: 0 0.7rem;
    background: #166534;
    color: white;
    min-width: 0;
    min-height: 0;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.35rem;
}
@media (max-width: 550px) {
    .anpros-header .brand-logo-img { width: 190px; height: auto; }
    .top-utility-bar .top-right { gap: 0.6rem; }
}
@media (max-width: 375px) {
    .anpros-header .brand-logo-img { width: 168px; }
}


/* ANPROS v3 - Selector nativo GTranslate, sin segundo motor de idioma. */
.anpros-ui .lang-controls .anpros-gt-link { display: inline-flex; align-items: center; }
.anpros-ui .lang-controls .anpros-gt-link a[data-gt-lang] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.77rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 23px;
    text-decoration: none;
    color: #9ca3af;
    padding: 0.15rem 0.38rem;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}
.anpros-ui .lang-controls .anpros-gt-link a[data-gt-lang]:hover,
.anpros-ui .lang-controls .anpros-gt-link a[data-gt-lang].gt-current-lang {
    color: #f3f4f6;
    border-color: #374151;
    background: #1f2937;
}
.anpros-ui .lang-controls .anpros-gt-link a[data-gt-lang]:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
}
.anpros-ui .lang-controls .lang-unavailable { color: #64748b; opacity: 0.55; }

/* Sugerencias de busqueda (capa local, aislada de Phlox/Elementor). */
.anpros-ui .anpros-search-shell { position: relative; min-width: 0; }
.anpros-header .anpros-search-shell-desktop { width: 226px; flex: 0 0 226px; }
.anpros-ui .anpros-search-results[hidden] { display: none !important; }
.anpros-ui .anpros-search-results {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 1500;
    width: min(410px, calc(100vw - 24px));
    max-height: min(480px, 65vh);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
    padding: 0.42rem;
    text-align: left;
}
.anpros-ui .anpros-search-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem;
    border-radius: 9px;
    color: #0f172a;
    text-decoration: none;
    transition: background 0.15s;
}
.anpros-ui .anpros-search-result:hover,
.anpros-ui .anpros-search-result:focus-visible {
    background: #f0fdf4;
    outline: none;
}
.anpros-ui .anpros-search-result-image {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 7px;
    object-fit: cover;
    background: #e2e8f0;
}
.anpros-ui .anpros-search-result-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
    background: #ecfdf5;
    color: #166534;
    font-size: 1.15rem;
}
.anpros-ui .anpros-search-result-body { min-width: 0; display: flex; flex-direction: column; gap: 0.16rem; }
.anpros-ui .anpros-search-result-type { color: #166534; font-size: 0.69rem; font-weight: 600; }
.anpros-ui .anpros-search-result-title { color: #0f172a; font-size: 0.88rem; font-weight: 700; line-height: 1.3; }
.anpros-ui .anpros-search-result-excerpt {
    font-size: 0.73rem;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.anpros-ui .anpros-search-message { padding: 0.85rem; font-size: 0.83rem; color: #64748b; }
.anpros-ui .anpros-search-all {
    display: block;
    margin-top: 0.25rem;
    padding: 0.75rem 0.85rem;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 9px 9px;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}
.anpros-ui .anpros-search-all:hover,
.anpros-ui .anpros-search-all:focus-visible { background: #f0fdf4; outline: 2px solid transparent; }
@media (max-width: 1259px) {
    /* El formulario se movio dentro de un wrapper en v3. */
    .anpros-header .anpros-search-shell-desktop { display: none !important; }
    .anpros-ui .anpros-search-shell-mobile { width: 100%; flex-shrink: 0; }
    .anpros-ui .anpros-search-shell-mobile .anpros-search-results {
        position: relative;
        top: 0;
        right: auto;
        width: 100%;
        max-height: 290px;
        box-shadow: 0 6px 20px rgba(15, 23, 42, 0.09);
        margin: -0.2rem 0 0.75rem;
    }
}
