.herramienta-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.herramienta-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.herramienta-badge {
    display: inline-block;
    padding: .45rem .9rem;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.herramienta-header h1 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
}

.herramienta-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #6b7280;
    line-height: 1.7;
}

.herramienta-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.herramienta-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
    .herramienta-page {
        padding: 2.5rem 1rem;
    }
    .herramienta-header h1 {
        font-size: 2rem;
    }
    .herramienta-card {
        padding: 1rem;
    }
}

/* =========================================
   SEO DE HERRAMIENTAS
   ========================================= */
.herramienta-seo {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}
.herramienta-seo-title {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: 2rem;
    margin-bottom: .8rem;
}
.herramienta-seo-title:first-child {
    margin-top: 0;
}
.herramienta-seo-title h2 {
    margin: 0;
    color: #111827;
    font-size: 1.2rem;
}
.herramienta-seo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1.3rem;
}
.herramienta-seo p {
    margin: 0 0 1rem;
    color: #6b7280;
    line-height: 1.7;
}
.herramienta-seo-formula,
.herramienta-seo-ejemplo {
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    font-weight: 700;
    text-align: center;
}