/* ============================================= */
/* PAGES.CSS — Estilos para páginas internas     */
/* Se carga DESPUÉS de style.css base            */
/* ============================================= */

/* --- BREADCRUMB --- */
.breadcrumb {
    background-color: var(--bg-gray);
    padding: 12px 0;
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

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

.breadcrumb .separator {
    margin: 0 8px;
    color: var(--accent-color);
}

.breadcrumb .current {
    color: var(--accent-color);
}

/* --- PAGE HERO (Interior) --- */
.page-hero {
    background: linear-gradient(135deg, #1D1D1B 0%, #2e2e2a 55%, #1D1D1B 100%);
    color: var(--text-light);
    padding: 70px 0 65px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--secondary-color);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(243, 146, 35, 0.16) 0%, transparent 55%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.3px;
    line-height: 1.25;
}

.page-subtitle {
    font-size: 1.05rem;
    max-width: 750px;
    margin: 0 auto 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.page-hero .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.page-hero .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* --- PAGE SECTIONS --- */
.page-section {
    padding: 60px 0;
}

.page-content {
    max-width: 1000px;
    margin: 0 auto;
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #333;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px;
    color: #555;
    font-size: 1.05rem;
}

/* --- CONTENT WITH IMAGE --- */
.content-with-image {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.content-with-image .text-block {
    flex: 1;
}

.content-with-image .image-block {
    flex: 0 0 auto;
}

.content-with-image .image-block img {
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    height: auto;
    box-shadow: 0 6px 20px rgba(29, 29, 27, 0.15);
    border: 1px solid rgba(29, 29, 27, 0.06);
}

/* --- THREE COLUMNS --- */
.three-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.column-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(29, 29, 27, 0.06), 0 8px 24px rgba(29, 29, 27, 0.07);
    border-top: 3px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.column-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(29, 29, 27, 0.08), 0 14px 34px rgba(29, 29, 27, 0.12);
    border-top-color: var(--secondary-color);
}

.card-icon {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.column-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.column-card p {
    font-size: 0.95rem;
    color: #555;
}

/* --- DIAMETER CARDS --- */
.diameter-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.diameter-card {
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(29, 29, 27, 0.06), 0 8px 24px rgba(29, 29, 27, 0.07);
    overflow: hidden;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diameter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(29, 29, 27, 0.08), 0 14px 34px rgba(29, 29, 27, 0.12);
}

.diameter-card.featured {
    border-left-color: var(--secondary-color);
    box-shadow: 0 6px 25px rgba(243, 146, 35, 0.15);
}

.diameter-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.diameter-card.featured .diameter-header {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.diameter-size {
    font-size: 1.8rem;
    font-weight: 700;
}

.diameter-imperial {
    font-size: 0.9rem;
    opacity: 0.8;
}

.diameter-body {
    padding: 25px;
}

.diameter-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.diameter-body p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.diameter-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.spec-item {
    font-size: 0.9rem;
    color: #555;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

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

/* --- COMPARISON TABLE --- */
.comparison-table {
    margin-top: 30px;
}

.comparison-table th:first-child {
    width: 30%;
}

.table-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #555;
    padding: 15px;
    background: var(--bg-light);
    border-left: 3px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
}

/* --- PROCESS STEPS --- */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.95rem;
    color: #555;
}

/* --- CHECK LIST --- */
.check-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.check-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #444;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* --- CLIENT REFERENCE GRID --- */
.client-reference-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.client-ref-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.client-ref-card img {
    max-height: 50px;
    width: auto;
    margin-bottom: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-ref-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-ref-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.client-ref-card p {
    font-size: 0.9rem;
    color: #666;
}

/* --- RELATED LINKS --- */
.related-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.related-link-card {
    display: block;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.related-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-link-card h3 {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.related-link-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* --- PAGE CTA --- */
.page-cta {
    background: linear-gradient(135deg, #1D1D1B 0%, #32322d 100%);
    color: var(--text-light);
    position: relative;
    border-top: 4px solid var(--secondary-color);
}

.page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% -20%, rgba(243, 146, 35, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.page-cta .container {
    position: relative;
}

.page-cta h2 {
    color: var(--text-light);
}

.page-cta .btn-primary {
    box-shadow: 0 6px 20px rgba(243, 146, 35, 0.35);
}

.page-cta .btn-primary:hover {
    box-shadow: 0 10px 28px rgba(243, 146, 35, 0.5);
}

.page-cta p {
    color: rgba(250, 250, 250, 0.85);
    max-width: 600px;
    margin: -20px auto 0;
}

.page-cta .btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.page-cta .btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* --- REFINAMIENTO PREMIUM B2B --- */
/* Barra de acento bajo los títulos de sección */
.page-section .container > h2 {
    position: relative;
    padding-bottom: 18px;
}

.page-section .container > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 2px;
    background: var(--secondary-color);
}

.page-cta .container > h2::after {
    background: var(--secondary-color);
}

/* Tablas técnicas: encabezado con acento y hover de fila */
.page-section .spec-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(29, 29, 27, 0.08);
}

.page-section .spec-table th {
    border-bottom: 3px solid var(--secondary-color);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.page-section .spec-table tbody tr {
    transition: background-color 0.2s ease;
}

.page-section .spec-table tbody tr:hover {
    background-color: #FDF3E7;
}

/* Botones del hero y CTA con más presencia */
.page-hero .btn,
.page-cta .btn {
    padding: 14px 32px;
    letter-spacing: 0.4px;
}

/* Enlaces relacionados: flecha con desplazamiento */
.related-link-card h3 {
    transition: color 0.25s ease;
}

.related-link-card:hover h3 {
    color: var(--secondary-color);
}

/* Accesibilidad: foco visible para navegación por teclado */
.page-section a:focus-visible,
.page-hero a:focus-visible,
.page-cta a:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */

@media (min-width: 768px) {
    .page-hero h1 {
        font-size: 2.8rem;
    }

    .content-with-image {
        flex-direction: row;
    }

    .content-with-image.reverse {
        flex-direction: row-reverse;
    }

    .content-with-image .text-block {
        flex: 1;
    }

    .content-with-image .image-block {
        flex: 0 0 40%;
    }

    .three-columns {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .diameter-card.featured {
        grid-column: span 2;
    }

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

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

@media (min-width: 1024px) {
    .client-reference-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .related-links-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 1.6rem;
    }

    .page-subtitle {
        font-size: 0.95rem;
    }

    .diameter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .diameter-size {
        font-size: 1.4rem;
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Tabla comparativa responsive */
    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table th,
    .comparison-table td,
    .comparison-table tr {
        display: block;
    }

    .comparison-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .comparison-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
    }

    .comparison-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }

    .comparison-table td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        content: attr(data-label);
    }
}
