/* =============================================
   PATODATO - DIRECTORIO COMERCIAL
   Estilos principales
   ============================================= */

/* ----- VARIABLES ----- */
:root {
    --pd-primary: #2c3e50;
    --pd-secondary: #1E3151;
    --pd-accent: #e74c3c;
    --pd-gold: #f39c12;
    --pd-light: #f8f9fa;
    --pd-gray: #6c757d;
    --pd-border: #dee2e6;
    --pd-white: #ffffff;
    --pd-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --pd-radius: 3px;
    --pd-transition: all 0.3s ease;
}

/* ----- LAYOUT GENERAL ----- */
.pd-ficha-wrapper,
.pd-home-wrapper,
.pd-categoria-wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

.pd-ficha-main,
.pd-home-main,
.pd-categoria-main {
    flex: 1;
    min-width: 0;
}

.pd-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ----- FICHA DEL ANUNCIANTE ----- */

/* Cabecera */
.pd-ficha-header {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    overflow: hidden;
    margin-bottom: 30px;
	display:flex!important;
	padding: 25px;
	border: 1px solid #FEC007;
	border-bottom: 10px solid #1E3151;
}

@media (max-width: 480px){
	/* Cabecera */
.pd-ficha-header {

	display:block!important;

}
}

.pd-ficha-foto img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.pd-ficha-header-info {
    padding: 0 15px 0 15px;
}

.pd-ficha-logo {
    margin-bottom: 15px;
}

.pd-ficha-logo img {
    max-height: 200px!important;
    width: auto;
}

.pd-ficha-titulo {
font-size: 1.8em;
    margin: 0 0 10px;
    color: var(--pd-primary);
    line-height: 1.2em;
}

/* Badges de nivel */
.pd-ficha-nivel {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 10px;
}

.pd-badge-estrella {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: #fff;
}

.pd-badge-oro {
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #fff;
}

.pd-badge-cobre {
    background: linear-gradient(135deg, #b68d4c, #e6c07b);
    color: #fff;
}

.pd-badge-bronce {
    background: linear-gradient(135deg, #a77044, #c9956b);
    color: #fff;
}

/* Categorías */
.pd-ficha-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
	
}

.pd-badge-categoria {
    display: inline-block;
    padding: 4px 10px;
    background: #FEC007;
    border: 0px solid var(--pd-border);
    border-radius: 15px;
    font-size: 0.8em;
    color: white;
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-badge-categoria:hover {
    background: #1f3252;
    color: var(--pd-white);
    border-color: var(--pd-secondary);
}

.pd-ficha-desc-corta {
    color: var(--pd-gray);
    font-size: 1.05em;
    line-height: 1.6;
    margin: 0;
}

/* Secciones */
.pd-ficha-section {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    padding: 25px;
    margin-bottom: 25px;
border: 1px solid #FEC007 !important;
}

.pd-ficha-section h2 {
    color: var(--pd-primary);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pd-light);
}

.pd-ficha-contenido {
    line-height: 1.7;
    color: #444;
}

/* Galería */
.pd-ficha-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pd-galeria-item img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--pd-radius);
    transition: var(--pd-transition);
	object-position: top;
}

.pd-galeria-item img:hover {
    transform: scale(1.03);
    box-shadow: var(--pd-shadow);
}

/* Contacto Grid (Mapa + Datos) */
.pd-ficha-contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.pd-ficha-contacto-mapa {
    border-radius: var(--pd-radius);
    overflow: hidden;
    min-height: 300px;
}

.pd-ficha-contacto-mapa .pd-ficha-mapa {
    height: 100%;
}

.pd-ficha-contacto-mapa .pd-ficha-mapa iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
}

.pd-ficha-contacto-datos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-contacto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}

.pd-contacto-icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

.pd-contacto-item a {
    color: #1E3151;
    text-decoration: none;
    word-break: break-all;
}

.pd-contacto-item a:hover {
	color: #FEC007;
    text-decoration: underline;
}

/* Contacto sin mapa - full width */
.pd-ficha-contacto-grid.pd-contacto-full {
    grid-template-columns: 1fr;
}

/* Redes Sociales - Iconos SVG */
.pd-ficha-redes-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--pd-border);
}

.pd-red-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--pd-transition);
}

.pd-red-icon svg {
    width: 20px;
    height: 20px;
}

