/*
Theme Name: the7dtchild
Author: Dream-Theme
Author URI: http://dream-theme.com/
Description: The7 is perfectly scalable, performance and SEO optimized, responsive, retina ready multipurpose WordPress theme. It will fit every site – big or small. From huge corporate portals to studio or personal sites – The7 will become a great foundation for your next project!
Version: 1.0.0
License: This WordPress theme is comprised of two parts: (1) The PHP code and integrated HTML are licensed under the GPL license as is WordPress itself.  You will find a copy of the license text in the same directory as this text file. Or you can read it here: http://wordpress.org/about/gpl/ (2) All other parts of the theme including, but not limited to the CSS code, images, and design are licensed according to the license purchased. Read about licensing details here: http://themeforest.net/licenses/regular_extended
Template: dt-the7
*/

body #page {
	overflow: visible;
}

#page #main {
	padding: 0;
}

#page #main > .wf-wrap {
	width: 100%;
	padding: 0;
}

.contenedor {
	max-width: 1280px;
	width: calc(100% - 30px);
	margin-left: auto;
	margin-right: auto;
}

.img-120 {
	width: 120px !important;
    height: 120px;
	aspect-ratio: 1;
	display: flex;
    align-items: center;
    justify-content: center;
}

.img-120:empty {
    background: url('/wp-content/uploads/2026/03/madero-imagen-no-disponible.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}




/* DESCARGAS */
.descargas {
	background: #f9fafb;
}

.descargas__contenedor {
    padding-top: 40px;
    padding-bottom: 40px;
}

.descargas__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

/* CATEGORIAS */
.categorias__lista {
	position: sticky;
	top: 20px;
    list-style: none;
	margin: 0;
    padding-left: 20px;
}

.categorias__lista:first-child {
	padding-left: 0;
}

.categorias__lista:first-child > .categorias__item::before {
	display: none;
}

.categorias__item {
    margin: 4px 0;
}

.categorias__fila {
	position: relative;
	display: flex;
    justify-content: space-between;
    border-radius: 0.875rem;
    background-color: var(--color-fondo, #00528a);
	color: var(--color-texto, #ffffff);
    cursor: pointer;
	overflow: hidden;
}

.categorias__fila::after {
	content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.categorias__fila:hover::after,
.categorias__fila.activo::after {
    opacity: 1;
}

.categorias__enlace {
	width: 100%;
    display: flex;
    margin-bottom: 0;
    padding: 0.725rem 1rem;
    font-family: "SF Pro Display", Sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.categorias__enlace[data-categoria="0"] {
  text-transform: uppercase;
}

.categorias__toggle {
	position: relative;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 0 0.875rem 0.875rem 0;
    background: transparent;
    cursor: pointer;
}

.categorias__toggle::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--color-texto, #ffffff);
    transition: transform 0.25s;
}

.categorias__item--con-hijos > .categorias__lista {
    display: none;
}

.categorias__item--abierto > .categorias__lista {
    display: block;
}

.categorias__item--abierto > .categorias__fila > .categorias__toggle::before {
    transform: rotate(180deg);
}

.categorias__item {
    position: relative;
}

.categorias__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 1px;
    height: 100%;
    background: #dddddd;
}


/* FILTROS */
.biblioteca__encabezado {
	margin-bottom: 20px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.biblioteca__titulo {
	margin: 0;
	font-family: "SF Pro Display", Sans-serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1 !important;
    color: #0E2C43;
}

.biblioteca__descripcion {
	margin-bottom: 0;
	font-size: 1rem;
	color: #707070;
}

.biblioteca__busqueda {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: 1px solid #d0d0d0;
	border-radius: 10px;
	padding: 4px;
	box-sizing: border-box;
	background: #ffffff;
}

.biblioteca__input-contenedor {
    position: relative;
}

.biblioteca__input-busqueda {
    max-width: 260px;
    margin-bottom: 0 !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    outline: none !important;
}

.biblioteca__input-busqueda:focus {
	border-color: #00528B;
}

.buscador__boton-cerrar {
    position: absolute;
    top: 50%;
    right: 5px;
    display: flex;
    transform: translateY(-50%);
}

.buscador__boton-cerrar svg {
    width: 16px;
    height: 16px;
}

.biblioteca__boton-buscar {
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	background: #00528B;
	color: #ffffff;
	font-family: "SF Pro Display", Sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.biblioteca__boton-buscar:hover {
	background: #0E2C43;
}

.biblioteca__filtros {
  	display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: flex-end;
    gap: 1rem;
}

.biblioteca__grupo-filtro {
	flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.biblioteca__etiqueta {
	font-size: 0.875rem;
	line-height: 1;
    color: #ffffff;
}

.biblioteca__select {
 	width: 100%;
    margin-bottom: 0 !important;
    padding: 10px 12px;
    border-radius: 6px;
    border: 0;
    font-size: 0.875rem;
    background: #ffffff;
    color: #707070;
}

.biblioteca__limpiar-filtros {
	display: flex;
    gap: 5px;
	margin-left: auto;
	border: none;
	background: transparent;
	font-size: 0.875rem;
	color: #ffffff;
	text-decoration: underline;
	cursor: pointer;
}

.biblioteca__limpiar-filtros:hover {
  	opacity: 0.8;
}

.biblioteca__limpiar-filtros svg {
	width: 16px;
	height: 16px;
}

.filtros {
	position: relative;
	margin-bottom: 16px;
}

.filtros__barra {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	border-radius: 6px;
	padding: 5px 10px;
	background: #dddddd;
}

.filtros__abrir {
	display: flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-family: "SF Pro Display", Sans-serif;
	font-weight: 700;
	color: #707070;
}

.filtros__vistas {
	display: flex;
	gap: 10px;
}

.filtros__boton-vista {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgb(255 255 255 / 0.5);
	border: none;
	border-radius: 6px;
	padding: 8px 10px;
	color: #707070;
	cursor: pointer;
}

.filtros__boton-vista:hover,
.vista--activo {
	background: #ffffff;
}

.vista-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vista-grid:has(:not(p)) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.vista-grid > p:only-child {
  display: block;
}

.vista-grid .w3eden .media {
    flex-direction: column;
    align-items: flex-start !important;
}

.vista-grid .w3eden .media .img-120 {
    width: 100% !important;
    height: 100%;
}

.vista-grid .w3eden .media > .ml-3 {
    width: 100%;
}

.vista-grid .w3eden .media > .ml-3 .wpdm-download-link.btn.btn-primary.btn-sm {
	width: 100%;
}

.vista-grid .skeleton-card {
    flex-direction: column;
}

.vista-grid .skeleton-icon,
.vista-grid .skeleton-content,
.vista-grid .skeleton-button {
    width: 100%;
}

.filtros__panel {
    max-height: 0;
    overflow: hidden;
}

.filtros__panel--abierto {
	max-height: 400px;
    margin-top: 5px;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 3px 20px rgb(0 0 0 / 25%);
    background: #707070;
	transition: max-height 0.3s ease;
}

/* PAQUETES */
.wpdm-paquetes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#lista-paquetes {
    font-family: "SF Pro Display", Sans-serif;
}

.link-template-default .media {
	align-items: center !important;
}

.link-template-default .package-title {
    margin-bottom: 5px !important;
    line-height: 1;
	pointer-events: none;
}

.link-template-default .package-title a {
    font-family: "SF Pro Display", Sans-serif;
    font-size: 1.25rem;
    line-height: 1;
    color: #00528A;
}

.link-template-default .package-description {
	margin-bottom: 5px;
    font-family: "SF Pro Display", Sans-serif;
    font-size: 14px;
    line-height: 1.2;
    color: #707070;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.link-template-default .text-muted {
    font-size: 12px;
    color: #707070 !important;
}

.tags a.btn.btn-secondary.btn-xs {
    min-height: auto;
    gap: 0;
    margin: 0 !important;
	margin-left: -5px !important;
    border: 0;
    padding: 0;
    background: transparent;
	font-size: 12px;
    font-weight: 400;
    color: #707070;
	pointer-events: none;
}

#lista-paquetes .w3eden .card-body {
	padding: 1rem !important;
}

#lista-paquetes .w3eden .mb-2 {
	margin-bottom: 0 !important
}


/* PAGINACIÓN */
.paginacion {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
}

.paginacion .boton-pagina {
	min-width: 38px;
	border: 1px solid #ddd;
	border-radius: 4px;
    padding: 6px 12px;
    background: #ffffff;
    font-weight: 500;
	font-family: "SF Pro Display", Sans-serif;
    text-align: center;
	color: #707070;
	cursor: pointer;
    transition: background-color 0.3s ease;
}

.paginacion .boton-pagina:hover:not([disabled]) {
    border-color: #0073aa;
	background-color: #00528a;
    color: #fff;
}

.paginacion .boton-pagina:disabled {
    cursor: default;
    opacity: 0.5;
}

.paginacion .boton-pagina.activo {
    border-color: #00528a;
	background-color: #00528a;
    color: #fff;
    cursor: default;
}



/* Skeleton card */
.skeleton-card {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
    gap: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-icon {
    width: 50px;
    height: 50px;
    background: #ddd;
    border-radius: 8px;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-title {
    height: 18px;
    width: 50%;
    background: #ddd;
    border-radius: 4px;
}

.skeleton-details {
    height: 14px;
    width: 30%;
    background: #ddd;
    border-radius: 4px;
}

.skeleton-button {
    width: 100px;
    height: 32px;
    background: #ddd;
    border-radius: 20px;
    flex-shrink: 0;
}

/* Animación pulso suave */
@keyframes pulse {
    0% {
        background-color: #eee;
    }
    50% {
        background-color: #ddd;
    }
    100% {
        background-color: #eee;
    }
}



/* ===== DETALLE ===== */
.detalle {
    display: grid;
    grid-template-columns: 1fr 2fr;
	align-items: flex-start;
    gap: 20px;
}

.detalle__preview {
	position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detalle__preview img {
	width: 100%;
	border-radius: 16px;
    overflow: hidden;
}

.detalle__card {
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

.detalle__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

body h1.detalle__titulo {
	font-family: "SF Pro Display", Sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #00528a;
}

.detalle__acciones {
	display: flex;
	gap: 10px;
}

.detalle__boton {
    display: flex;
    align-items: center;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
	font-family: 'SF Pro Display', sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.detalle__boton--secundario {
	background: #e5e7eb;
	color: #374151;
}

.detalle__boton--secundario:hover {
	background: #d9d9d9;
    color: #374151;
}

.wpdm-download-link.btn.btn-primary.btn-sm {
	border-radius: 8px !important;
	padding: 10px 20px;
	font-family: "SF Pro Display", Sans-serif;
	font-size: 20px;
}

.detalle__descripcion {
	margin-top: 16px;
    font-family: "SF Pro Display", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #707070;
}

.detalle__metadata {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    gap: 16px;
}

.detalle__meta {
	min-width: 150px;
}

.detalle__meta-titulo {
	margin-bottom: 4px;
    font-family: "SF Pro Display", Sans-serif;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    color: #9ca3af;
}

.detalle__meta-valor {
	font-family: "SF Pro Display", Sans-serif;
	font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: #0E2C43;
}

.detalle__meta-valor .btn {
	pointer-events: none;
}

.detalle__meta-valor .btn i {
    display: none;
}



/* ===== SLIDER ===== */
.slider-descargas,
.slider-static {
    display: flex;
    margin-bottom: 20px;
}

.slider-descargas a,
.slider-static a {
	width: 100%;
    display: flex;
}

.slider-descargas a picture,
.slider-static a picture {
	width: 100%;
    display: flex;
    border-radius: 15px;
    overflow: hidden;
}

.slider-descargas a picture img,
.slider-static a picture img {
	width: 100%;
}



/* ===== LOGIN ===== */
.um .um-form .um-field-label label {
	font-family: "SF Pro Display", Sans-serif;
    font-size: 1rem !important;
    line-height: 1 !important;
    font-weight: 400;
}


.um .um-form input {
	border-radius: 20px !important;
	font-family: "SF Pro Display", Sans-serif;
    font-size: 1rem !important;
}

.um .um-form .um-button {
	width: 100% !important;
    border-radius: 25px !important;
    background: #00528A !important;
	font-family: "SF Pro Display", Sans-serif;
    font-size: 1rem !important;
}

.um .um-form .um-button:hover {
	background: #0E2C43 !important;
}


.um-account .um-form .um-account-profile-link {
	display: none;
}


.um-account .um-account-side li {
	display: none;
}



/* ===== 2FA ===== */
.wp2fa-modal .modal__content {
    font-family: "SF Pro Display", Sans-serif;
	font-size: 16px;
    font-weight: 400 !important;
}

.wp2fa-modal .modal__content label {
	font-size: 14px !important;
}

.wp2fa-modal .modal__content p,
.wp2fa-modal .modal__content p.description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    opacity: 1;
}

.wp2fa-modal .modal__footer {
	display: flex;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.descargas__grid {
		grid-template-columns: 1fr;
	}

	.biblioteca__encabezado {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.biblioteca__busqueda {
		width: 100%;
	}

	.biblioteca__input-busqueda {
		flex: 1;
		width: 100%;
	}

	.biblioteca__filtros {
		gap: 16px;
	}

	.biblioteca__limpiar-filtros {
		margin-left: 0;
	}
}

@media (max-width: 600px) {
	.biblioteca__filtros {
		grid-template-columns: 1fr 1fr;
	}
	
	.detalle {
		grid-template-columns: 1fr;
	}
	
	.vista-grid:has(:not(p)) {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.w3eden .media {
		flex-direction: column;
		align-items: flex-start !important;
	}
}

@media (max-width: 425px) {
	.vista-grid:has(:not(p)) {
		grid-template-columns: repeat(1, 1fr);
	}
}