/* ===== Tu Proyecto Page Builder - Frontend ===== */

#tb-page {
	width: 100%;
}

.tb-page-empty {
	padding: 60px 20px;
	text-align: center;
	color: #6b7280;
}

.tb-section {
	position: relative;
	overflow: hidden;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.tb-section-overlay,
.tb-column-overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tb-section .tb-container,
.tb-column .tb-column-inner {
	position: relative;
	z-index: 2;
}

.tb-container {
	max-width: 1140px;
	margin: 0 auto;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

.tb-section-full .tb-container {
	max-width: none !important;
}

.tb-row {
	display: flex;
	flex-wrap: wrap;
}

.tb-column {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	position: relative;
	min-width: 0;
}

.tb-column-inner {
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.tb-widget {
	box-sizing: border-box;
}

.tb-heading {
	margin: 0 0 10px;
	padding: 0;
}

.tb-text {
	word-break: break-word;
}

.tb-text p:first-child {
	margin-top: 0;
}

.tb-text p:last-child {
	margin-bottom: 0;
}

.tb-image img {
	height: auto;
	max-width: 100%;
}

.tb-image-caption {
	margin-top: 8px;
	color: #6b7280;
	font-size: 14px;
	text-align: center;
}

.tb-image-empty,
.tb-video-empty {
	padding: 30px;
	text-align: center;
	background: #f3f4f6;
	border: 1px dashed #d1d5db;
	border-radius: 6px;
	color: #6b7280;
}

.tb-btn {
	display: inline-block;
	text-decoration: none;
	font-weight: 600;
	transition: all .25s ease;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
}

.tb-btn:hover {
	text-decoration: none;
}

.tb-btn-sm {
	padding: 8px 18px;
	font-size: 14px;
}

.tb-btn-md {
	padding: 12px 26px;
	font-size: 16px;
}

.tb-btn-lg {
	padding: 16px 34px;
	font-size: 18px;
}

.tb-btn-full {
	display: block;
	width: 100%;
}

.tb-divider-line {
	display: inline-block;
	vertical-align: middle;
}

.tb-icon-wrap {
	display: flex;
	justify-content: flex-start;
}

.tb-icon-wrap a,
.tb-icon-link {
	display: inline-block;
	text-decoration: none;
}

.tb-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color .25s ease;
}

.tb-icon-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tb-icon-list li {
	display: flex;
	align-items: center;
	list-style: none;
	transition: background .2s ease;
}

.tb-icon-list a {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

.tb-icon-list-text {
	line-height: 1.4;
}

/* Accordion */
.tb-accordion .tb-acc-item {
	border: 1px solid #e5e7eb;
	overflow: hidden;
}

.tb-accordion .tb-acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	cursor: pointer;
	user-select: none;
}

.tb-accordion .tb-acc-title {
	font-weight: 600;
	font-size: 16px;
}

.tb-accordion .tb-acc-icon {
	font-size: 20px;
	font-weight: 300;
	transition: transform .25s ease;
}

.tb-accordion .tb-acc-item.is-open .tb-acc-icon {
	transform: rotate(45deg);
}

.tb-accordion .tb-acc-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s ease;
	padding: 0 18px;
}

.tb-accordion .tb-acc-item.is-open .tb-acc-body {
	max-height: 600px;
	padding: 0 18px 18px;
}

/* Tabs */
.tb-tabs {
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.tb-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px;
	background: #f3f4f6;
}

.tb-tab-btn {
	padding: 10px 20px;
	border: none;
	cursor: pointer;
	font-size: 15px;
	transition: all .2s ease;
}

.tb-tabs-panels {
	padding: 20px;
}

.tb-tab-panel {
	display: none;
}

.tb-tab-panel.is-active {
	display: block;
}

/* Slider */
.tb-slider {
	position: relative;
	overflow: hidden;
}

.tb-slide {
	display: none;
	position: relative;
	background-size: cover;
	background-position: center center;
}

.tb-slide.is-active {
	display: flex;
	animation: tbFade .6s ease;
}

@keyframes tbFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.tb-slide-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 60px 20px;
	box-sizing: border-box;
}

