/*
Theme Name: HG_Framework
Theme URI: http://www.hectorgarrofe.com
Author: Hector Garrofe
Author URI: http://www.hectorgarrofe.com
Description: Un theme básico sobre el que construir todos mis proyectos.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hg_framework
*/

:root {
    --color-navy: #0E1E40;
    --color-blue: #2A63F6;
    --color-sky: #E4EBFF;
    --color-ice: #F5F7FF;
    --color-white: #FFFFFF;
    --color-text: #101425;
    --color-muted: #6B7280;
    --color-border: #E2E8F0;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-soft: 0 25px 50px -25px rgba(14, 30, 64, 0.35);
    --container-max: min(1200px, calc(100% - 3rem));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Gilroy', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background: var(--color-ice);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 1rem;
    color: var(--color-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn--primary {
    background: linear-gradient(120deg, var(--color-blue), #5B8BFF);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
    transform: translateY(-2px);
}

.btn--secondary {
    background: rgba(42, 99, 246, 0.12);
    color: var(--color-blue);
}

.btn--amazon {
    background: #FF9900;
    color: #1a1a1a;
    box-shadow: var(--shadow-soft);
}

.btn--aliexpress {
    background: #FF5B34;
    color: var(--color-white);
}

.btn--amazon:hover,
.btn--aliexpress:hover {
    transform: translateY(-2px);
}

.btn--ghost {
    border-color: rgba(14, 30, 64, 0.15);
    color: var(--color-text);
    background: transparent;
}

.spotlight__actions .btn--ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-weight: 600;
}

.hero--dark .btn--ghost,
.site-header .btn--ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.btn-link {
    color: var(--color-blue);
    font-weight: 600;
}

.eyebrow {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blue);
    font-size: 0.72rem;
    margin-bottom: 1rem;
}

.hero--dark .eyebrow,
.hero--slim .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.lead {
    font-size: 1.125rem;
    color: var(--color-muted);
}

.hero--dark .lead,
.hero--slim .lead {
    color: rgba(255, 255, 255, 0.85);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-head--compact {
    margin-bottom: 1rem;
}

.section-head .eyebrow {
    color: var(--color-blue);
}

.section-head h3,
.section-head h2 {
    margin-bottom: 0;
}

.hero {
    padding: 4rem 0 5rem;
}

.hero--dark {
    background: radial-gradient(circle at top, rgba(42, 99, 246, 0.4), rgba(14, 30, 64, 0.95));
    color: var(--color-white);
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
}

.hero--dark .breadcrumbs {
    color: rgba(255, 255, 255, 0.75);
}

.hero--dark .breadcrumbs a {
    color: var(--color-white);
}

.hero__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.hero__text h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.hero__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero__metrics div {
    flex: 1;
    min-width: 120px;
}

.metric__value {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
}

.metric__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero__visual {
    display: grid;
    gap: 1.5rem;
}

.hero__card {
    background: rgba(14, 30, 64, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero__card span.ti {
    font-size: 2rem;
    color: rgba(14, 30, 64, 0.92);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    padding: 0.6rem;
}

.hero__card p {
    color: #fff;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: -3rem;
    margin-bottom: 6rem;
}

.category-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 10px 25px rgba(10, 24, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.category-card__icon {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    justify-content: center;
    align-items: center;
    background: color-mix(in srgb, var(--card-color, var(--color-blue)) 20%, rgba(42, 99, 246, 0.1));
    color: color-mix(in srgb, var(--card-color, var(--color-blue)) 80%, var(--color-blue));
    font-size: 1.6rem;
}

.category-card strong {
    display: block;
    color: var(--color-text);
    font-size: 1.05rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0.2rem 0 0;
}

.spotlight {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: center;
}

.spotlight__media {
    position: relative;
}

.spotlight__media img {
    border-radius: 0;
    box-shadow: none;
}

.spotlight__media-links {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.spotlight__badge {
    position: absolute;
    top: -1.5rem;
    left: 1rem;
    background: var(--color-blue);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
    font-size: 0.9rem;
    box-shadow: 0 15px 30px rgba(42, 99, 246, 0.35);
}

.spotlight__content h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.spotlight__content .lead {
    color: var(--color-text);
}

.spotlight__score {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 1.5rem 0;
}

.spotlight__score .diamond-score {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.spotlight__score-details {
    flex: 1;
    min-width: 0;
}

.score-label {
    color: var(--color-muted);
    margin: 0 0 0.4rem;
    display: block;
    width: 100%;
}

.score-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
}

.score-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
}

.score-breakdown span {
    color: var(--color-muted);
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(17, 25, 40, 0.05);
}

.spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.diamond-score,
.mini-diamond {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    position: relative;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--color-blue), #5B8BFF);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.diamond-score span,
.mini-diamond span {
    transform: rotate(-45deg);
    font-size: 1.5rem;
}

.mini-diamond {
    width: 64px;
    height: 64px;
    font-size: 1rem;
    box-shadow: none;
}

.diamond-score--xl {
    width: 140px;
    height: 140px;
}

.ai-insights {
    padding: 2.5rem 0 4rem;
}

.single .ai-insights{
    padding: 4rem 0 4rem;	
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.ai-card {
    background: var(--color-white);
    border: 1px solid rgba(17, 25, 40, 0.05);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.ai-card p {
    opacity: 0.2;
    transition: opacity 0.3s ease;
    color: var(--color-text);
    min-height: 4.5rem;
}

.ai-card.is-typing p {
    opacity: 0.8;
}

.ai-card.is-loaded p {
    opacity: 1;
}

.ai-card header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.ai-card .ai-loader {
    margin-left: auto;
    width: 14px;
    height: 14px;
    border: 2px solid var(--color-sky);
    border-top-color: var(--color-blue);
    border-radius: 999px;
    animation: spin 2.4s linear infinite;
}

.ai-card.is-loaded .ai-loader {
    display: none;
}

.cards-grid {
    padding: 4rem 0;
}

.cards-grid__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(17, 25, 40, 0.05);
    display: flex;
    flex-direction: column;
    overflow: visible;
    box-shadow: 0 15px 30px rgba(14, 30, 64, 0.05);
    position: relative;
}

.product-card__thumb {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    padding: 0.5rem;
    box-sizing: border-box;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    overflow: hidden;
}

.product-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--color-white);
}

.product-card__body {
    padding: 1.5rem;
    padding-top: 2.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: var(--color-white);
    border-bottom-left-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.product-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-blue);
    font-weight: 600;
}

.product-card__tagline {
    color: var(--color-text);
    font-size: 0.95rem;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.product-card__specs strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 0.1rem;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: 1rem;
}

.product-card__footer--centered {
    justify-content: center;
    padding-top: 0.5rem;
}

.product-card__footer--centered .mini-diamond {
    margin-top: 0.25rem;
}

.product-card__links {
    display: flex;
    gap: 0.7rem;
    font-weight: 600;
    color: var(--color-blue);
}

.product-card--compact .product-card__thumb {
    height: 160px;
}

.product-card .mini-diamond {
    position: absolute;
    top: -0.65rem;
    right: -0.65rem;
}

.blog-preview {
    padding-bottom: 4rem;
}

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "/";
    opacity: 0.4;
    color: currentColor;
}

.breadcrumbs a {
    color: var(--color-text);
    font-weight: 600;
}

.breadcrumbs span {
    color: inherit;
}

.blog-hero {
    padding: 4.5rem 0 3rem;
    background: linear-gradient(135deg, rgba(42, 99, 246, 0.08), rgba(14, 30, 64, 0.04));
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-bottom: 3rem;
}

.blog-hero__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: stretch;
}

.blog-hero__copy {
    flex: 1 1 360px;
}

.blog-hero__copy h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.blog-hero__lead {
    font-size: 1.15rem;
    color: rgba(16, 20, 37, 0.8);
    max-width: 600px;
}

.blog-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--color-blue);
}