.pd-red-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pd-red-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: #fff; }
.pd-red-facebook { background: #1877f2; color: #fff; }
.pd-red-tiktok { background: #010101; color: #fff; }
.pd-red-youtube { background: #ff0000; color: #fff; }
.pd-red-linkedin { background: #0a66c2; color: #fff; }
.pd-red-x {
    background: #000000!important;
}

/* Responsive contacto */
@media (max-width: 768px) {
    .pd-ficha-contacto-grid {
        grid-template-columns: 1fr;
    }

    .pd-ficha-contacto-mapa {
        min-height: 250px;
    }
}

/* ----- SIDEBAR ----- */
.pd-sidebar-widget {
    background: #ffffff;
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.pd-sidebar-widget h3 {
    font-size: 1.1em;
    color: #fec007;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--pd-light);
}

.pd-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-sidebar-list li {
    margin-bottom: 0px;
	border-bottom: 1px solid #fec00750;
}

.pd-sidebar-list li a {
    display: block;
    padding: 6px 10px;
    color: #1e3151;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: var(--pd-transition);
}

.pd-sidebar-list li a:hover {
    background: #fec00730;
    color: var(--pd-secondary);
}

.pd-sidebar-list .current-cat a,
.pd-sidebar-list .current a {
    background: var(--pd-secondary);
    color: var(--pd-white);
}

/* ----- HOME ----- */

/* Hero / Cabecera */
.pd-home-hero {
    text-align: center;
    padding: 40px 20px;
    background: #1e3151;
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    margin-bottom: 30px;
}

.pd-home-logo img {
    max-height: 120px;
    width: auto;
    margin-bottom: 15px;
}

.pd-home-texto {
    font-size: 1.1em;
    color: #f3f4f5;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Anunciante Estrella Home */
.pd-home-estrella {
    background: linear-gradient(135deg, #fef9e7, #fdebd0);
    border: 2px solid var(--pd-gold);
    border-radius: var(--pd-radius);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 25px;
    align-items: start;
}

.pd-home-estrella-foto img {
    width: auto;
    height: 350px;
    object-fit: cover;
    border-radius: var(--pd-radius);
}

.pd-home-estrella-logo img {
    display: block;
    height: auto!important;
    max-width: 100px!important;
}

.pd-home-estrella-info h2 {
    margin: 0 0 5px;
    color: var(--pd-primary);
}

.pd-home-estrella-info .pd-ficha-nivel {
    margin-bottom: 10px;
}

.pd-home-estrella-info p {
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px;
}

.pd-home-estrella-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
	margin: 10px 0px;
}

.pd-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-btn-primary {
    background: var(--pd-secondary);
    color: var(--pd-white);
}

.pd-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.pd-btn-outline {
    border: 1px solid var(--pd-secondary);
    color: var(--pd-secondary);
}

.pd-btn-outline:hover {
    background: var(--pd-secondary);
    color: var(--pd-white);
}

/* Anunciantes Secundarios */
.pd-home-secundarios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pd-home-secundario {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.pd-home-secundario-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.pd-home-secundario-info h3 {
    margin: 0 0 5px;
    font-size: 1.1em;
    color: var(--pd-primary);
}

.pd-home-secundario-info h3 a {
    color: inherit;
    text-decoration: none;
}

.pd-home-secundario-info h3 a:hover {
    color: var(--pd-secondary);
}

.pd-home-secundario-info p {
    font-size: 0.85em;
    color: var(--pd-gray);
    margin: 0;
    line-height: 1.4;
}

/* Artículos Destacados */
.pd-home-articulos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pd-home-articulo {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
    transition: var(--pd-transition);
	padding-bottom: 30px;
}

.pd-home-articulo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pd-home-articulo-img{
	min-height: 300px;
}

.pd-home-articulo-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.pd-home-articulo-info {
    padding: 15px;
}

.pd-home-articulo-info h3 {
    margin: 0 0 8px;
    font-size: 1.05em;
min-height: 50px;
}

.pd-home-articulo-info h3 a {
    color: var(--pd-primary);
    text-decoration: none;
}

.pd-home-articulo-info h3 a:hover {
    color: var(--pd-secondary);
}

.pd-home-articulo-info p {
    font-size: 0.85em;
    color: var(--pd-gray);
    margin: 0;
    line-height: 1.5;
min-height: 80px;
}

/* Grilla de Categorías */
.pd-home-section-title {
    font-size: 1.3em;
    color: var(--pd-primary);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--pd-border);
	font-weight: bold!important;
}

.pd-home-categorias {
    display: grid;
    grid-template-columns: repeat(6, 2fr);
    gap: 15px;
    margin-bottom: 30px;
}

.pd-home-categoria {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 0px;
    text-align: center;
    transition: var(--pd-transition);
    text-decoration: none;
}

.pd-home-categoria:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--pd-secondary);
}

.pd-home-categoria-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.pd-home-categoria h3 {
    margin: 0;
    font-size: 0.95em;
    color: var(--pd-primary);
}

.pd-home-categoria span {
    font-size: 0.8em;
    color: var(--pd-gray);
}

/* Muro de Logos */
.pd-home-logos {
    display: grid;
    grid-template-columns: repeat(9, 2fr);
    gap: 15px;
    margin: 70px 0px;
}

.pd-home-logo-item {
    background: var(--pd-white);
    border-radius: 50%;
    box-shadow: var(--pd-shadow);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pd-transition);
}

.pd-home-logo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pd-home-logo-item img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
border-radius: 50%;
}

/* ----- PÁGINA DE CATEGORÍA ----- */
.pd-cat-header {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.pd-cat-header-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
	object-position: top;
}

.pd-cat-header-info {
    padding: 25px;
}

.pd-cat-header-info h1 {
    margin: 0 0 10px;
    color: var(--pd-primary);
}

.pd-cat-header-info p {
    color: var(--pd-gray);
    line-height: 1.6;
    margin: 0;
}

/* Grilla de anunciantes en categoría */
.pd-cat-anunciantes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pd-card-anunciante {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
    transition: var(--pd-transition);
}

.pd-card-anunciante:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pd-card-anunciante-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
	object-position: top;
}

.pd-card-anunciante-body {
    padding: 15px;
}

.pd-card-anunciante-logo img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.pd-card-anunciante-body h3 {
    margin: 0 0 5px;
    font-size: 1em;
}

.pd-card-anunciante-body h3 a {
    color: var(--pd-primary);
    text-decoration: none;
}

.pd-card-anunciante-body h3 a:hover {
    color: var(--pd-secondary);
}

.pd-card-anunciante-body p {
    font-size: 0.85em;
    color: var(--pd-gray);
    margin: 0;
    line-height: 1.4;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 992px) {
    .pd-ficha-wrapper,
    .pd-home-wrapper,
    .pd-categoria-wrapper {
        flex-direction: column;
    }

    .pd-sidebar {
        width: 100%;
    }

    .pd-home-categorias {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-cat-anunciantes {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-home-logos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .pd-home-estrella {
        flex-direction: column;
    }

    .pd-home-estrella-foto img {
        width: 100%;
        height: 200px;
    }

    .pd-home-secundarios {
        grid-template-columns: 1fr;
    }

    .pd-home-articulos {
        grid-template-columns: 1fr;
    }

    .pd-ficha-galeria {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
  



    .pd-ficha-galeria {
        grid-template-columns: 1fr;
    }


    .pd-ficha-redes {
        flex-direction: column;
    }

    .pd-red-link {
        justify-content: center;
    }
}




/* Subcategorías */
.pd-cat-subcategorias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.pd-cat-subcategoria {
    display: inline-block;
    padding: 6px 16px;
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    border-radius: 25px;
    font-size: 0.9em;
    color: var(--pd-primary);
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-cat-subcategoria span {
    color: var(--pd-gray);
    font-size: 0.85em;
}

.pd-cat-subcategoria:hover {
    background: var(--pd-secondary);
    color: var(--pd-white);
    border-color: var(--pd-secondary);
}

.pd-cat-subcategoria:hover span {
    color: var(--pd-white);
}


/* ----- ARCHIVE ANUNCIANTES ----- */
.pd-archive-header {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.pd-archive-header h1 {
    margin: 0 0 8px;
    color: var(--pd-primary);
}

.pd-archive-header p {
    margin: 0;
    color: var(--pd-gray);
    font-size: 1.05em;
}

/* Estrella en 2 columnas más grandes */
.pd-anunciantes-2col {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Card destacado (estrella) */
.pd-card-destacado {
    border: 2px solid var(--pd-gold);
}

/* Badges de categoría pequeños en cards */
.pd-card-categorias {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.pd-badge-categoria-sm {
    display: inline-block;
    padding: 2px 8px;
    background: var(--pd-light);
    border-radius: 10px;
    font-size: 0.75em;
    color: var(--pd-gray);
}

@media (max-width: 768px) {
    .pd-anunciantes-2col {
        grid-template-columns: 1fr !important;
    }
}

/* ----- LISTADO DE ARTÍCULOS ----- */

/* Filtro por categoría */
.pd-articulos-filtro {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.pd-filtro-item {
    display: inline-block;
    padding: 6px 16px;
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    border-radius: 25px;
    font-size: 0.85em;
    color: var(--pd-gray);
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-filtro-item:hover,
.pd-filtro-item.active {
    background: var(--pd-secondary);
    color: var(--pd-white);
    border-color: var(--pd-secondary);
}

/* Grilla de artículos */
.pd-articulos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pd-articulo-card {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
    transition: var(--pd-transition);
}

.pd-articulo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pd-articulo-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.pd-articulo-card-body {
    padding: 15px;
}

.pd-articulo-card-body h3 {
    margin: 0 0 8px;
    font-size: 1em;
    line-height: 1.4;
}

.pd-articulo-card-body h3 a {
    color: var(--pd-primary);
    text-decoration: none;
}

.pd-articulo-card-body h3 a:hover {
    color: var(--pd-secondary);
}

.pd-articulo-meta {
    font-size: 0.8em;
    color: var(--pd-gray);
    margin-bottom: 8px;
}

.pd-articulo-card-body p {
    font-size: 0.85em;
    color: var(--pd-gray);
    margin: 0 0 10px;
    line-height: 1.5;
}

.pd-articulo-leer {
    font-size: 0.85em;
    color: var(--pd-secondary);
    text-decoration: none;
    font-weight: 600;
}

.pd-articulo-leer:hover {
    text-decoration: underline;
}

/* Paginación */
.pd-paginacion {
    text-align: center;
    margin-bottom: 30px;
}

.pd-paginacion .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: var(--pd-white);
    border: 1px solid var(--pd-border);
    border-radius: var(--pd-radius);
    color: var(--pd-primary);
    text-decoration: none;
    font-size: 0.9em;
    transition: var(--pd-transition);
}

.pd-paginacion .page-numbers:hover,
.pd-paginacion .page-numbers.current {
    background: var(--pd-secondary);
    color: var(--pd-white);
    border-color: var(--pd-secondary);
}

/* ----- SINGLE ARTÍCULO ----- */

.pd-articulo-single {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
    margin-bottom: 25px;
}

.pd-articulo-header {
    padding: 30px 30px 0;
}

.pd-articulo-titulo {
    font-size: 2em;
    color: var(--pd-primary);
    margin: 10px 0 15px;
    line-height: 1.3;
}

.pd-articulo-meta-full {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--pd-gray);
    margin-bottom: 20px;
}

.pd-meta-separador {
    color: var(--pd-border);
}

.pd-articulo-imagen {
    margin: 0 30px 25px;
    border-radius: var(--pd-radius);
    overflow: hidden;
}

.pd-articulo-imagen img {
    width: 100%;
    height: auto;
    display: block;
}

.pd-articulo-contenido {
    padding: 0 30px 30px;
    line-height: 1.8;
    color: #444;
    font-size: 1.05em;
}

.pd-articulo-contenido p {
    margin-bottom: 1.2em;
}

.pd-articulo-contenido h2 {
    font-size: 1.4em;
    color: var(--pd-primary);
    margin: 1.5em 0 0.8em;
}

.pd-articulo-contenido h3 {
    font-size: 1.2em;
    color: var(--pd-primary);
    margin: 1.3em 0 0.6em;
}

.pd-articulo-contenido img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pd-radius);
    margin: 1em 0;
}

.pd-articulo-contenido blockquote {
    border-left: 4px solid var(--pd-secondary);
    padding: 15px 20px;
    margin: 1.5em 0;
    background: var(--pd-light);
    border-radius: 0 var(--pd-radius) var(--pd-radius) 0;
    font-style: italic;
    color: #555;
}

/* Tags */
.pd-articulo-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-top: 1px solid var(--pd-border);
}

.pd-articulo-tags span {
    font-size: 0.9em;
    color: var(--pd-gray);
    font-weight: 600;
}

/* Artículos Relacionados */
.pd-articulos-relacionados {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pd-articulo-card-sm {
    background: var(--pd-light);
    border-radius: var(--pd-radius);
    overflow: hidden;
    transition: var(--pd-transition);
}

.pd-articulo-card-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--pd-shadow);
}

.pd-articulo-card-sm-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.pd-articulo-card-sm-body {
    padding: 12px;
}

.pd-articulo-card-sm-body h4 {
    margin: 0 0 5px;
    font-size: 0.9em;
    line-height: 1.3;
}

.pd-articulo-card-sm-body h4 a {
    color: var(--pd-primary);
    text-decoration: none;
}

.pd-articulo-card-sm-body h4 a:hover {
    color: var(--pd-secondary);
}

.pd-articulo-card-sm-body .pd-meta-fecha {
    font-size: 0.75em;
    color: var(--pd-gray);
}

/* Responsive artículos */
@media (max-width: 992px) {
    .pd-articulos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-articulos-relacionados {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pd-articulo-titulo {
        font-size: 1.5em;
    }

    .pd-articulo-header,
    .pd-articulo-contenido,
    .pd-articulo-tags {
        padding-left: 20px;
        padding-right: 20px;
    }

    .pd-articulo-imagen {
        margin: 0 20px 20px;
    }
}

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

    .pd-articulos-relacionados {
        grid-template-columns: 1fr;
    }

    .pd-articulos-filtro {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .pd-filtro-item {
        white-space: nowrap;
    }
}

/* ----- PUBLICA CON NOSOTROS ----- */

.pd-publica-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.pd-publica-main {
    width: 100%;
}

/* Hero */
.pd-publica-hero {
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    color: var(--pd-white);
    border-radius: var(--pd-radius);
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
}

.pd-publica-hero h1 {
    font-size: 2.2em;
    margin: 0 0 15px;
    color: var(--pd-white);
}

.pd-publica-hero p {
    font-size: 1.15em;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Secciones */
.pd-publica-section {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 35px;
    margin-bottom: 30px;
}

.pd-publica-section h2 {
    font-size: 1.5em;
    color: var(--pd-primary);
    margin: 0 0 20px;
    text-align: center;
}

/* Beneficios */
.pd-publica-beneficios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.pd-beneficio {
    text-align: center;
    padding: 20px;
    border-radius: var(--pd-radius);
    background: var(--pd-light);
    transition: var(--pd-transition);
}

.pd-beneficio:hover {
    transform: translateY(-3px);
    box-shadow: var(--pd-shadow);
}

.pd-beneficio-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.pd-beneficio h3 {
    font-size: 1.1em;
    color: var(--pd-primary);
    margin: 0 0 8px;
}

.pd-beneficio p {
    font-size: 0.9em;
    color: var(--pd-gray);
    margin: 0;
    line-height: 1.5;
}

/* Planes */
.pd-publica-planes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pd-plan {
    border-radius: var(--pd-radius);
    overflow: hidden;
    border: 2px solid var(--pd-border);
    transition: var(--pd-transition);
}

.pd-plan:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pd-plan-header {
    padding: 20px;
    text-align: center;
}

.pd-plan-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--pd-white);
}

.pd-plan-bronce .pd-plan-header { background: linear-gradient(135deg, #a77044, #c9956b); }
.pd-plan-cobre .pd-plan-header { background: linear-gradient(135deg, #b68d4c, #e6c07b); }
.pd-plan-oro .pd-plan-header { background: linear-gradient(135deg, #f7971e, #ffd200); }
.pd-plan-estrella .pd-plan-header { background: linear-gradient(135deg, #f6d365, #fda085); }

.pd-plan-bronce:hover { border-color: #a77044; }
.pd-plan-cobre:hover { border-color: #b68d4c; }
.pd-plan-oro:hover { border-color: #f7971e; }
.pd-plan-estrella:hover { border-color: #f6d365; }

.pd-plan-body {
    padding: 20px;
}

.pd-plan-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pd-plan-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--pd-light);
    font-size: 0.88em;
    color: #444;
    padding-left: 20px;
    position: relative;
}

.pd-plan-body ul li:last-child {
    border-bottom: none;
}

.pd-plan-body ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--pd-secondary);
    font-weight: bold;
}

/* Formulario */
.pd-publica-contacto p {
    text-align: center;
    color: var(--pd-gray);
    margin-bottom: 25px;
}

.pd-publica-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 992px) {
    .pd-publica-planes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pd-publica-beneficios {
        grid-template-columns: 1fr;
    }

    .pd-publica-hero {
        padding: 35px 25px;
    }

    .pd-publica-hero h1 {
        font-size: 1.7em;
    }

    .pd-publica-section {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .pd-publica-planes {
        grid-template-columns: 1fr;
    }
}

/* ----- PÁGINA LISTADO DE CATEGORÍAS ----- */

.pd-page-categorias {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pd-page-categoria-card {
    display: flex;
    gap: 20px;
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-page-categoria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--pd-secondary);
}

.pd-page-categoria-img {
    width: 140px;
    min-height: 140px;
    flex-shrink: 0;
}

.pd-page-categoria-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-page-categoria-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
}

.pd-page-categoria-noimg span {
    font-size: 3em;
    color: var(--pd-white);
    font-weight: 700;
}

.pd-page-categoria-info {
    padding: 15px 15px 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pd-page-categoria-info h3 {
    margin: 0 0 4px;
    font-size: 1.1em;
    color: var(--pd-primary);
}

.pd-page-categoria-count {
    font-size: 0.8em;
    color: var(--pd-gray);
    margin-bottom: 6px;
}

.pd-page-categoria-info p {
    font-size: 0.85em;
    color: var(--pd-gray);
    margin: 0 0 8px;
    line-height: 1.4;
}

.pd-page-categoria-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

@media (max-width: 768px) {
    .pd-page-categorias {
        grid-template-columns: 1fr;
    }

    .pd-page-categoria-img {
        width: 100px;
        min-height: 100px;
    }
}

/* ----- CATEGORÍAS CON ÍCONO (HOME) ----- */

.pd-home-categoria-icono {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
border-radius: 50%;
    border: 1px solid #4a5568;
    padding: 15px;
background: #ffffff70;
}

.pd-home-categoria-icono img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-home-categoria-letra {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-home-categoria-letra span {
    font-size: 1.8em;
    color: var(--pd-white);
    font-weight: 700;
}

/* ----- PÁGINA LISTADO DE CATEGORÍAS (reemplaza el CSS anterior) ----- */

.pd-page-categorias {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.pd-page-categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 25px 20px;
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-page-categoria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--pd-secondary);
}

.pd-page-categoria-icono {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
border-radius: 50%;
    border: 1px solid #4a5568;
    padding: 15px;
background: #ffffff70;
}

.pd-page-categoria-icono img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-page-categoria-letra {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: var(--pd-white);
    font-weight: 700;
}

.pd-page-categoria-info h3 {
    margin: 0 0 4px;
    font-size: 1.1em;
    color: var(--pd-primary);
}

.pd-page-categoria-count {
    font-size: 0.8em;
    color: var(--pd-gray);
    display: block;
    margin-bottom: 6px;
}

.pd-page-categoria-info p {
    font-size: 0.85em;
    color: var(--pd-gray);
    margin: 0 0 8px;
    line-height: 1.4;
}

.pd-page-categoria-subcats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

/* ----- CABECERA DE CATEGORÍA FULL WIDTH (taxonomy page) ----- */

.pd-cat-header {
    background: var(--pd-primary);
    border-radius: var(--pd-radius);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}

.pd-cat-header-img {
    position: relative;
}

.pd-cat-header-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    filter: brightness(0.5);
}

.pd-cat-header-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: var(--pd-white);
    z-index: 2;
}

.pd-cat-header-info h1 {
    margin: 0 0 8px;
    color: var(--pd-white);
    font-size: 2.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pd-cat-header-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    font-size: 1.05em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Sin imagen de cabecera */
.pd-cat-header-noimg {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
}

.pd-cat-header-noimg h1 {
    margin: 0 0 8px;
    color: var(--pd-white);
    font-size: 2.2em;
}

.pd-cat-header-noimg p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Responsive categorías */
@media (max-width: 992px) {
    .pd-page-categorias {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pd-cat-header-img img {
        height: 220px;
    }

    .pd-cat-header-info h1 {
        font-size: 1.6em;
    }

    .pd-cat-header-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .pd-page-categorias {
        grid-template-columns: 1fr;
    }

    .pd-cat-header-img img {
        height: 180px;
    }
}

/* ----- CATEGORÍAS CON COLOR ----- */

/* Home cards con color 
.pd-home-categoria {
    border-top: 4px solid var(--cat-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 8%, white) 0%, var(--pd-white) 100%);
}

.pd-home-categoria:hover {
    border-bottom: 3px solid var(--cat-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 15%, white) 0%, var(--pd-white) 100%);
}

.pd-home-categoria h3 {
    color: color-mix(in srgb, var(--cat-color) 70%, black);
}

.pd-home-categoria-letra {
    background: var(--cat-color);
}

*/

/* Categorías Home - Card con header */
.pd-home-categoria {
    display: flex;
    flex-direction: column;
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    overflow: hidden;
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-home-categoria:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pd-home-categoria-header {
    background: var(--cat-color);
    padding: 12px 15px;
    text-align: center;
}

.pd-home-categoria-header h3 {
    margin: 0;
    color: var(--pd-white);
    font-size: 0.89em;
}

.pd-home-categoria-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
}

.pd-home-categoria-count {
    font-size: 0.8em;
    color: var(--pd-gray);
    margin-top: 8px;
}

/* Ícono SVG coloreado */
.pd-home-categoria-icono img {
    filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--cat-color) 30%, transparent));
}

/* Page categorías cards con color 
.pd-page-categoria-card {
    border-top: 4px solid var(--cat-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 8%, white) 0%, var(--pd-white) 100%);
}

.pd-page-categoria-card:hover {
    border-bottom: 3px solid var(--cat-color);
    background: linear-gradient(180deg, color-mix(in srgb, var(--cat-color) 15%, white) 0%, var(--pd-white) 100%);
}

.pd-page-categoria-info h3 {
    color: color-mix(in srgb, var(--cat-color) 70%, black);
}

.pd-page-categoria-letra {
    background: var(--cat-color);
}

.pd-page-categoria-icono img {
    filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--cat-color) 30%, transparent));
}

*/

/* ----- SISTEMA DE CALIFICACIÓN ----- */

.pd-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.pd-star {
    display: inline-flex;
    cursor: default;
    transition: transform 0.15s ease;
}

.pd-star svg {
    width: 20px;
    height: 20px;
    stroke: #f39c12;
    stroke-width: 1.5;
}

/* Estados de las estrellas */
.pd-star-full svg,
.pd-star-full svg path {
    fill: #f39c12 !important;
    stroke: #f39c12;
}

.pd-star-half svg path {
    fill: #f39c12 !important;
    clip-path: inset(0 50% 0 0);
}

.pd-star-empty svg,
.pd-star-empty svg path {
    fill: #e0e0e0 !important;
    stroke: #ddd;
}

.pd-star-hover svg,
.pd-star-hover svg path {
    fill: #f1c40f !important;
    stroke: #f1c40f;
    transform: scale(1.15);
}

/* Interactivas */
.pd-stars-interactive .pd-star {
    cursor: pointer;
}

.pd-stars-interactive .pd-star:hover {
    transform: scale(1.2);
}

/* Info */
.pd-stars-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    font-size: 0.85em;
}

.pd-stars-average {
    font-weight: 700;
    color: var(--pd-primary);
}

.pd-stars-count {
    color: var(--pd-gray);
}

/* Mensaje post-voto */
.pd-stars-message {
    display: block;
    width: 100%;
    font-size: 0.8em;
    color: #27ae60;
    margin-top: 4px;
}

.pd-stars-message-anim {
    animation: pdFadeIn 0.3s ease;
}

@keyframes pdFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estrellas en cards (más pequeñas) */
.pd-card-stars .pd-star svg {
    width: 14px;
    height: 14px;
}

.pd-card-stars .pd-stars-info {
    font-size: 0.75em;
    margin-left: 5px;
}

.pd-card-stars .pd-stars-message {
    display: none;
}

/* Estrellas en ficha (más grandes) */
.pd-ficha-stars .pd-star svg {
    width: 24px;
    height: 24px;
}

.pd-ficha-stars .pd-stars-info {
    font-size: 0.95em;
    margin-left: 10px;
}



/* ----- BREADCRUMBS ----- */
.pd-breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
	margin-bottom: 10px;
    font-size: 0.85em;
    color: var(--pd-gray);
}

.pd-breadcrumbs a {
    color: var(--pd-secondary);
    text-decoration: none;
}

.pd-breadcrumbs a:hover {
    text-decoration: underline;
}

.pd-bread-sep {
    margin: 0 8px;
    color: #031527!important;
}

.pd-bread-current {
    color: var(--pd-primary)!important;
    font-weight: 500;
}

/* ----- ETIQUETAS EN FICHA ----- */
.pd-ficha-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.pd-etiqueta {
    display: inline-block;
    padding: 4px 12px;
    background: var(--pd-light);
    border: 1px solid var(--pd-border);
    border-radius: 15px;
    font-size: 0.8em;
    color: var(--pd-gray);
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-etiqueta:hover {
    background: var(--pd-secondary);
    color: var(--pd-white);
    border-color: var(--pd-secondary);
}



/* ----- BANNERS PROMOCIONALES PATODATO ----- */

/* Base */
.pd-banner {
    display: block;
    text-decoration: none;
    border-radius: var(--pd-radius);
    overflow: hidden;
    transition: var(--pd-transition);
}

.pd-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ----- HORIZONTAL ----- */
.pd-banner-horizontal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    margin-bottom: 25px;
    border: 1px solid var(--pd-border);
}

.pd-banner-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.pd-banner-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pd-banner-title {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--pd-primary);
}

.pd-banner-text {
    font-size: 0.8em;
    color: var(--pd-gray);
}

.pd-banner-cta {
    flex-shrink: 0;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.82em;
    font-weight: 600;
    color: var(--pd-white);
    transition: var(--pd-transition);
}

/* Variantes horizontales */
.pd-banner-h1 {
    background: linear-gradient(135deg, #fefefe, #f8f9fa);
}

.pd-banner-h1 .pd-banner-cta {
    background: var(--pd-secondary);
}

.pd-banner-h1:hover .pd-banner-cta {
    background: #2980b9;
}

.pd-banner-h2 {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-color: #f0d060;
}

.pd-banner-h2 .pd-banner-title {
    color: #b8860b;
}

.pd-banner-h2 .pd-banner-cta {
    background: #f0b90b;
}

.pd-banner-h2:hover .pd-banner-cta {
    background: #d4a30a;
}

.pd-banner-h3 {
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border-color: #b0c4ff;
}

.pd-banner-h3 .pd-banner-title {
    color: var(--pd-primary);
}

.pd-banner-h3 .pd-banner-cta {
    background: var(--pd-primary);
}

.pd-banner-h3:hover .pd-banner-cta {
    background: #1a2a3a;
}

/* ----- SIDEBAR ----- */
.pd-banner-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    margin-bottom: 25px;
    border: 1px solid var(--pd-border);
}

.pd-banner-sidebar-logo {
    margin-bottom: 12px;
}

.pd-banner-sidebar-logo img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

.pd-banner-sidebar-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--pd-primary);
    margin-bottom: 8px;
    display: block;
}

.pd-banner-sidebar-text {
    font-size: 0.82em;
    color: var(--pd-gray);
    line-height: 1.5;
    margin-bottom: 15px;
    display: block;
}

.pd-banner-sidebar-cta {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--pd-white);
    transition: var(--pd-transition);
}

.pd-banner-sidebar-desde {
    display: block;
    font-size: 0.72em;
    color: var(--pd-gray);
    margin-top: 8px;
}

/* Variantes sidebar */
.pd-banner-s1 {
    background: linear-gradient(180deg, #ffffff, #f8f9fa);
}

.pd-banner-s1 .pd-banner-sidebar-cta {
    background: var(--pd-secondary);
}

.pd-banner-s1:hover .pd-banner-sidebar-cta {
    background: #2980b9;
}

.pd-banner-s2 {
    background: linear-gradient(180deg, #f0f4ff, #e8eeff);
    border-color: #b0c4ff;
}

.pd-banner-s2 .pd-banner-sidebar-cta {
    background: var(--pd-primary);
}

.pd-banner-s2:hover .pd-banner-sidebar-cta {
    background: #1a2a3a;
}

.pd-banner-s3 {
    background: linear-gradient(180deg, #fff9e6, #fff3cd);
    border-color: #f0d060;
}

.pd-banner-s3 .pd-banner-sidebar-title {
    color: #b8860b;
}

.pd-banner-s3 .pd-banner-sidebar-cta {
    background: #f0b90b;
}

.pd-banner-s3:hover .pd-banner-sidebar-cta {
    background: #d4a30a;
}

/* Responsive banners */
@media (max-width: 768px) {
    .pd-banner-horizontal {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .pd-banner-content {
        align-items: center;
    }
}


/* ----- QUIÉNES SOMOS ----- */

.pd-quienes-hero {
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    border-radius: var(--pd-radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.pd-quienes-hero-logo {
    margin-bottom: 15px;
}

.pd-quienes-hero-logo img {
    max-height: 40px!important;
    width: auto;
    filter: brightness(0) invert(1);
}

.pd-quienes-hero h1 {
    color: var(--pd-white);
    margin: 0;
    font-size: 2em;
}

.pd-quienes-contenido {
    line-height: 1.8;
    color: #444;
    font-size: 1.05em;
}

.pd-quienes-contenido p {
    margin-bottom: 1.2em;
}

.pd-quienes-contenido strong {
    color: var(--pd-primary);
}

/* Beneficios */
.pd-quienes-beneficios {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pd-quienes-beneficio {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--pd-light);
    border-radius: var(--pd-radius);
    font-size: 1em;
    color: #444;
    transition: var(--pd-transition);
}

.pd-quienes-beneficio:hover {
    background: #e8f4fd;
    transform: translateX(5px);
}

.pd-quienes-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--pd-secondary);
    color: var(--pd-white);
    border-radius: 50%;
    font-size: 0.8em;
    font-weight: 700;
    flex-shrink: 0;
}

/* CTA Section */
.pd-quienes-cta-section {
    background: var(--pd-white);
    border-radius: var(--pd-radius);
    box-shadow: var(--pd-shadow);
    padding: 35px;
    text-align: center;
    margin-bottom: 30px;
}

.pd-quienes-cta-section p {
    font-size: 1.2em;
    color: var(--pd-primary);
    margin: 0 0 20px;
}

.pd-btn-lg {
    padding: 12px 30px;
    font-size: 1em;
}


/* Ver Ficha en cards */
.pd-card-ver-ficha {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    background: var(--pd-secondary);
    color: var(--pd-white);
    border-radius: 25px;
    font-size: 0.82em;
    font-weight: 600;
    text-decoration: none;
    transition: var(--pd-transition);
}

.pd-card-ver-ficha:hover {
    background: #2980b9;
    transform: translateY(-2px);
}


/* ----- HERO BANNER HOME ----- */

.pd-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: var(--pd-primary);
    border-radius: var(--pd-radius);
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #03125a80;
    z-index: 1;
}

.pd-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 50px 30px;
    max-width: 800px;
}

.pd-hero-content h2 {
    color: #f0b90b;
    font-size: 2.2em;
    font-style: normal;
    margin: 0 0 15px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pd-hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 0 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pd-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.pd-hero-btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--pd-transition);
}

.pd-hero-btn-primary {
    background: #fec007;
    color: #1e3151;
    border: 0px solid var(--pd-white);
}

.pd-hero-btn-primary:hover {
    background: transparent;
    color: var(--pd-white);
}

.pd-hero-btn-outline {
    background: #1e3151;
    color: #fec007;
    border: 0px solid var(--pd-white);
}

.pd-hero-btn-outline:hover {
    background: var(--pd-white);
    color: var(--pd-primary);
}

@media (max-width: 768px) {
    .pd-hero-banner {
        min-height: 280px;
    }

    .pd-hero-content h2 {
        font-size: 1.6em;
    }

    .pd-hero-content {
        padding: 35px 20px;
    }

    .pd-hero-btn {
        padding: 10px 22px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    .pd-hero-banner {
        min-height: 240px;
    }

    .pd-hero-content h2 {
        font-size: 1.3em;
    }

    .pd-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}


/* ----- BANNER INTERNO PÁGINAS ----- */

.pd-inner-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--pd-radius);
    overflow: hidden;
    margin-bottom: 30px;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-inner-banner-noimg {
    background: linear-gradient(135deg, var(--pd-primary), var(--pd-secondary));
    min-height: 160px;
}

.pd-inner-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #03125a80;
    z-index: 1;
}

.pd-inner-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 30px;
    max-width: 700px;
}

.pd-inner-banner-content h1 {
    color: #fec007;
    font-size: 2em;
    margin: 0 0 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pd-inner-banner-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05em;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .pd-inner-banner {
        min-height: 160px;
    }

    .pd-inner-banner-content h1 {
        font-size: 1.5em;
    }

    .pd-inner-banner-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .pd-inner-banner-content h1 {
        font-size: 1.3em;
    }
}

/* Ícono categoría en sidebar */
.pd-sidebar-cat-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    display: inline-block;
}

.pd-sidebar-cat-icon {
    filter: brightness(0) saturate(100%) invert(76%) sepia(60%) saturate(600%) hue-rotate(360deg) brightness(101%) contrast(97%);
}


/* ----- LIGHTBOX GALERÍA ----- */

.pd-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.pd-lightbox-active {
    display: flex;
}

.pd-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.pd-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-lightbox-img-loaded {
    opacity: 1;
}

.pd-lightbox-close {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 3;
    background: none;
    border: none;
    color: var(--pd-white);
    font-size: 2.5em;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pd-lightbox-close:hover {
    opacity: 1;
}

.pd-lightbox-prev,
.pd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--pd-white);
    font-size: 1.8em;
    cursor: pointer;
    padding: 15px 18px;
    border-radius: 4px;
    opacity: 0.7;
    transition: all 0.2s;
}

