/* ═══════════════════════════════════════════════════════════════
   CANARY CONNECT - GUÍA DE PRECIOS
   Overview + Detail page styles
   ═══════════════════════════════════════════════════════════════ */

:root {
    --pg-blue: #004B87;
    --pg-blue-light: #E8F0F8;
    --pg-yellow: #FECB00;
    --pg-black: #1A1A1A;
    --pg-dark: #333333;
    --pg-gray: #666666;
    --pg-light: #767676;  /* WCAG AA minimum on white (4.54:1) */
    --pg-border: #E5E5E5;
    --pg-bg: #F8F9FA;
    --pg-white: #FFFFFF;
    --pg-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pg-radius: 12px;
}

.cc-pg-page,
.cc-pg-single {
    font-family: var(--pg-font);
    color: var(--pg-dark);
    line-height: 1.6;
}

.cc-pg-page *,
.cc-pg-single * {
    box-sizing: border-box;
}

/* ═══════════════════════════════════════
   OVERVIEW PAGE
   ═══════════════════════════════════════ */

/* Hero */
.pg-hero {
    background: linear-gradient(rgba(248,249,250,0.88), rgba(233,236,239,0.92)),
                url('../assets/img/hero-precios.jpg') center/cover no-repeat;
    padding: 80px 24px 60px;
    text-align: center;
}

.pg-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.pg-hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--pg-black);
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.pg-hero-sub {
    font-size: 18px;
    color: var(--pg-gray);
    margin: 0 0 32px;
}

.pg-hero-count {
    font-size: 14px;
    color: var(--pg-light);
    margin: 16px 0 0;
}

/* Search */
.pg-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.pg-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pg-light);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.pg-search-input {
    width: 100%;
    padding: 14px 16px 14px 52px !important;
    font-size: 16px;
    border: 2px solid var(--pg-border);
    border-radius: 50px;
    outline: none;
    font-family: var(--pg-font);
    transition: border-color 0.2s;
    background: var(--pg-white);
}

.pg-search-input:focus {
    border-color: var(--pg-blue);
}

/* Categories Section */
.pg-categories {
    padding: 60px 24px;
    background: var(--pg-white);
}

.pg-categories-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pg-cat-section {
    margin-bottom: 48px;
}

.pg-cat-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg-black);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--pg-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-cat-emoji {
    font-size: 28px;
}

.pg-cat-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--pg-light);
}

/* Article Grid */
.pg-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.pg-article-card {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    text-decoration: none;
    border-bottom: 1px solid var(--pg-border);
    transition: background 0.15s;
}

.pg-article-card:hover {
    background: var(--pg-bg);
}

.pg-article-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--pg-blue);
    line-height: 1.4;
}

.pg-article-card:hover .pg-article-title {
    text-decoration: underline;
}

.pg-article-price {
    font-size: 13px;
    color: var(--pg-light);
    margin-top: 4px;
}

/* No Results */
.pg-no-results {
    text-align: center;
    padding: 60px 24px;
    color: var(--pg-gray);
    font-size: 16px;
}

/* Overview CTA */
.pg-cta-section {
    background: var(--pg-blue);
    padding: 60px 24px;
    text-align: center;
}

.pg-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.pg-cta-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--pg-white);
    margin: 0 0 12px;
}

.pg-cta-section p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 28px;
}

.pg-cta-btn {
    display: inline-block;
    background: var(--pg-yellow);
    color: var(--pg-black);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pg-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: var(--pg-black);
}

/* ═══════════════════════════════════════
   SINGLE / DETAIL PAGE
   ═══════════════════════════════════════ */

/* Hero */
.pgs-hero {
    background: var(--pg-blue);
    background-size: cover;
    background-position: center;
    padding: 100px 24px 60px;
    color: var(--pg-white);
}

.pgs-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.pgs-breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.85;
}

.pgs-breadcrumb a {
    color: var(--pg-white);
    text-decoration: none;
}

.pgs-breadcrumb a:hover {
    text-decoration: underline;
}

.pgs-bc-sep {
    margin: 0 8px;
    opacity: 0.5;
}

.pgs-title {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.pgs-date {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
}

/* Content Layout */
.pgs-content-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    align-items: start;
}

/* Sidebar */
.pgs-sidebar {
    position: sticky;
    top: 100px;
}

/* Price Card */
.pgs-price-card {
    background: var(--pg-white);
    border: 2px solid var(--pg-blue);
    border-radius: var(--pg-radius);
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.pgs-price-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-gray);
    margin-bottom: 8px;
}

.pgs-price-range {
    font-size: 28px;
    font-weight: 800;
    color: var(--pg-blue);
    margin-bottom: 4px;
    line-height: 1.2;
}

.pgs-price-unit {
    font-size: 16px;
    font-weight: 400;
    color: var(--pg-gray);
}