.blog-hero__card {
    flex: 1 1 280px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(14, 30, 64, 0.08);
    box-shadow: 0 30px 60px -35px rgba(14, 30, 64, 0.3);
}

.blog-hero__card ul {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.blog-hero__card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.blog-hero__card li::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--color-blue);
    opacity: 0.4;
}

.blog-hero__topics {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-hero__topics-label {
    font-weight: 600;
    color: var(--color-muted);
}

.blog-hero--category {
    background: linear-gradient(135deg, rgba(42, 99, 246, 0.12), rgba(14, 30, 64, 0.1));
    color: var(--color-white);
}

.blog-hero--category h1,
.blog-hero--category p,
.blog-hero--category span {
    color: var(--color-white);
}

.blog-hero--category .breadcrumbs {
    color: rgba(255, 255, 255, 0.85);
}

.blog-hero--category .breadcrumbs a {
    color: var(--color-white);
}

.blog-hero--category .blog-hero__card {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    box-shadow: none;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-feed {
    padding-bottom: 4rem;
}

.blog-feed__empty {
    text-align: center;
    padding: 3rem 0;
    color: var(--color-muted);
}

.blog-card {
    background: var(--color-white);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(17, 25, 40, 0.08);
    box-shadow: 0 25px 40px -35px rgba(14, 30, 64, 0.35);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 60px -35px rgba(14, 30, 64, 0.45);
}

.blog-card__thumb {
    display: block;
    overflow: hidden;
}

.blog-card__thumb img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__thumb img {
    transform: scale(1.05);
}

.blog-card__body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.blog-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.blog-card__title {
    font-size: 1.35rem;
    margin: 0;
}

.blog-card__excerpt {
    color: var(--color-muted);
    margin: 0;
}

.blog-card__footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 0.5rem;
}

.blog-card__date {
    white-space: nowrap;
    font-weight: 600;
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-chip img {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 3px solid var(--color-white);
    box-shadow: 0 10px 30px rgba(14, 30, 64, 0.15);
}

.author-chip span {
    font-weight: 600;
    display: block;
}

.author-chip small {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.author-chip--lg img {
    width: 64px;
    height: 64px;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(42, 99, 246, 0.08);
    border: 1px solid rgba(42, 99, 246, 0.15);
    color: var(--color-blue);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.post-category-link:hover {
    background: rgba(42, 99, 246, 0.18);
    transform: translateY(-1px);
}

.post-category-link.is-active {
    background: var(--color-blue);
    color: var(--color-white);
    border-color: transparent;
    box-shadow: 0 12px 20px -12px rgba(42, 99, 246, 0.65);
}

.post-categories--compact .post-category-link {
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
}

.post-categories--inline {
    gap: 0.75rem;
}

.post-categories--stacked {
    flex-direction: column;
}

.post-categories--stacked .post-category-link {
    width: 100%;
    justify-content: space-between;
}

.blog-single-hero {
    padding: 4rem 0 4rem;
    background: var(--color-white);
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-bottom: 3rem;
    box-shadow: 0 40px 80px -60px rgba(14, 30, 64, 0.4);
}

.blog-single-hero__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.blog-single-hero__meta h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1rem;
}

.blog-single-hero__meta .breadcrumbs {
    margin-bottom: 1.25rem;
}

.blog-single-hero__lead {
    font-size: 1.1rem;
    color: var(--color-muted);
}

.blog-single-hero__info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--color-muted);
}

.blog-single-hero__image {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    height: 100%;
}

.blog-single-layout {
    margin-bottom: 4rem;
}

.blog-single-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
    align-items: start;
}

