/* ===== CONTENT PAGES ===== */
.page-main {
    padding-bottom: 40px;
}

.page-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 34px 0 28px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: stretch;
}

.page-kicker {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.page-title {
    color: var(--text);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
    max-width: 760px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 700px;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}

.primary-action {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 22px -14px rgba(5, 150, 105, 0.9);
}

.secondary-action {
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
}

.primary-action:hover,
.secondary-action:hover {
    transform: translateY(-1px);
}

.primary-action:hover {
    background: var(--primary-dark);
}

.secondary-action:hover {
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.page-panel {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
}

.panel-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 14px;
}

.panel-copy {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.panel-highlight {
    border-left: 4px solid var(--blue);
    padding-left: 14px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.metric-tile {
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: #fbfdff;
}

.metric-label {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-value {
    color: var(--text);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 8px;
}

.metric-note {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
}

.page-section {
    padding: 30px 0;
}

.page-section.white {
    background: #ffffff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-copy {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    max-width: 720px;
    margin-top: -8px;
    margin-bottom: 18px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.content-card,
.article-card,
.job-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}

.content-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content-card h3,
.article-card h3,
.job-card h3 {
    color: var(--text);
    font-size: 17px;
    line-height: 1.3;
}

.content-card p,
.article-card p,
.job-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.accent-blue {
    border-top: 4px solid var(--blue);
}

.accent-green {
    border-top: 4px solid var(--primary);
}

.accent-orange {
    border-top: 4px solid var(--discount);
}

.accent-pink {
    border-top: 4px solid var(--pink);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 800;
}

.tag.green {
    color: var(--green-text);
    background: var(--green-tag);
    border-color: #a7f3d0;
}

.tag.blue {
    color: #1d4ed8;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.tag.orange {
    color: #c2410c;
    background: #ffedd5;
    border-color: #fed7aa;
}

.tag.pink {
    color: #be185d;
    background: #fce7f3;
    border-color: #fbcfe8;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.data-table,
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.data-table th,
.data-table td,
.compare-table th,
.compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    vertical-align: middle;
}

.data-table th,
.compare-table th {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #fbfdff;
}

.data-table td,
.compare-table td {
    color: var(--text);
    font-size: 14px;
}

.data-table tr:last-child td,
.compare-table tr:last-child td {
    border-bottom: 0;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.product-cell img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 6px;
}

.product-cell strong {
    display: block;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.product-cell span {
    color: var(--text-secondary);
    font-size: 12px;
}

.price-strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.tool-surface {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 18px;
}

.tool-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tool-header h2 {
    font-size: 21px;
    line-height: 1.2;
    color: var(--text);
}

.tool-header p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
}

.compare-selectors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.compare-select {
    display: grid;
    gap: 6px;
}

.compare-select span {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.compare-select select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    background: #ffffff;
    padding: 11px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.compare-select select:focus {
    outline: 3px solid rgba(16, 185, 129, 0.16);
    border-color: var(--primary);
}

.compare-product-head {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    min-width: 180px;
}

.compare-product-head img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: var(--radius);
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 8px;
}

.compare-product-head strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    line-height: 1.3;
}

.compare-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.compare-link:hover {
    background: var(--primary-dark);
}

.blog-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: 20px;
    align-items: stretch;
}

.featured-article {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.featured-article h2 {
    color: var(--text);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
    margin: 12px 0;
}

.featured-article p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.article-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-card a,
.article-link {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    margin-top: auto;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.job-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-list {
    display: grid;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}

.job-list li {
    list-style: disc;
    margin-left: 18px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.process-step {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 10px;
}

.process-step h3 {
    color: var(--text);
    font-size: 15px;
    margin-bottom: 6px;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 1023px) {
    .page-hero-grid,
    .blog-feature {
        grid-template-columns: 1fr;
    }

    .compare-selectors,
    .content-grid,
    .article-grid,
    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 26px 0 22px;
    }

    .page-title {
        font-size: 30px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .metrics-grid,
    .compare-selectors,
    .content-grid,
    .article-grid,
    .job-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .tool-header {
        display: block;
    }

    .page-actions {
        flex-direction: column;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }
}

/* v2.21-mobile-type-scale-pages */
@media (max-width: 767px) {
    html { font-size: 14px; }
    body { font-size: 13px; line-height: 1.35; }

    .page-title { font-size: clamp(22px, 6vw, 28px) !important; line-height: 1.08; }
    .page-subtitle { font-size: 13px !important; line-height: 1.35; }
    .eyebrow, .metric-label, .pill, .article-tag, .job-meta, .step-number { font-size: 10px !important; }

    .metric-value, .tool-title, .article-title, .job-title, .process-step h3 {
        font-size: clamp(14px, 4vw, 18px) !important;
        line-height: 1.18;
    }

    .tool-card p,
    .article-card p,
    .job-card p,
    .process-step p,
    .content-card p,
    .page-actions a,
    .primary-action,
    .secondary-action,
    button,
    input,
    select,
    textarea {
        font-size: 12px !important;
        line-height: 1.35;
    }
}

/* v2.22-mobile-nav-type-scale-pages */
@media (max-width: 767px) {
    .nav-link,
    .btn-ingresar,
    .search-bar input,
    .search-submit,
    .icon-btn,
    button,
    input,
    select,
    textarea {
        font-size: 12px !important;
    }
}
