/* =============================================================================
   Tarifas y Descargas — Frontend Styles
   ============================================================================= */

/* ── Reset scoped to plugin ─────────────────────────────────────────────────── */
.td-wrap{
	max-width: 1800px;
	margin: 0 auto 230px;
}
.td-wrap h1{
	margin-top: 77px;
	font-family: 'OPTIRaleigh-Gothic';
	font-weight: 500;
	font-size: 100px;
	line-height: 86px;
	text-transform: uppercase;
	color: #111111;
	margin-bottom: 40px;
	letter-spacing: -3%;
}
.td-wrap h1 + p{
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 16px;
	line-height: 26px;
	color: #111111;
	margin-bottom: 40px;
}
article.ast-article-single:has(.td-wrap){
	padding: 0 15px !important;
}

/* ── Filter tabs ──────────────────────────────────────────────────────────────── */
.td-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.td-filter-btn {
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 16px;
	line-height: 16px;
	color: #111111;
	background: #FFFFFF;
	border: 1px solid #FFFFFF;
	border-radius: 42px;
	padding: 12px 30px 14px !important;
	box-shadow: none;
}

.td-filter-btn:focus,
.td-filter-btn--active,
.td-filter-btn:hover {
	background: #00AB8E;
	border-color: #00AB8E;
	color: #FFFFFF;
}

/* ── Results area ───────────────────────────────────────────────────────────── */
.td-results,
.td-auth-bar {
	max-width: 1370px;
}

/* ── Loading spinner ────────────────────────────────────────────────────────── */
.td-loading {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 48px 0;
}

.td-spinner {
	display: inline-block;
	width: 32px;
	height: 32px;
	border: 3px solid var(--td-primary-light);
	border-top-color: var(--td-primary);
	border-radius: 50%;
	animation: td-spin .7s linear infinite;
}

@keyframes td-spin {
	to { transform: rotate(360deg); }
}

/* ── Empty / error ──────────────────────────────────────────────────────────── */
.td-empty,
.td-error {
	padding: 40px 20px;
	text-align: center;
	font-size: 15px;
}

/* ── Downloads list ─────────────────────────────────────────────────────────── */
.td-downloads-cell.td-downloads-cell--name{
	width: 45%;
}
.td-downloads-cell.td-downloads-cell--product{
	width: 19%;
}
.td-downloads-cell.td-downloads-cell--type{
	width: 12%;
}
.td-downloads-cell.td-downloads-cell--download{
	width: 12%;
}
.td-downloads-cell.td-downloads-cell--view{
	width: 12%;
}

.td-downloads-list {
	display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 38px;
}
.td-downloads-list > .row{
	width: 100%;
	display: flex;
    align-items: center;
}

.td-download-item .td-downloads-cell--name{
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 20px;
	line-height: 20px;
	color: #111111;
	display: flex;
	flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 20px;
}
.td-download-item .td-downloads-cell--name i{
	font-family: 'Font Awesome 6 PRO';
	font-weight: 400;
	font-size: 20px;
	line-height: 20px;
	color: #00AB8E;
}
.td-download-item .td-downloads-cell--product,
.td-download-item .td-downloads-cell--type span{
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 16px;
	line-height: 20px;
	color: #111111;

}
.td-download-item .td-downloads-cell--type span{
	text-transform: uppercase;
}

.td-downloads-list .col {
	flex: 1 1 0;
	max-width: 100%;
}

.td-downloads-list .col-auto {
	flex: 0 0 auto;
	width: auto;
}

.td-downloads-cell {
	display: flex;
	align-items: center;
	padding: 0;
	border: 0;
	min-width: 0;
}

.td-downloads-header .td-downloads-cell {
	border:0;
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 16px;
	line-height: 20px;
	color: #1111114D;
}

/* Download button */
.td-download-item .td-btn-descargar {
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 16px;
	line-height: 20px;
	color: #00AB8E;
	background: transparent;
	border: 1px solid #00AB8E;
	border-radius: 12px;
	text-decoration: none !important;
	padding: 6px 27px 8px;
}

.td-download-item .td-btn-descargar:hover {
	background: #00AB8E;
	color: #FFFFFF !important;
}

/* View button */
.td-download-item .td-btn-ver {
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 16px;
	line-height: 16px;
	color: #00AB8E;
	text-decoration: none !important;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 10px;
}

.td-download-item .td-btn-ver i{
	font-size: 12px;
}

/* ── Auth bar (when logged in) ──────────────────────────────────────────────── */
.td-auth-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
	padding: 12px 18px;
	background: #F5F5F5;
	border: 1px solid #00AB8E;
	font-size: 13px;
	color: #111111;
	background: transparent;
}

.td-auth-bar__logout {
	background: none;
	border: none;
	color: #111111;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
}

/* ── Popup overlay ──────────────────────────────────────────────────────────── */
.td-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--td-transition);
	padding: 20px;
}

.td-popup-overlay--visible {
	opacity: 1;
	pointer-events: all;
}

body.td-popup-open {
	overflow: hidden;
}

/* ── Popup card ─────────────────────────────────────────────────────────────── */
.td-popup {
	background: #FFFFFF;
	border-radius: 8px;
	padding: 50px;
	width: 100%;
	max-width: 650px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.td-popup__close {
	position: absolute;
	top: 50px;
	right: 50px;
	background: transparent !important;
	border: none;
	cursor: pointer;
	color: #111111 !important;
	padding: 0;
	box-shadow: none;
}

#td-login-view{
	max-width: 500px;
}

.td-popup__title {
	font-family: 'OPTIRaleigh-Gothic';
	font-weight: 600;
	font-size: 50px;
	line-height: 50px;
	color: #00AB8E;
	margin-bottom: 20px;
}