.blog-single-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-single-card {
    background: var(--color-white);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(14, 30, 64, 0.08);
    box-shadow: 0 20px 45px -35px rgba(14, 30, 64, 0.35);
}

.blog-single-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.blog-single-card li {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--color-text);
}

.blog-single-card span {
    color: var(--color-muted);
}

.blog-single-card--muted {
    background: rgba(42, 99, 246, 0.08);
    border: none;
    box-shadow: none;
}

.share-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.share-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-blue);
}

.prose > *:first-child {
    margin-top: 0;
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(16, 20, 37, 0.85);
    margin-bottom: 1.5rem;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose img {
    border-radius: 24px;
    margin: 2rem 0;
    box-shadow: 0 30px 60px -45px rgba(14, 30, 64, 0.35);
}

.pagination-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0 3rem;
}

.pagination-container .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--color-white);
    border: 1px solid rgba(14, 30, 64, 0.08);
    margin: 0 0.35rem;
    font-weight: 600;
    color: var(--color-text);
}

.pagination-container .current {
    background: var(--color-blue);
    color: var(--color-white);
    border-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(14, 30, 64, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.is-solid {
    background: rgba(14, 30, 64, 0.92);
    box-shadow: 0 10px 30px rgba(14, 30, 64, 0.25);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: 0.03em;
}

.brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #fff;
}

.brand__text span {
    color: var(--color-blue);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-white);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-trigger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-trigger span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-trigger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-trigger.is-active span:nth-child(2) {
    opacity: 0;
}

.mobile-trigger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--color-white);
    padding: 2rem;
    box-shadow: -15px 0 32px rgba(14, 30, 64, 0.12);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
}

