/* ==========================================================================
   PLPs Pantallas iPhone — Estilos para contenido SEO de categorías
   Prefijo: .plp- (evita conflictos con estilos existentes del tema)
   ========================================================================== */

/* --- Separador entre grid de productos y contenido --- */
.plp-separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 40px 0 32px 0;
}

/* --- Párrafo introductorio --- */
.plp-intro {
    font-size: 1.05em;
    line-height: 1.7;
    color: #333;
    margin-bottom: 24px;
}

/* --- Títulos H2 de sección --- */
.plp-h2 {
    font-size: 1.3em;
    color: #222;
    padding-bottom: 8px;
    border-bottom: 3px solid #157DD2;
    margin-top: 32px;
    margin-bottom: 20px;
}

/* --- Fichas de calidad --- */
.plp-calidad {
    border-left: 4px solid #157DD2;
    background-color: #f5f9ff;
    padding: 14px 18px;
    margin-bottom: 12px;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

.plp-calidad strong {
    display: block;
    font-size: 1.05em;
    color: #157DD2;
    margin-bottom: 4px;
}

.plp-calidad span {
    color: #444;
    font-size: 0.95em;
}

/* --- Bloque "A tener en cuenta" --- */
.plp-consejo {
    background-color: #fffbf0;
    border: 1px solid #f0d060;
    border-left: 4px solid #e6a800;
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
    color: #5a4800;
}

.plp-consejo a {
    color: #b38600;
    font-weight: 600;
}

.plp-consejo a:hover {
    color: #157DD2;
}

/* --- Ficha técnica (tabla de specs) --- */
.plp-specs-wrap {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.plp-specs-header {
    background-color: #157DD2;
    color: #fff;
    padding: 12px 18px;
    font-size: 1em;
    font-weight: 600;
    margin: 0;
}

.plp-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.plp-specs th,
.plp-specs td {
    padding: 11px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.plp-specs th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    width: 40%;
}

.plp-specs td {
    color: #555;
}

.plp-specs tr:nth-child(even) th {
    background-color: #fff;
}

.plp-specs tr:nth-child(even) td {
    background-color: #fff;
}

.plp-specs tr:last-child th,
.plp-specs tr:last-child td {
    border-bottom: none;
}

/* --- Modelos compatibles (pills) --- */
.plp-modelos {
    margin-top: 4px;
    background-color: #f5f9ff;
    border: 1px solid #d0e3f5;
    border-radius: 10px;
    padding: 16px 20px;
}

.plp-modelos strong {
    display: block;
    margin-bottom: 10px;
    color: #157DD2;
    font-size: 0.95em;
}

.plp-model-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plp-model-pill {
    display: inline-block;
    background-color: #e8f4fd;
    color: #157DD2;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 600;
    border: 1px solid #c4ddf0;
}

/* --- Modelos relacionados (grid con thumbnails) --- */
.plp-related-section {
    margin-top: 30px;
    padding-top: 0;
}

.plp-related-section h2 {
    font-size: 1.3em;
    margin-bottom: 16px;
    color: #222;
    padding-bottom: 8px;
    border-bottom: 3px solid #157DD2;
}

.plp-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.plp-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    width: 140px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.plp-related-card:hover {
    border-color: #157DD2;
    color: #157DD2;
    box-shadow: 0 2px 8px rgba(21, 125, 210, 0.15);
    transform: translateY(-1px);
}

.plp-related-card img {
    width: 80px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* --- Banner BF8 --- */
.plp-bf8-banner {
    margin-top: 24px;
    margin-bottom: 24px;
}

.plp-bf8-banner a {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f4fd 100%);
    border: 2px solid #157DD2;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    gap: 20px;
    transition: all 0.2s ease;
}

.plp-bf8-banner a:hover {
    background: linear-gradient(135deg, #e8f4fd 0%, #d4ecfb 100%);
    box-shadow: 0 3px 12px rgba(21, 125, 210, 0.2);
}

.plp-bf8-banner img {
    width: 100px;
    height: 77px;
    object-fit: contain;
    flex-shrink: 0;
}

.plp-bf8-text {
    flex: 1;
}

.plp-bf8-banner strong {
    display: block;
    font-size: 1.15em;
    color: #157DD2;
    margin-bottom: 4px;
}

.plp-bf8-banner span {
    font-size: 0.95em;
    color: #555;
}

/* --- Sección blog --- */
.plp-blog-section {
    margin-top: 24px;
    padding: 20px 24px;
    background-color: #f5f9ff;
    border: 1px solid #d0e3f5;
    border-radius: 10px;
}

.plp-blog-section h3 {
    font-size: 1.15em;
    color: #157DD2;
    margin: 0 0 14px 0;
}

.plp-blog-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plp-blog-section li {
    padding: 8px 0;
    border-bottom: 1px solid #e8eff7;
}

.plp-blog-section li:last-child {
    border-bottom: none;
}

.plp-blog-section a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
}

.plp-blog-section a:hover {
    color: #157DD2;
    text-decoration: underline;
}

.plp-blog-arrow {
    color: #157DD2;
    margin-right: 8px;
}

/* --- Responsive --- */
@media (max-width: 575.98px) {
    .plp-related-card {
        width: 100%;
    }

    .plp-bf8-banner a {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}
