@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap");

:root {
    --bg: #e7eef7;
    --bg-soft: #f3f7fc;
    --panel: rgba(255, 255, 255, 0.7);
    --panel-strong: #ffffff;
    --ink: #08182b;
    --muted: #4a5d75;
    --line: rgba(17, 39, 68, 0.12);
    --brand: #109cc2;
    --brand-deep: #0a7898;
    --sun: #d99512;
    --mint: #d9edf7;
    --sea: #d8e7f5;
    --shadow-soft: 0 18px 44px rgba(8, 24, 43, 0.12);
    --shadow-strong: 0 26px 66px rgba(8, 24, 43, 0.22);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --max: 1180px;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.82);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.65;
    background:
        radial-gradient(900px 500px at -6% -6%, rgba(16, 156, 194, 0.18), transparent 60%),
        radial-gradient(700px 350px at 106% 4%, rgba(217, 149, 18, 0.18), transparent 60%),
        radial-gradient(600px 500px at 50% 105%, rgba(10, 120, 152, 0.1), transparent 60%),
        linear-gradient(180deg, #f3f7fc 0%, #e7eef7 52%, #f3f7fc 100%);
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

p,
li {
    color: var(--muted);
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.65em;
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.site-shell {
    min-height: 100vh;
}

.section-inner,
.header-inner,
.footer-inner {
    width: min(var(--max), calc(100% - 2.2rem));
    margin-inline: auto;
}

.section {
    padding: clamp(2.4rem, 4vw, 4.2rem) 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(17, 39, 68, 0.1);
    background: rgba(243, 247, 252, 0.88);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    min-height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: transparent;
    font-size: 0;
    background:
        url("../assets/logo-mark.svg") center/cover no-repeat,
        linear-gradient(140deg, var(--brand-deep) 0%, var(--brand) 100%);
    box-shadow: 0 10px 18px rgba(8, 24, 43, 0.12);
}

.brand-text {
    display: grid;
    line-height: 1.12;
}

.brand-text strong {
    font-size: 1rem;
    color: var(--ink);
}

.brand-text span {
    font-size: 0.78rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.main-nav a {
    padding: 0.56rem 0.85rem;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(12, 168, 204, 0.1);
    color: var(--brand-deep);
    border-color: rgba(12, 168, 204, 0.25);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.58rem 0.95rem;
    background: var(--panel-strong);
    color: var(--ink);
    font-weight: 700;
}

.hero {
    padding: clamp(2.4rem, 5vw, 5rem) 0 2.6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(1.4rem, 2.8vw, 2.4rem);
}

.hero-copy,
.hero-side {
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.3rem, 2.8vw, 2.2rem);
}

.pill,
.eyebrow,
.badge,
.ad-label,
.article-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.3rem 0.76rem;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
}

.pill,
.eyebrow {
    color: var(--brand-deep);
    background: linear-gradient(90deg, #d6f0f8, #e2f5fb);
    border: 1px solid rgba(12, 168, 204, 0.28);
}

.hero-copy h1 {
    font-size: clamp(1.85rem, 4.3vw, 3.05rem);
    margin-top: 0.78rem;
    margin-bottom: 0.65rem;
}

.hero-actions,
.affiliate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.74rem;
    margin-top: 1.2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 0.76rem 1.14rem;
    font-weight: 700;
    font-size: 0.94rem;
    color: #fff;
    background: linear-gradient(120deg, var(--ink) 0%, var(--brand-deep) 56%, var(--brand) 100%);
    box-shadow: 0 12px 26px rgba(8, 24, 43, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(8, 24, 43, 0.36);
    filter: saturate(1.12);
}

.button.ghost {
    color: var(--brand-deep);
    border-color: rgba(16, 156, 194, 0.28);
    background: rgba(16, 156, 194, 0.08);
    box-shadow: none;
}

.button.ghost:hover {
    background: rgba(16, 156, 194, 0.14);
    box-shadow: 0 10px 20px rgba(10, 120, 152, 0.16);
}

.search-panel {
    margin-top: 1.2rem;
    display: flex;
    gap: 0.65rem;
    align-items: stretch;
}

.search-panel input {
    flex: 1;
    min-width: 220px;
    border: 1px solid rgba(12, 168, 204, 0.25);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    font-size: 0.96rem;
    padding: 0.84rem 0.95rem;
}

.search-panel input:focus {
    outline: 2px solid rgba(12, 168, 204, 0.3);
    border-color: var(--brand);
}

.search-help {
    margin-top: 0.7rem;
    font-size: 0.9rem;
}

.mini-metrics {
    margin-top: 1.28rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.stat-card {
    border: 1px solid rgba(12, 168, 204, 0.2);
    border-radius: 14px;
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-card strong {
    display: block;
    color: var(--ink);
    margin-bottom: 0.2rem;
}

.hero-art {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(170deg, #f0f8fd 0%, #e8f2fa 100%);
    padding: 1rem;
}

.hero-art img {
    width: 100%;
    min-height: 230px;
    object-fit: contain;
}

.hero-side-copy {
    margin-top: 1.15rem;
}

.trust-strip,
.three-grid,
.card-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item,
.topic-card,
.article-card,
.info-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.info-card {
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-deep), var(--brand), var(--sun));
}

.trust-item strong,
.topic-card h3,
.article-card h3,
.info-card h3 {
    color: var(--ink);
}

.editorial-grid .editorial-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(233, 242, 250, 0.86));
}

.editorial-card h3 {
    margin-top: 0.45rem;
}

.editorial-card p {
    margin-bottom: 0;
}

details.trust-item {
    cursor: pointer;
}

details.trust-item > summary {
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

details.trust-item > summary::-webkit-details-marker {
    display: none;
}

details.trust-item .button.ghost {
    width: fit-content;
    pointer-events: none;
}

details.trust-item[open] {
    outline: 2px solid rgba(10, 143, 140, 0.18);
    outline-offset: 2px;
}

.section-title {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.section-title h2 {
    margin-bottom: 0;
    font-size: clamp(1.45rem, 2.7vw, 2.1rem);
}

.section-title p {
    max-width: 58ch;
}

.visual-box {
    border-radius: 14px;
    background: linear-gradient(140deg, #e8f4fa, #eaf0f8);
    border: 1px solid rgba(12, 168, 204, 0.18);
    padding: 0.9rem;
    margin-bottom: 0.72rem;
}

.badge,
.article-meta {
    color: var(--ink);
    background: var(--sea);
    border: 1px solid rgba(20, 50, 90, 0.14);
}

.ad-slot,
.affiliate-box {
    border-radius: var(--radius-md);
    border: 1px solid rgba(12, 168, 204, 0.18);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.08rem;
}

.ad-label {
    color: #7a4f0f;
    background: #fef3cd;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 670px;
    background: rgba(255, 255, 255, 0.92);
}

.comparison-table th,
.comparison-table td {
    padding: 0.86rem;
    border-bottom: 1px solid rgba(20, 50, 90, 0.08);
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    color: var(--ink);
    background: rgba(218, 234, 248, 0.65);
    font-weight: 800;
}

.table-note {
    margin-top: 0.72rem;
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border-radius: 14px;
    border: 1px solid rgba(20, 50, 90, 0.1);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.feed-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.15rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(232, 242, 250, 0.95) 100%);
    box-shadow: var(--shadow-soft);
}

.feed-card h3 {
    font-size: 1.1rem;
    margin-top: 0.85rem;
}

.feed-card p {
    margin-bottom: 0.9rem;
}

.feed-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.feed-meta small {
    color: var(--muted);
    font-weight: 700;
}

.feed-panel {
    display: grid;
    gap: 1rem;
}

.feed-status {
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .feed-grid {
        grid-template-columns: 1fr;
    }
}

.faq-question {
    width: 100%;
    border: 0;
    background: #fff;
    color: #174341;
    font-weight: 700;
    font-size: 0.98rem;
    text-align: left;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding: 0 1rem 0.95rem;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

.footer {
    margin-top: 2.1rem;
    background: #0f2a2a;
    color: #d4e8e6;
    padding: 2rem 0;
}

.footer p,
.footer a,
.footer span {
    color: #bdd3d1;
}

.footer .brand-text strong {
    color: #e8f6f4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 1.2rem;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.footer-links strong {
    color: #ebfaf9;
}

.footer-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #a8c4c1;
}

.hub-hero {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(130deg, rgba(228, 242, 252, 0.9), rgba(255, 246, 224, 0.76));
    padding: clamp(1.2rem, 2.5vw, 2rem);
    box-shadow: var(--shadow-soft);
}

.breadcrumb-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.95rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.breadcrumb-trail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-trail li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.breadcrumb-trail li + li::before {
    content: ">";
    color: rgba(17, 39, 68, 0.4);
}

.breadcrumb-trail a {
    color: var(--brand-deep);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.1rem;
    align-items: center;
    margin: 0.3rem 0 1rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-meta span,
.hero-meta a,
.hero-meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-meta a {
    color: var(--brand-deep);
    font-weight: 700;
}

.editorial-note {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(17, 39, 68, 0.12);
    font-size: 0.94rem;
}

.hub-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.hub-card {
    border: 1px solid rgba(12, 168, 204, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(10, 28, 55, 0.08);
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-copy,
.hero-side,
.trust-item,
.topic-card,
.article-card,
.info-card,
.hub-card {
    animation: riseIn 0.6s ease both;
}

.hero-side {
    animation-delay: 0.12s;
}

.topic-card:nth-child(2),
.article-card:nth-child(2),
.hub-card:nth-child(2) {
    animation-delay: 0.09s;
}

.topic-card:nth-child(3),
.article-card:nth-child(3),
.hub-card:nth-child(3) {
    animation-delay: 0.16s;
}

@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-title {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hub-grid,
    .feature-grid,
    .three-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 72px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        width: 100%;
        display: none;
        padding-bottom: 0.85rem;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        width: 100%;
    }

    .search-panel {
        flex-direction: column;
    }

    .mini-metrics,
    .trust-strip,
    .feature-grid,
    .card-grid,
    .three-grid,
    .hub-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy h1 {
        font-size: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.35rem;
    }

    .feed-card {
        padding: 1.15rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.65rem 0.75rem;
        font-size: 0.88rem;
    }
}

/* ─── hover en cards ─────────────────────── */
.topic-card,
.hub-card,
.article-card,
.info-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topic-card:hover,
.hub-card:hover,
.article-card:hover,
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

/* ─── feed cards mejoradas ───────────────── */
.feed-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feed-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.feed-card h3 {
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

/* ─── separadores de sección ─────────────── */
.section + .section {
    border-top: 1px solid var(--line);
}

/* ─── tabla con scrollbar más discreta ───── */
.comparison-table-wrapper::-webkit-scrollbar {
    height: 5px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: #e9f1f8;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: #9ebad0;
    border-radius: 99px;
}

/* ─── fila de tabla con hover ────────────── */
.comparison-table tbody tr {
    transition: background 0.15s ease;
}

.comparison-table tbody tr:hover {
    background: rgba(12, 168, 204, 0.06);
}

/* ─── hub-hero más compacto en artículos ─── */
.hub-hero h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
}

/* ─── ad-slot algo más discreto ─────────── */
.ad-slot {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