.pd-lightbox-prev:hover,
.pd-lightbox-next:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
}

.pd-lightbox-prev {
    left: 15px;
}

.pd-lightbox-next {
    right: 15px;
}

.pd-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
}

/* Hover en galería para indicar que es clickeable */
.pd-galeria-item a {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.pd-galeria-item a::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5em;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-galeria-item a:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .pd-lightbox-prev,
    .pd-lightbox-next {
        padding: 10px 14px;
        font-size: 1.4em;
    }

    .pd-lightbox-prev {
        left: 5px;
    }

    .pd-lightbox-next {
        right: 5px;
    }
}




/* ============================================================
   Patodato — Descuentos / Promociones
   Agregar al final de css/patodato.css en el child theme
   ============================================================ */


/* ── Wrapper relativo para posicionar el badge ───────────── */
.pd-card-wrap {
    position: relative;
    /* Hereda el display del contexto (grid/flex del padre) */
}

.pd-ficha-header-outer {
    position: relative;
}


/* ── Badge circular (home logos + cards + ficha header) ──── */
.pd-badge-descuento {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 10;

    /* Tamaño y forma */
    width:  62px;
    height: 62px;
    border-radius: 50%;

    /* Colores */
    background: #1a1a1a;
    color: #f5c518;          /* amarillo tipo IMDb */
    border: 2px solid #f5c518;

    /* Texto */
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    text-align: center;

    /* Centrar contenido */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Sombra */
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);

    /* Animación sutil de entrada */
    animation: pdBadgePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    pointer-events: none; /* no interfiere con clics */
}