.pgs-price-avg {
    font-size: 14px;
    color: var(--pg-gray);
    margin-bottom: 20px;
    padding-top: 8px;
}

.pgs-price-card .pgs-cta-btn {
    display: block;
    background: var(--pg-yellow);
    color: var(--pg-black);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 16px;
}

.pgs-price-card .pgs-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pgs-price-note {
    font-size: 11px;
    color: var(--pg-light);
    margin: 0;
    line-height: 1.4;
}

/* TOC */
.pgs-toc {
    background: var(--pg-bg);
    border-radius: var(--pg-radius);
    padding: 20px;
}

.pgs-toc h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--pg-dark);
    margin: 0 0 12px;
}

.pgs-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pgs-toc li {
    margin-bottom: 8px;
}

.pgs-toc a {
    font-size: 14px;
    color: var(--pg-blue);
    text-decoration: none;
    line-height: 1.4;
}

.pgs-toc a:hover {
    text-decoration: underline;
}

/* Main Content */
.pgs-main {
    min-width: 0;
}

/* Price Factors */
.pgs-factors {
    background: var(--pg-blue-light);
    border-radius: var(--pg-radius);
    padding: 24px;
    margin-bottom: 32px;
}

.pgs-factors h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pg-blue);
    margin: 0 0 12px;
}

.pgs-factors ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.pgs-factors li {
    font-size: 15px;
    color: var(--pg-dark);
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Article Content */
.pgs-article {
    margin-bottom: 40px;
}

.pgs-article h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg-black);
    margin: 40px 0 16px;
    padding-top: 16px;
}

.pgs-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--pg-dark);
    margin: 28px 0 12px;
}

.pgs-article p {
    font-size: 16px;
    color: var(--pg-dark);
    line-height: 1.7;
    margin: 0 0 16px;
}

.pgs-article ul,
.pgs-article ol {
    padding: 0 0 0 24px;
    margin: 0 0 16px;
}

.pgs-article li {
    font-size: 16px;
    color: var(--pg-dark);
    line-height: 1.7;
    margin-bottom: 6px;
}

.pgs-article strong {
    color: var(--pg-black);
}

/* FAQ */
.pgs-faq {
    margin-bottom: 40px;
}

.pgs-faq > h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg-black);
    margin: 0 0 20px;
}

.pgs-faq-item {
    border: 1px solid var(--pg-border);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.pgs-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--pg-dark);
    cursor: pointer;
    text-align: left;
    font-family: var(--pg-font);
    gap: 12px;
}

.pgs-faq-q:hover {
    background: var(--pg-bg);
}

.pgs-faq-q svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.pgs-faq-item.open .pgs-faq-q svg {
    transform: rotate(180deg);
}

.pgs-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pgs-faq-item.open .pgs-faq-a {
    max-height: 300px;
}

.pgs-faq-a p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 15px;
    color: var(--pg-gray);
    line-height: 1.6;
}

/* CTA Banner */
.pgs-cta-banner {
    background: var(--pg-blue);
    border-radius: var(--pg-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
}

.pgs-cta-banner h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--pg-white);
    margin: 0 0 8px;
}

.pgs-cta-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 24px;
}

.pgs-cta-banner .pgs-cta-btn {
    display: inline-block;
    background: var(--pg-yellow);
    color: var(--pg-black);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pgs-cta-banner .pgs-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Related Articles */
.pgs-related {
    margin-bottom: 40px;
}

.pgs-related h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg-black);
    margin: 0 0 16px;
}

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

.pgs-related-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--pg-bg);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}

.pgs-related-card:hover {
    background: var(--pg-blue-light);
    transform: translateY(-2px);
}

.pgs-related-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--pg-blue);
    line-height: 1.4;
    margin-bottom: 6px;
}

.pgs-related-price {
    font-size: 13px;
    color: var(--pg-gray);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .pg-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pgs-content-wrap {
        grid-template-columns: 1fr;
    }

    .pgs-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .pgs-price-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .pg-hero {
        padding: 60px 20px 40px;
    }

    .pg-hero h1 {
        font-size: 32px;
    }

    .pg-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pg-cat-title {
        font-size: 20px;
    }

    .pgs-hero {
        padding: 80px 20px 40px;
    }

    .pgs-title {
        font-size: 28px;
    }

    .pgs-sidebar {
        grid-template-columns: 1fr;
    }

    .pgs-related-grid {
        grid-template-columns: 1fr;
    }

    .pgs-cta-banner {
        padding: 28px 20px;
    }

    .pgs-cta-banner h2 {
        font-size: 22px;
    }

    .pg-cta-section h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .pg-articles-grid {
        grid-template-columns: 1fr;
    }

    .pg-hero h1 {
        font-size: 28px;
    }

    .pgs-title {
        font-size: 24px;
    }

    .pgs-price-range {
        font-size: 24px;
    }
}