.td-popup__subtitle {
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 24px;
	line-height: 28px;
	color: #111111;
	margin-bottom: 10px !important;
}

.td-switch-link{
	margin-bottom: 45px !important;
}
#td-register-view .td-switch-link{
	margin-bottom: 10px !important;
}
.td-switch-link a {
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 18px;
	line-height: 28px;
	text-decoration: underline;
	color: #00AB8E;
}

.td-switch-link a:hover {
	text-decoration: none;
}

/* ── Form ───────────────────────────────────────────────────────────────────── */
.td-form {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.td-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 20px;
}

.td-form__field {
	position: relative;
	margin-bottom: 8px;
}

.td-form__field input,
.td-form__field select {
	width: 100%;
	border: 0;
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 16px;
	line-height: 16px;
	border-bottom: 1px solid #111111;
	color: #111111;
	outline: none;
	border-radius: 0;
	box-shadow: none;
    padding: 0;
}
.td-form__field input::placeholder{
	color: #1111114D;
}
.td-form__field input[type="password"]::placeholder{
	color: #111111;
}

.td-form__field input::placeholder,
.td-form__field select option[disabled] {
	color: #aaa;
}

/* Password field */
.td-form__field--password input {
	padding-right: 32px;
}

.td-pwd-toggle {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: transparent !important;
	border: none;
	cursor: pointer;
	color: #111111 !important;
	padding: 0px;
	line-height: 1;
	box-shadow: none;
}
/* Privacy checkbox */
.td-form__privacy {
	margin-bottom: 20px;
	margin-top: 65px;
}
#td-register-view .td-form__privacy {
	margin-top: 20px;
}

.td-checkbox {
	display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.td-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	border-color: #111111;
    background-color: transparent;
}

.td-checkbox__label {
	font-family: 'GalaxiePolaris';
	font-weight: 500;
	font-size: 14px;
	line-height: 24px;
	color: #111111;
}

.td-checkbox__label a{
	color: #00AB8E;
}

/* Form message */
.td-form-message {
	font-size: 13px;
	margin-bottom: 0 !important;
}

.td-form-message--error   { color: #c0392b; }
.td-form-message--success { color: #0a7c4a; }

/* Submit button */
.td-btn-submit {
	font-family: 'GalaxiePolaris';
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    background: #00AB8E;
    border-color: #00AB8E;
    color: #FFFFFF;
    border-radius: 42px;
    padding: 12px 30px 14px !important;
    box-shadow: none;
	width: 100%;
	max-width: 430px;
	border: 1px solid #00AB8E;
}

.td-btn-submit:focus,
.td-btn-submit:hover {
	background-color: transparent;
	color: #00AB8E;
	border: 1px solid #00AB8E;
}

.td-btn-submit:disabled,
.td-btn-submit.td-btn--loading {
	opacity: .65;
	cursor: not-allowed;
}

.td-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 34px;
}

.td-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #00AB8E;
	border-radius: 999px;
	background: transparent;
	color: #00AB8E;
	font-family: 'GalaxiePolaris';
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.td-pagination__btn:hover,
.td-pagination__btn--active {
	background: #00AB8E;
	color: #FFFFFF;
}

@media(max-width:1024px){
	.td-downloads-cell.td-downloads-cell--name{
		width: 37%;
	}
	.td-downloads-cell.td-downloads-cell--download {
		width: 20%;
	}
	.td-wrap h1{
		font-size: 65px;
		line-height: 40px;
		margin-top: 32px;
		margin-bottom: 25px;
	}
	.td-wrap h1 + p {
		margin-bottom: 25px;
	}
	.td-downloads-list{
		gap: 14px;
	}
	.td-pagination {
		margin-top: 24px;
	}
	.td-download-item .td-downloads-cell--name{
		font-size: 16px;
	}
}
@media(max-width:768px){
	.td-wrap{
		margin: 0 auto 130px;
	}
	.td-wrap h1 + p{
		font-size: 12px;
		line-height: 16px;
	}
	.td-downloads-list > .td-downloads-header.row{
		display: none;
	}
	.td-downloads-list .td-download-item{
		display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px 2%;
        border-bottom: 1px solid #111111;
        padding-bottom: 14px;
	}
	.td-downloads-cell.td-downloads-cell--name{
		width: 100%;
	}
	.td-downloads-cell.td-downloads-cell--product,
	.td-downloads-cell.td-downloads-cell--type,
	.td-downloads-cell.td-downloads-cell--download,
	.td-downloads-cell.td-downloads-cell--view{
		width: 49%
	}
	#td-login-view{
		max-width: 100%;
	}
	.td-popup{
		padding: 25px;
	}
	.td-switch-link {
    	margin-bottom: 20px !important;
	}
	.td-form__privacy {
		margin-top: 20px;
	}
	.td-popup__close {
		top: 20px;
		right: 20px;
	}
	.td-filter-btn{
		font-size: 14px;
		line-height: 14px;
		padding: 11px 30px 13px !important;
	}
	.td-downloads-cell.td-downloads-cell--product,
	.td-downloads-cell.td-downloads-cell--type,
	.td-downloads-cell.td-downloads-cell--download,
	.td-downloads-cell.td-downloads-cell--view,
	.td-download-item .td-btn-descargar{
		font-size: 14px;
		line-height: 14px;		
	}
	.td-popup__subtitle{
		font-size: 20px;
		line-height: 24px;
	}
	.td-form__field input,
	.td-form__field select,
	.td-switch-link a {
		font-size: 14px;
		line-height: 20px;
	}
	.td-btn-submit {
		font-size: 14px;
		line-height: 14px;
	}
	.td-checkbox__label{
		font-size: 12px;
		line-height: 12px;
	}
	.td-form__grid{
		gap: 8px;
	}
}