.tb-slide-title {
	font-size: clamp(28px, 5vw, 52px);
	margin: 0 0 16px;
	line-height: 1.15;
}

.tb-slide-subtitle {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 24px;
	max-width: 640px;
	opacity: .92;
}

.tb-slide-btn {
	margin-top: 4px;
}

.tb-slider-prev,
.tb-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	border: none;
	font-size: 22px;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	transition: background .2s ease;
}

.tb-slider-prev { left: 16px; }
.tb-slider-next { right: 16px; }

.tb-slider-prev:hover,
.tb-slider-next:hover {
	background: rgba(0, 0, 0, .6);
}

.tb-slider-dots {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.tb-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: all .2s ease;
	padding: 0;
}

.tb-slider-dot.is-active {
	background: #fff;
	transform: scale(1.25);
}

/* Counter */
.tb-counter-number {
	font-weight: 800;
	line-height: 1.2;
}

.tb-counter-title {
	font-size: 16px;
	margin-top: 6px;
}

/* Progress */
.tb-progress {
	margin-bottom: 18px;
}

.tb-progress-head {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
}

.tb-progress-track {
	background: #e5e7eb;
	overflow: hidden;
	width: 100%;
}

.tb-progress-bar {
	width: 0;
	transition: width 1.4s cubic-bezier(.25, .8, .25, 1);
}

/* Testimonials */
.tb-testimonials-grid {
	display: grid;
	gap: 20px;
}

.tb-testimonial-card {
	padding: 28px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
	border: 1px solid #eef2f7;
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.tb-testimonial-stars {
	margin-bottom: 12px;
	font-size: 18px;
}

.tb-testimonial-stars .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.tb-testimonial-content {
	flex: 1;
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.tb-testimonial-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tb-testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.tb-testimonial-avatar-ph {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #4f46e5;
	color: #fff;
	font-weight: 700;
	font-size: 18px;
}

.tb-testimonial-name {
	font-weight: 700;
	font-size: 16px;
}

.tb-testimonial-role {
	font-size: 14px;
	opacity: .8;
}

.tb-testimonial-slider .tb-slide {
	align-items: stretch;
}

.tb-testimonial-slider .tb-slide-content {
	max-width: 720px;
	padding: 40px 20px;
}

/* Video */
.tb-video-frame {
	position: relative;
	height: 0;
	overflow: hidden;
}

.tb-video-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Form */
.tb-form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.tb-field {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.tb-col-50 { width: calc(50% - 8px); }
.tb-col-100 { width: 100%; }

.tb-field label {
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 14px;
	color: #374151;
}

.tb-field input[type="text"],
.tb-field input[type="email"],
.tb-field input[type="tel"],
.tb-field input[type="url"],
.tb-field input[type="date"],
.tb-field select,
.tb-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .2s ease;
}

.tb-field input:focus,
.tb-field select:focus,
.tb-field textarea:focus {
	outline: none;
	border-color: #4f46e5;
}

.tb-req {
	color: #ef4444;
}

.tb-check-label,
.tb-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500 !important;
	cursor: pointer;
}

.tb-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tb-hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
}

.tb-form-status {
	width: 100%;
	font-size: 15px;
	line-height: 1.5;
}

.tb-form-status.is-success {
	color: #16a34a;
}

.tb-form-status.is-error {
	color: #dc2626;
}

/* Theme builder parts */
.tb-theme-part {
	width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
	.tb-column {
		flex-basis: 100% !important;
		max-width: 100% !important;
	}
	.tb-testimonials-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 767px) {
	.tb-testimonials-grid {
		grid-template-columns: 1fr !important;
	}
	.tb-col-50 {
		width: 100%;
	}
	.tb-slider-prev,
	.tb-slider-next {
		display: none;
	}
	.tb-tabs-nav {
		flex-direction: column;
	}
}
