/* sitemap — estilos específicos */

.sitemap-layout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.25rem 3rem;
}

/* Hero */
.sitemap-hero {
    text-align: center;
    padding: 2.25rem 1rem 1.75rem;
}

.sitemap-hero-icon {
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    margin: 0 auto 1.1rem;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.sitemap-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text, #1e293b);
    margin-bottom: 0.5rem;
}

.sitemap-hero p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    color: var(--text-muted, #64748b);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Sitemap extra */
.sitemap-subheading {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    padding: 1rem 0 0.35rem 0;
    margin-top: 0.25rem;
    border-top: 1px solid var(--border, #e5e7eb);
    background-color: #2563eb;
}

.sitemap-subheading:first-child {
    border-top: none;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.sitemap-links .sitemap-subheading {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Buscador rápido */
.sitemap-search-wrap {
    max-width: 480px;
    margin: 1.5rem auto 2rem;
    position: relative;
}

.sitemap-search-wrap i {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 0.9rem;
    pointer-events: none;
}

#sitemapSearch {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: var(--text, #1e293b);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.16s, box-shadow 0.16s;
}

#sitemapSearch:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#searchCount {
    display: none;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    margin-top: -1rem;
    margin-bottom: 1rem;
}

/* Estadísticas */
.sitemap-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.sstat {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    background: var(--bg-alt, #f8fafc);
}

.sstat i {
    color: var(--primary, #2563eb);
}

/* Bloque de categoría */
.sitemap-block {
    margin-bottom: 2rem;
}

.sitemap-block-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1rem;
    background: var(--primary, #2563eb);
    border-radius: 12px 12px 0 0;
    color: #fff;
}

.sitemap-block-header .block-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.sitemap-block-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.sitemap-block-header a.block-cat-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    white-space: nowrap;
}

.sitemap-block-header a.block-cat-link:hover {
    color: #fff;
}

.sitemap-block-header .block-count {
    font-family: 'Ubuntu', monospace, sans-serif;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0.1rem 0.5rem;
}

.sitemap-links {
    border: 1.5px solid var(--border, #e2e8f0);
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.sitemap-link-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.84rem;
    color: var(--text, #1e293b);
    text-decoration: none;
    transition: background 0.13s;
}

.sitemap-link-item:last-child {
    border-bottom: none;
}

.sitemap-link-item:nth-of-type(even) {
    background: var(--bg-alt, #f8fafc);
}

.sitemap-link-item:nth-of-type(odd) {
    background: transparent;
}

.sitemap-link-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary, #2563eb);
}

.sitemap-link-item:hover .link-arrow {
    opacity: 1;
}

.sitemap-link-item i.link-icon {
    color: var(--primary, #2563eb);
    font-size: 0.75rem;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.link-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--primary, #2563eb);
    opacity: 0;
    transition: opacity 0.13s;
    flex-shrink: 0;
}

.link-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.08rem 0.4rem;
    border-radius: 8px;
    margin-left: 0.35rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.badge-pop {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.badge-new {
    background: rgba(22, 163, 74, 0.12);
    color: #16a34a;
}

/* Grid de dos columnas para categorías */
.sitemap-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Bloque de páginas del sitio (no calculadoras) */
.sitemap-block.block-site .sitemap-block-header {
    background: #475569;
}

/* Colores de acento por categoría */
.block-financieras .sitemap-block-header {
    background: #0f766e;
}

.block-tiempo .sitemap-block-header {
    background: #0369a1;
}

.block-matematicas .sitemap-block-header {
    background: #7c3aed;
}

.block-peso .sitemap-block-header {
    background: #b45309;
}

.block-cocina .sitemap-block-header {
    background: #c2410c;
}

.block-ciencias .sitemap-block-header {
    background: #0e7490;
}

.block-tecnologia .sitemap-block-header {
    background: #4338ca;
}

.block-educacion .sitemap-block-header {
    background: #be185d;
}

.block-seguridad .sitemap-block-header {
    background: #15803d;
}

.block-divisas .sitemap-block-header {
    background: #ca8a04;
}

/* No encontrado */
.no-results {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
}

.no-results i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--border, #cbd5e1);
}

/* Separador */
.about-divider {
    border: none;
    border-top: 1.5px solid var(--border, #e2e8f0);
    margin: 0.5rem 0 2rem;
}

/* Breadcrumb */
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.5rem;
    list-style: none;
    padding: 0.65rem 1.25rem;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
}

.breadcrumb li+li::before {
    content: '/';
    margin-right: 0.5rem;
    opacity: 0.45;
}

.breadcrumb a {
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .sitemap-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }
}