.mobile-menu.is-open {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-weight: 600;
}

.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4rem;
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    padding-top: 4rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.footer__brand .brand {
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.footer__social a:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--color-blue);
    color: var(--color-white);
}

.footer__cta h4 {
    color: var(--color-white);
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-form input {
    border-radius: 999px;
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 0.95rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 3rem;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer__legal {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.taxonomy-filter {
    margin: 2rem 0;
}

.taxonomy-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.taxonomy-filter a {
    display: inline-flex;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-weight: 500;
}

.taxonomy-filter .active a {
    background: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
}

.pagination {
    margin-top: 3rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.pagination .current {
    background: var(--color-blue);
    color: var(--color-white);
    border-color: var(--color-blue);
}

.single-product {
}

.single-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.single-hero__content h1 {
    color: var(--color-white);
}

@media (max-width: 900px) {
    .single-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.single-hero__meta {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.85);
}

.single-hero__meta span {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.single-hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.single-hero__visual img {
    width: 100%;
    max-width: 320px;
}

.single-product__thumb {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
}

.product-specs {
    padding: 4rem 0 2rem;
}

.spec-table {
    border-radius: var(--radius-lg);
    background: var(--color-white);
    border: 1px solid rgba(17, 25, 40, 0.06);
    overflow: hidden;
}

.spec-table__row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
}

.spec-table__row:last-child {
    border-bottom: none;
}

.spec-table__row--section {
    background: rgba(42, 99, 246, 0.06);
    color: var(--color-blue);
    font-weight: 600;
    justify-content: flex-start;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.spec-table__row--section span {
    font-size: 0.78rem;
}

.spec-table__row--section strong {
    display: none;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.analysis-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(17, 25, 40, 0.05);
    box-shadow: 0 20px 35px rgba(10, 24, 50, 0.08);
}

.analysis-content p {
    color: var(--color-text);
}

.influencer-opinions {
    margin-bottom: 2rem;
    padding: 1.75rem;
}

.influencer-opinions h3 {
    margin: 0 0 1rem;
}

.influencer-opinions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.influencer-card {
    border: 1px solid rgba(17, 25, 40, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: #f8f9ff;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.influencer-card header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.influencer-card header strong {
    font-size: 1rem;
    color: var(--color-text);
}

.influencer-card header span {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.influencer-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text);
}

.phone-eval {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid rgba(17, 25, 40, 0.05);
    box-shadow: 0 18px 32px rgba(10, 24, 50, 0.08);
}

.phone-eval__legend {
    margin-bottom: 1.25rem;
}

.phone-eval__legend strong {
    display: block;
    font-size: 1rem;
    color: var(--color-blue);
}
.phone-eval__legend-title {
    display: block;
    font-size: 1.05rem;
    color: var(--color-blue);
}

.phone-eval__legend-copy {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
}

.phone-eval__legend p {
    margin: 0.25rem 0 0;
    color: var(--color-muted);
}

.phone-eval__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.phone-eval__item {
    background: #F7F8FF;
    border: 1px solid rgba(17, 25, 40, 0.08);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-eval__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.phone-eval__label {
    font-weight: 600;
    color: var(--color-text);
    display: block;
}

.phone-eval__weight {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-size: 10px;
}

.phone-eval__score {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1;
    text-align: right;
}

.phone-eval__score small {
    font-size: 0.75rem;
    color: var(--color-muted);
    display: block;
}

.phone-eval__description {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.phone-radar {
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: visible;
    margin-top: 2rem;
}

.phone-radar__title {
    margin: 0 0 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
}

.phone-radar__score {
    margin: 0;
    position: absolute;
    top: -2.5rem;
    right: -2.5rem;
    z-index: 2;
}

@media (max-width: 640px) {
    .phone-radar__score {
        position: static;
        margin: 0 auto 1rem;
    }
}

.phone-radar__canvas {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.phone-radar svg {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.phone-radar__label {
    position: absolute;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .phone-radar__label {
        font-size: 0.65rem;
    }
}

.phone-radar__grid {
    fill: none;
    stroke: rgba(17, 25, 40, 0.18);
    stroke-width: 1;
}

.phone-radar__shape {
    fill: rgba(42, 99, 246, 0.25);
    stroke: var(--color-blue);
    stroke-width: 1.5;
}

.phone-radar__legend {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-radar__legend li {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.phone-radar__legend li > span:first-child {
    flex: 1;
}

.phone-radar__legend li > span:first-child strong {
    display: block;
    color: var(--color-text);
}

.phone-radar__legend li > span:first-child small {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-muted);
}

.phone-radar__legend li > span:first-child small::after {
    content: '';
    flex: 1;
    border-bottom: 1px dashed rgba(17, 25, 40, 0.25);
    margin-left: 0.35rem;
}

.phone-radar__legend-score {
    font-weight: 700;
    color: var(--color-blue);
    min-width: 2.5rem;
    text-align: right;
}

.score-breakdown--columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.score-breakdown--columns li {
    border: none;
    background: #EEF2FF;
    border-radius: var(--radius-md);
    padding: 1rem;
}

.related-products {
    padding-bottom: 4rem;
}

.empty {
    text-align: center;
    color: var(--color-muted);
}

.hero--slim {
    padding: 5rem 0 2.5rem;
    background: radial-gradient(circle at top, rgba(42, 99, 246, 0.2), rgba(14, 30, 64, 0.9));
    color: var(--color-white);
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
}

.hero--slim h1 {
    color: var(--color-white);
}

.archive-grid {
    padding-top: 3rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

html.menu-open,
body.menu-open {
    overflow: hidden;
}

.diamond-stats {
    width: 220px;
    height: 220px;
    position: relative;
    margin: 1.5rem auto;
}

.diamond-stats svg {
    width: 100%;
    height: 100%;
}

.diamond-stats__grid {
    fill: rgba(42, 99, 246, 0.08);
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 0.5;
}

.diamond-stats__fill {
    fill: rgba(90, 115, 255, 0.45);
    stroke: var(--color-blue);
    stroke-width: 0.6;
}

.diamond-stats__labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-size: 0.75rem;
    text-align: center;
}

.diamond-stats__label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    color: #0E1E40;
    text-shadow: none;
}

.diamond-stats__label strong {
    font-size: 1rem;
    color: #0E1E40;
}

.diamond-stats__label--top {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.diamond-stats__label--right {
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
}

.diamond-stats__label--bottom {
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.diamond-stats__label--left {
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
}


.diamond-stats__score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0E1E40;
    text-align: center;
    font-weight: 700;
    padding: 0;
}

.diamond-stats__score span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0E1E40;
}

.diamond-stats__score small {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(14, 30, 64, 0.7);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    .main-navigation {
        display: none;
    }

    .header__actions .btn {
        display: none;
    }

    .mobile-trigger {
        display: flex;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .category-strip {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        margin-top: -2rem;
    }

    .blog-hero__inner {
        flex-direction: column;
    }

    .blog-hero__card {
        order: 2;
    }

    .blog-single-layout__grid {
        grid-template-columns: 1fr;
    }

    .blog-single-sidebar {
        position: static;
    }

    .blog-card__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    :root {
        --container-max: calc(100% - 2rem);
    }

    .hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-card__body {
        padding: 1.25rem;
    }

.blog-card__thumb img {
        height: 180px;
    }

    .blog-hero__meta {
        flex-direction: column;
        gap: 0.4rem;
    }

    .blog-single-hero__inner {
        grid-template-columns: 1fr;
    }

    .breadcrumbs {
        font-size: 0.8rem;
    }

    .spec-table__row {
        flex-direction: column;
        align-items: flex-start;
    }

    .diamond-stats {
        width: 180px;
        height: 180px;
    }

    .diamond-stats__label--right {
        right: -5px;
    }

    .diamond-stats__label--left {
        left: -5px;
    }
}
