/* ===== Aurora Builder — estilos del frontend ===== */
.aurora-content { width: 100%; }

/* Estructura */
.aurora-section { width: 100%; }
.aurora-section-inner { display: flex; flex-wrap: wrap; margin: 0 auto; gap: 20px; }
.aurora-section-inner.is-boxed { max-width: 1140px; padding-left: 15px; padding-right: 15px; }
.aurora-section-inner.is-full { max-width: 100%; }

.aurora-column { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.aurora-container { width: 100%; }
.aurora-container-inner { display: flex; flex-direction: column; gap: 16px; }
.aurora-container-inner.is-boxed { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

.aurora-widget { width: 100%; }

/* Widgets base */
.aurora-heading { margin: 0; }
.aurora-text { line-height: 1.6; }
.aurora-image img, .aurora-image-box img { max-width: 100%; height: auto; display: inline-block; }
.aurora-image-placeholder { background: #f1f5f9; border: 1px dashed #cbd5e1; padding: 40px; text-align: center; color: #94a3b8; }

.aurora-button { display: inline-block; text-decoration: none; padding: 12px 28px; background: #2563eb; color: #fff; border-radius: 6px; transition: opacity .2s; }
.aurora-button:hover { opacity: .9; }

.aurora-divider { border-top: 1px solid #e2e8f0; width: 100%; }
.aurora-spacer { width: 100%; }

.aurora-icon i { line-height: 1; }
.aurora-icon .dashicons { width: auto; height: auto; font-size: inherit; }

.aurora-icon-box, .aurora-image-box { display: flex; flex-direction: column; gap: 10px; }
.aurora-ib-title { margin: 0; }
.aurora-ib-desc { color: #475569; }

.aurora-video { position: relative; width: 100%; }
.aurora-video::before { content: ''; display: block; }
.aurora-video.ratio-169::before { padding-top: 56.25%; }
.aurora-video.ratio-43::before { padding-top: 75%; }
.aurora-video.ratio-11::before { padding-top: 100%; }
.aurora-video.ratio-219::before { padding-top: 42.85%; }
.aurora-video iframe, .aurora-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.aurora-map { display: block; }

/* Tabs */
.aurora-tab-titles { display: flex; gap: 4px; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; }
.aurora-tab-title { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; cursor: pointer; font-size: 15px; }
.aurora-tab-title.is-active { border-bottom-color: #2563eb; color: #2563eb; font-weight: 600; }
.aurora-tab-pane { display: none; padding: 16px 4px; }
.aurora-tab-pane.is-active { display: block; }

/* Accordion */
.aurora-acc-item { border: 1px solid #e2e8f0; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.aurora-acc-head { width: 100%; text-align: left; background: #f8fafc; border: 0; padding: 14px 16px; cursor: pointer; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.aurora-acc-arrow { transition: transform .2s; }
.aurora-acc-item.is-open .aurora-acc-arrow { transform: rotate( 180deg ); }
.aurora-acc-body { display: none; }
.aurora-acc-item.is-open .aurora-acc-body { display: block; }
.aurora-acc-inner { padding: 14px 16px; }

/* Posts loop */
.aurora-posts { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 24px; }
.aurora-post-card { display: flex; flex-direction: column; gap: 8px; }
.aurora-post-thumb img { width: 100%; height: auto; border-radius: 8px; }
.aurora-post-title { margin: 0; font-size: 18px; }
.aurora-post-title a { text-decoration: none; color: inherit; }
.aurora-post-excerpt { color: #475569; font-size: 14px; }

/* ===== Carrusel ===== */
.aurora-carousel { position: relative; --ab-gap: 16px; }
.aurora-carousel-viewport { overflow: hidden; }
.aurora-carousel-track { display: flex; gap: var(--ab-gap); transition: transform .4s ease; }
.aurora-slide { flex: 0 0 auto; min-width: 0; }
/* Carrusel con elementos anidados (arrastrados) */
.aurora-carousel.is-nested .aurora-carousel-track > * { flex: 0 0 calc( 100% / var( --per, 1 ) - var( --ab-gap, 16px ) ); min-width: 0; }
.aurora-slide-img { width: 100%; height: 320px; background-size: cover; background-position: center; border-radius: 10px; }
.aurora-slide-body { padding: 10px 2px; }
.aurora-slide-title { margin: 6px 0 4px; font-size: 18px; }
.aurora-slide-caption { color: #475569; font-size: 14px; }
.aurora-carousel-arrow {
	position: absolute; top: 50%; transform: translateY( -50% );
	width: 40px; height: 40px; border: 0; border-radius: 50%;
	background: #2563eb; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .9;
}
.aurora-carousel-arrow.prev { left: 8px; }
.aurora-carousel-arrow.next { right: 8px; }
.aurora-carousel-arrow:hover { opacity: 1; }
.aurora-carousel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.aurora-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: #cbd5e1; cursor: pointer; padding: 0; }
.aurora-dot.is-active { background: #2563eb; }
.aurora-carousel-empty { padding: 30px; text-align: center; color: #94a3b8; border: 1px dashed #cbd5e1; border-radius: 8px; }

/* ===== Contador ===== */
.aurora-counter { line-height: 1.1; }
.aurora-counter-number { font-size: 56px; font-weight: 800; color: #2563eb; }
.aurora-counter-title { margin-top: 6px; color: #475569; font-size: 16px; }

/* ===== Barra de progreso ===== */
.aurora-progress-wrap { width: 100%; }
.aurora-progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.aurora-progress { background: #e2e8f0; border-radius: 20px; height: 14px; overflow: hidden; }
.aurora-progress-fill { height: 100%; background: #2563eb; border-radius: 20px; width: 0; transition: width 1.2s ease; }

/* ===== Formulario avanzado ===== */
.aurora-adv-form .aurora-af-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.aurora-af-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; }
.aurora-af-field.w-50 { flex: 1 1 calc( 50% - 7px ); }
.aurora-af-field.w-33 { flex: 1 1 calc( 33.333% - 10px ); }
.aurora-af-field label { font-weight: 600; font-size: 14px; }
.aurora-af-field input, .aurora-af-field textarea, .aurora-af-field select {
	padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 6px; width: 100%; font-size: 15px;
}
.aurora-af-check { flex-direction: row; align-items: center; gap: 8px; }
.aurora-af-actions { margin-top: 16px; }
.aurora-af-submit { background: #2563eb; color: #fff; border: 0; padding: 12px 28px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 15px; }
.aurora-af-submit:disabled { opacity: .6; }
.aurora-af-message { margin-top: 14px; padding: 12px 14px; border-radius: 6px; }
.aurora-af-message.is-success { background: #dcfce7; color: #166534; }
.aurora-af-message.is-error { background: #fee2e2; color: #991b1b; }

/* ===== Flip Box ===== */
.aurora-flip { perspective: 1200px; }
.aurora-flip-inner { position: relative; width: 100%; height: 280px; transition: transform .6s; transform-style: preserve-3d; }
.aurora-flip:hover .aurora-flip-inner { transform: rotateY( 180deg ); }
.aurora-flip-front, .aurora-flip-back {
	position: absolute; inset: 0; backface-visibility: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 24px; text-align: center; border-radius: 12px; color: #fff;
}
.aurora-flip-front { background: #2563eb; }
.aurora-flip-back { background: #0f172a; transform: rotateY( 180deg ); }
.aurora-flip-icon { font-size: 40px; }
.aurora-flip-btn { display: inline-block; margin-top: 8px; background: #fff; color: #0f172a; padding: 8px 18px; border-radius: 6px; text-decoration: none; }

/* ===== Galería ===== */
.aurora-gallery { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 10px; }
.aurora-gallery-item { display: block; overflow: hidden; }
.aurora-gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; display: block; transition: transform .3s; }
.aurora-gallery-item:hover img { transform: scale( 1.05 ); }
#aurora-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
#aurora-lightbox.is-open { display: flex; }
#aurora-lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 6px; }
.aurora-lb-close { position: absolute; top: 20px; right: 28px; color: #fff; font-size: 40px; line-height: 1; }

/* Slide de vídeo (galería multimedia) */
.aurora-slide-video { position: relative; width: 100%; height: 360px; background: #000; border-radius: 10px; overflow: hidden; }
.aurora-slide-video iframe, .aurora-slide-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }

/* ===== Video Playlist ===== */
.aurora-vplaylist { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.aurora-vp-player { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.aurora-vp-player iframe, .aurora-vp-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.aurora-vp-list { display: flex; flex-direction: column; gap: 4px; max-height: 400px; overflow: auto; }
.aurora-vp-item { display: flex; align-items: center; gap: 10px; text-align: left; background: #f8fafc; border: 0; border-left: 3px solid transparent; padding: 12px; cursor: pointer; border-radius: 6px; }
.aurora-vp-item:hover { background: #eef2ff; }
.aurora-vp-item.is-active { border-left-color: #2563eb; color: #2563eb; font-weight: 600; background: #eef2ff; }
.aurora-vp-num { background: #e2e8f0; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }

/* ===== Icon List ===== */
.aurora-icon-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aurora-icon-list li { display: flex; align-items: center; gap: 10px; }
.aurora-il-icon { color: #2563eb; display: inline-flex; }
.aurora-il-text a { text-decoration: none; color: inherit; }

/* ===== Compartir ===== */
.aurora-share { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.aurora-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; text-decoration: none; color: #fff; font-weight: 700; }
.aurora-share-btn.net-facebook { background: #1877f2; }
.aurora-share-btn.net-x { background: #000; }
.aurora-share-btn.net-whatsapp { background: #25d366; }
.aurora-share-btn.net-linkedin { background: #0a66c2; }
.aurora-share-btn.net-telegram { background: #229ed9; }
.aurora-share-btn.net-email { background: #64748b; }
.aurora-share-btn.net-copy { background: #334155; position: relative; }
.aurora-share-btn.net-copy.copied::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #16a34a; border-radius: 50%; }

/* ===== Off-Canvas ===== */
.aurora-offcanvas-toggle { background: #2563eb; color: #fff; border: 0; padding: 10px 18px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.aurora-offcanvas { position: fixed; inset: 0; z-index: 99980; visibility: hidden; }
.aurora-offcanvas.is-open { visibility: visible; }
.aurora-offcanvas-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .3s; }
.aurora-offcanvas.is-open .aurora-offcanvas-overlay { opacity: 1; }
.aurora-offcanvas-panel { position: absolute; top: 0; bottom: 0; width: 320px; max-width: 85vw; background: #fff; padding: 28px; overflow: auto; transition: transform .3s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
.aurora-offcanvas.pos-left .aurora-offcanvas-panel { left: 0; transform: translateX( -100% ); }
.aurora-offcanvas.pos-right .aurora-offcanvas-panel { right: 0; transform: translateX( 100% ); }
.aurora-offcanvas.is-open .aurora-offcanvas-panel { transform: none; }
.aurora-offcanvas-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #334155; }
body.aurora-oc-open { overflow: hidden; }

/* ===== Menú ===== */
.aurora-menu-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.aurora-menu-list.is-vertical, .aurora-menu.is-vertical .aurora-menu-list { flex-direction: column; gap: 8px; }
.aurora-menu-list a { text-decoration: none; color: inherit; }
.aurora-menu-list .sub-menu { display: none; position: absolute; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 8px 0; border-radius: 8px; min-width: 180px; z-index: 50; }
.aurora-menu-list li { position: relative; }
.aurora-menu-list li:hover > .sub-menu { display: block; }
.aurora-menu-list .sub-menu a { display: block; padding: 8px 16px; }
.aurora-menu-toggle { display: none; background: none; border: 1px solid #cbd5e1; border-radius: 6px; padding: 6px 12px; font-size: 18px; cursor: pointer; }
.aurora-wpmenu .aurora-menu-list { display: inline-flex; }

/* ===== Loop carrusel ===== */
.aurora-loop-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.aurora-loop-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.aurora-loop-title { margin: 0; padding: 14px 14px 4px; font-size: 17px; }
.aurora-loop-title a { color: inherit; text-decoration: none; }
.aurora-loop-excerpt { padding: 0 14px 14px; color: #475569; font-size: 14px; }

/* ===== WooCommerce ===== */
.aurora-wc-products { display: grid; grid-template-columns: repeat( 4, 1fr ); gap: 22px; }
.aurora-wc-card { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.aurora-wc-card img { width: 100%; height: auto; border-radius: 8px; }
.aurora-wc-title { margin: 6px 0 0; font-size: 16px; }
.aurora-wc-title a { color: inherit; text-decoration: none; }
.aurora-wc-price { color: #16a34a; font-weight: 600; }
.aurora-wc-price del { color: #94a3b8; font-weight: 400; margin-right: 6px; }
.aurora-wc-btn { display: inline-block; background: #2563eb; color: #fff; padding: 9px 18px; border-radius: 6px; text-decoration: none; font-size: 14px; }
.aurora-wc-btn:hover { opacity: .9; }
.aurora-wc-cats { display: grid; grid-template-columns: repeat( 3, 1fr ); gap: 18px; }
.aurora-wc-cat { position: relative; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; color: #fff; background: #0f172a; min-height: 120px; }
.aurora-wc-cat img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.aurora-wc-cat-name { position: absolute; left: 12px; bottom: 10px; font-weight: 700; font-size: 18px; }
.aurora-wc-cat-count { position: absolute; right: 12px; top: 10px; background: rgba(255,255,255,.25); border-radius: 20px; padding: 2px 10px; font-size: 12px; }
.aurora-wc-pprice .price { font-size: 24px; font-weight: 700; }
.aurora-wc-single-cart { margin-top: 10px; }

/* Carrito flotante */
.aurora-fcart-toggle { position: fixed; bottom: 24px; z-index: 99970; background: #2563eb; color: #fff; border: 0; border-radius: 50px; padding: 14px 20px; font-size: 16px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.aurora-fcart.pos-right .aurora-fcart-toggle { right: 24px; }
.aurora-fcart.pos-left .aurora-fcart-toggle { left: 24px; }
.aurora-fcart-count { background: #fff; color: #2563eb; border-radius: 50%; padding: 1px 7px; font-size: 12px; font-weight: 700; margin-left: 4px; }
.aurora-fcart-panel { position: fixed; inset: 0; z-index: 99975; visibility: hidden; }
.aurora-fcart.is-open .aurora-fcart-panel { visibility: visible; }
.aurora-fcart-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); opacity: 0; transition: opacity .3s; }
.aurora-fcart.is-open .aurora-fcart-overlay { opacity: 1; }
.aurora-fcart-box { position: absolute; top: 0; bottom: 0; width: 360px; max-width: 88vw; background: #fff; padding: 24px; overflow: auto; transition: transform .3s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
.aurora-fcart.pos-right .aurora-fcart-box { right: 0; transform: translateX( 100% ); }
.aurora-fcart.pos-left .aurora-fcart-box { left: 0; transform: translateX( -100% ); }
.aurora-fcart.is-open .aurora-fcart-box { transform: none; }
.aurora-fcart-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; cursor: pointer; color: #334155; }
.aurora-fc-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.aurora-fc-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.aurora-fc-info { flex: 1; display: flex; flex-direction: column; }
.aurora-fc-name { font-weight: 600; font-size: 14px; }
.aurora-fc-qty { color: #64748b; font-size: 13px; }
.aurora-fc-remove { color: #ef4444; text-decoration: none; font-size: 20px; }
.aurora-fc-subtotal { margin: 14px 0; font-weight: 700; }
.aurora-fc-actions { display: flex; gap: 10px; }
.aurora-fc-actions .aurora-wc-btn { flex: 1; text-align: center; }
.aurora-fc-empty { color: #94a3b8; }

/* Responsive: columnas apiladas en móvil */
@media ( max-width: 767px ) {
	.aurora-wc-products { grid-template-columns: 1fr 1fr; }
	.aurora-wc-cats { grid-template-columns: 1fr; }
	.aurora-vplaylist { grid-template-columns: 1fr; }
	.aurora-menu.has-toggle .aurora-menu-toggle { display: inline-block; }
	.aurora-menu.has-toggle .aurora-menu-wrap { display: none; position: absolute; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 12px; border-radius: 8px; z-index: 50; }
	.aurora-menu.has-toggle.is-open .aurora-menu-wrap { display: block; }
	.aurora-menu.has-toggle .aurora-menu-list { flex-direction: column; gap: 6px; }
	.aurora-section-inner { flex-direction: column; }
	.aurora-column { flex: 1 1 100% !important; max-width: 100% !important; }
	.aurora-posts { grid-template-columns: 1fr; }
	.aurora-slide { flex-basis: 100% !important; }
	.aurora-af-field { flex-basis: 100% !important; }
}