.pd-badge-descuento small {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 1px;
}

@keyframes pdBadgePop {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

/* Badge más grande en la ficha (header outer) */
.pd-ficha-header-outer > .pd-badge-descuento {
    width:  80px;
    height: 80px;
    font-size: 1.25rem;
    top: 12px;
    right: 12px;
}


/* ── Muro de logos del home: asegurar posición relativa ─── */
.pd-home-logo-item {
    position: relative; /* ya debería tenerlo, pero por si acaso */
}


/* ── Sección de descuento en la ficha ────────────────────── */
.pd-ficha-descuento {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 28px 32px !important;
    border: 2px solid #f5c518;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.pd-descuento-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

/* Círculo decorativo grande */
.pd-descuento-circulo {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #f5c518;
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px rgba(245,197,24,0.2);
}

.pd-descuento-num {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
}

.pd-descuento-off {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* Info del descuento */
.pd-descuento-info {
    flex: 1;
    min-width: 200px;
    color: #fff;
}

.pd-descuento-titulo {
    color: #f5c518 !important;
    font-size: 1.3rem !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.pd-descuento-desc {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Código de descuento */
.pd-descuento-codigo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px dashed #f5c518;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pd-descuento-codigo-label {
    color: #aaa;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pd-descuento-codigo {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: #f5c518;
    letter-spacing: 2px;
}

/* Botón copiar */
.pd-descuento-copiar {
    background: #f5c518;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, transform 0.15s;
}

.pd-descuento-copiar:hover {
    background: #ffd700;
    transform: scale(1.04);
}

.pd-descuento-copiar.pd-copiar-ok {
    background: #2ecc71;
    color: #fff;
}

/* Sin código: instrucción */
.pd-descuento-instruccion {
    color: #f5c518;
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-style: italic;
}

/* Vigencia */
.pd-descuento-vigencia {
    color: #999;
    font-size: 0.82rem;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 600px ) {
    .pd-descuento-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .pd-descuento-codigo-wrap {
        justify-content: center;
    }

    .pd-ficha-descuento {
        padding: 20px 18px !important;
    }

    .pd-badge-descuento {
        width:  52px;
        height: 52px;
        font-size: 0.85rem;
        top: -8px;
        right: -8px;
    }
}


/*  banners rotativos  */
.pdb-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ffffff!important;
    aspect-ratio: 2 / 1;
    max-height: 600px;
}

.pdb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #000000!important;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pdb-dot--active {
    background: #000000!important;
    transform: scale(1.25);
    border-color: #f7f7f7!important;
}

.pdb-slide-img {
    width: 100%;
    height: auto!important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.estrella{
	width: 20px!important;
height: 20px!important;
margin: 5px;
}


/* ============================================================
   Patodato — Anunciantes Destacados (home)
   Agregar al final de css/patodato.css
   ============================================================ */

/* ── Wrapper de la sección ───────────────────────────────── */
.pd-home-destacados-wrapper {
    margin: 40px 0;
}

/* ── Cabecera ────────────────────────────────────────────── */
.pd-home-destacados-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pd-home-destacados-titulo {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: #1e3151 !important;
    margin: 0 0 6px 0 !important;
    padding: 0 !important;
    border: none !important;
}

.pd-home-destacados-subtitulo {
    color: #666;
    font-size: 0.92rem;
    margin: 0;
}

.pd-home-destacados-ver-todos {
    color: #1e6fbf;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    align-self: center;
    transition: color 0.2s;
}

.pd-home-destacados-ver-todos:hover {
    color: #1e3151;
    text-decoration: underline;
}

/* ── Grid de cards ───────────────────────────────────────── */
.pd-home-destacados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Card individual ─────────────────────────────────────── */
.pd-destacado-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pd-destacado-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

/* ── Media (foto + badge + logo) ─────────────────────────── */
.pd-destacado-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8ecf0;
}

.pd-destacado-card-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.pd-destacado-card:hover .pd-destacado-card-foto {
    transform: scale(1.04);
}

.pd-destacado-card-foto--placeholder {
    background: linear-gradient(135deg, #e8ecf0 0%, #cdd3da 100%);
}

/* Label DESTACADO */
.pd-destacado-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fec007;
    color: #1a1a1a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Logo circular */
.pd-destacado-card-logo {
   position: absolute;
    bottom: 20px;
    left: 16px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    z-index: 4;
}

.pd-destacado-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
}

/* ── Cuerpo de la card ───────────────────────────────────── */
.pd-destacado-card-body {
    padding: 32px 16px 18px 16px; /* 32px top para dejar espacio al logo */
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.pd-destacado-card-nombre {
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.3;
}

.pd-destacado-card-nombre a {
    color: #1e3151;
    text-decoration: none;
}

.pd-destacado-card-nombre a:hover {
    color: #1e6fbf;
}

.pd-destacado-card-cat {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
}

.pd-destacado-card-desc {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
    flex: 1; /* empuja los botones hacia abajo */
}

.pd-destacado-card-dir {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pd-destacado-card-dir svg {
    flex-shrink: 0;
}

/* ── Botones ─────────────────────────────────────────────── */
.pd-destacado-card-btns {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.pd-destacado-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}

/* Botón "Ver dato" — azul oscuro */
.pd-destacado-btn-ver {
    background: #1e3151;
    color: #fff;
    flex: 1;
    justify-content: center;
}

.pd-destacado-btn-ver:hover {
    background: #16253e;
    transform: scale(1.02);
    color: #fff;
}

/* Botón "Contactar WhatsApp" — outline */
.pd-destacado-btn-wa {
    background: #fff;
    color: #333;
    border: 1.5px solid #ddd;
    flex: 1;
    justify-content: center;
}

.pd-destacado-btn-wa:hover {
    border-color: #25D366;
    color: #1a1a1a;
    transform: scale(1.02);
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 1024px ) {
    .pd-home-destacados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media ( max-width: 600px ) {
    .pd-home-destacados-grid {
        grid-template-columns: 1fr;
    }

    .pd-home-destacados-header {
        flex-direction: column;
    }

    .pd-home-destacados-ver-todos {
        align-self: flex-start;
    }
}
