/*
 * WPBakery Legacy Compat — Frontend Styles
 * Estilos base para todos los elementos convertidos.
 * Version: 1.0.0
 */

/* ─────────────────────────────────────────────
   RESET / BASE
   ───────────────────────────────────────────── */
.wbc-row,
.wbc-row-inner,
.wbc-col {
	box-sizing: border-box;
}

/* ─────────────────────────────────────────────
   GRID — ROWS
   ───────────────────────────────────────────── */
.wbc-row {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	max-width: 1200px;
	gap: 0;
}

.wbc-row--full {
	max-width: 100%;
	width: 100%;
}

.wbc-row--equal-height > .wbc-col {
	display: flex;
	flex-direction: column;
}

.wbc-row-inner {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	gap: 0;
}

/* ─────────────────────────────────────────────
   GRID — COLUMNAS
   ───────────────────────────────────────────── */
.wbc-col {
	padding: 0 15px;
	min-height: 1px;
	width: 100%;
}

@media (min-width: 768px) {
	.wbc-col-1  { width: 8.3333%; }
	.wbc-col-2  { width: 16.6666%; }
	.wbc-col-3  { width: 25%; }
	.wbc-col-4  { width: 33.3333%; }
	.wbc-col-5  { width: 41.6666%; }
	.wbc-col-6  { width: 50%; }
	.wbc-col-7  { width: 58.3333%; }
	.wbc-col-8  { width: 66.6666%; }
	.wbc-col-9  { width: 75%; }
	.wbc-col-10 { width: 83.3333%; }
	.wbc-col-11 { width: 91.6666%; }
	.wbc-col-12 { width: 100%; }
}

/* ─────────────────────────────────────────────
   TEXTO
   ───────────────────────────────────────────── */
.wbc-text {
	padding: 5px 0;
}

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

/* ─────────────────────────────────────────────
   HEADINGS
   ───────────────────────────────────────────── */
.wbc-heading {
	margin-top: 0;
}

/* ─────────────────────────────────────────────
   SEPARADOR
   ───────────────────────────────────────────── */
.wbc-separator {
	border: none;
	border-top: 1px solid #eeeeee;
	margin: 20px auto;
	display: block;
}

/* ─────────────────────────────────────────────
   ESPACIO VACÍO
   ───────────────────────────────────────────── */
.wbc-empty-space {
	display: block;
	clear: both;
}

/* ─────────────────────────────────────────────
   BOTONES
   ───────────────────────────────────────────── */
.wbc-btn {
	display: inline-block;
	text-decoration: none;
	cursor: pointer;
	font-weight: 500;
	border-radius: 4px;
	transition: background-color 0.2s, color 0.2s;
	line-height: 1.4;
	border: 2px solid transparent;
}

.wbc-btn--xs { padding: 4px 10px;  font-size: 11px; }
.wbc-btn--sm { padding: 6px 14px;  font-size: 13px; }
.wbc-btn--md { padding: 9px 20px;  font-size: 14px; }
.wbc-btn--lg { padding: 12px 28px; font-size: 16px; }
.wbc-btn--xl { padding: 16px 36px; font-size: 18px; }

/* Colores predeterminados de WPBakery */
.wbc-btn--theme_style_dark,
.wbc-btn--black {
	background-color: #333;
	color: #fff;
}
.wbc-btn--theme_style_dark:hover,
.wbc-btn--black:hover {
	background-color: #555;
	color: #fff;
}
.wbc-btn--blue,
.wbc-btn--btn-primary {
	background-color: #5472d2;
	color: #fff;
}
.wbc-btn--blue:hover {
	background-color: #3a5cc4;
	color: #fff;
}
.wbc-btn--green,
.wbc-btn--btn-success {
	background-color: #5cb85c;
	color: #fff;
}
.wbc-btn--green:hover {
	background-color: #449d44;
	color: #fff;
}
.wbc-btn--red,
.wbc-btn--btn-danger {
	background-color: #d9534f;
	color: #fff;
}
.wbc-btn--red:hover {
	background-color: #c9302c;
	color: #fff;
}
.wbc-btn--orange,
.wbc-btn--btn-warning {
	background-color: #f0ad4e;
	color: #fff;
}
.wbc-btn--white,
.wbc-btn--btn-default {
	background-color: #fff;
	color: #333;
	border-color: #ccc;
}
.wbc-btn--white:hover {
	background-color: #f5f5f5;
}

.wbc-btn-wrap { width: 100%; display: block; }
.wbc-btn-wrap--left   { text-align: left; }
.wbc-btn-wrap--center { text-align: center; }
.wbc-btn-wrap--right  { text-align: right; }

/* ─────────────────────────────────────────────
   IMÁGENES
   ───────────────────────────────────────────── */
.wbc-single-image {
	display: block;
	margin-bottom: 15px;
}

.wbc-single-image__img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

/* ─────────────────────────────────────────────
   GALERÍA
   ───────────────────────────────────────────── */
.wbc-gallery {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
	.wbc-gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
	.wbc-gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
	.wbc-gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }
	.wbc-gallery--cols-5 { grid-template-columns: repeat(5, 1fr); }
	.wbc-gallery--cols-6 { grid-template-columns: repeat(6, 1fr); }
}

.wbc-gallery__item {
	display: block;
	overflow: hidden;
}

.wbc-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s;
}

.wbc-gallery__item:hover .wbc-gallery__img {
	transform: scale(1.03);
}

/* ─────────────────────────────────────────────
   TABS (usando <details>/<summary>)
   ───────────────────────────────────────────── */
.wbc-tabs {
	margin-bottom: 20px;
}

.wbc-tab {
	border: 1px solid #ddd;
	margin-bottom: 4px;
	border-radius: 4px;
	overflow: hidden;
}

.wbc-tab__title {
	padding: 12px 16px;
	cursor: pointer;
	font-weight: 600;
	background: #f7f7f7;
	user-select: none;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wbc-tab__title::-webkit-details-marker { display: none; }

.wbc-tab__title::after {
	content: '▸';
	transition: transform 0.2s;
}

.wbc-tab[open] > .wbc-tab__title::after {
	transform: rotate(90deg);
}

.wbc-tab__content {
	padding: 16px;
}

/* ─────────────────────────────────────────────
   ACCORDION
   ───────────────────────────────────────────── */
.wbc-accordion {
	margin-bottom: 20px;
}

.wbc-accordion__item {
	border: 1px solid #ddd;
	margin-bottom: 4px;
	border-radius: 4px;
}

.wbc-accordion__title {
	padding: 12px 16px;
	cursor: pointer;
	font-weight: 600;
	background: #f7f7f7;
	user-select: none;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wbc-accordion__title::-webkit-details-marker { display: none; }

.wbc-accordion__title::after {
	content: '+';
	font-size: 18px;
	line-height: 1;
}

.wbc-accordion__item[open] > .wbc-accordion__title::after {
	content: '−';
}

.wbc-accordion__body {
	padding: 16px;
}

/* ─────────────────────────────────────────────
   PROGRESS BAR
   ───────────────────────────────────────────── */
.wbc-progress {
	margin-bottom: 20px;
}

.wbc-progress__label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 6px;
	font-size: 14px;
}

.wbc-progress__bar {
	background: #e9ecef;
	border-radius: 4px;
	height: 12px;
	overflow: hidden;
}

.wbc-progress__fill {
	height: 100%;
	background: #5472d2;
	border-radius: 4px;
	transition: width 0.6s ease;
}

/* ─────────────────────────────────────────────
   MESSAGE BOX
   ───────────────────────────────────────────── */
.wbc-message-box {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 20px;
	border-left: 4px solid transparent;
}

.wbc-message-box--alert-info    { background: #e8f4fd; border-color: #5472d2; color: #1a3a6b; }
.wbc-message-box--alert-success { background: #eafaf1; border-color: #5cb85c; color: #1e4d2b; }
.wbc-message-box--alert-warning { background: #fef9e7; border-color: #f0ad4e; color: #7d5a00; }
.wbc-message-box--alert-danger  { background: #fdecea; border-color: #d9534f; color: #7b1f1c; }

/* ─────────────────────────────────────────────
   ICON BOX
   ───────────────────────────────────────────── */
.wbc-icon-box {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.wbc-icon-box__item {
	text-align: center;
	flex: 1 1 150px;
}

.wbc-icon {
	margin-bottom: 10px;
}

.wbc-icon--center { text-align: center; }
.wbc-icon--left   { text-align: left; }
.wbc-icon--right  { text-align: right; }

/* ─────────────────────────────────────────────
   VIDEO
   ───────────────────────────────────────────── */
.wbc-video {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
}

.wbc-video iframe,
.wbc-video video {
	max-width: 100%;
	height: auto;
}

/* ─────────────────────────────────────────────
   GENERIC FALLBACK
   ───────────────────────────────────────────── */
.wbc-generic {
	display: block;
}
