/**
 * Teloalquilo - Estilos de Administración de Publicaciones
 * 
 * Centraliza las clases visuales de los formularios de creación, edición 
 * y listados de publicaciones para mantener el código HTML/PHP limpio.
 */

/* =========================================================
   Variables de Modo Claro y Oscuro para Publicaciones
   ========================================================= */
:root {
    --telo-pub-card-bg: #FFFFFF;
    --telo-pub-card-border: #EDECFD;
    --telo-pub-img-bg: #EDECFD;
    --telo-pub-title-color: #000824;
    --telo-pub-text-muted: #5a657c;

    --telo-pub-badge-alq-bg: #EDECFD;
    --telo-pub-badge-alq-color: #3C51FA;

    --telo-pub-badge-venta-bg: #FEF3C7;
    --telo-pub-badge-venta-color: #B45309;

    --telo-pub-badge-ambos-bg: #EDECFD;
    --telo-pub-badge-ambos-color: #3C51FA;

    --telo-pub-pill-bg: #EDECFD;
    --telo-pub-pill-color: #000824;
    --telo-pub-pill-border: rgba(60, 81, 250, 0.15);

    --telo-pub-pill-venta-bg: #FEF3C7;
    --telo-pub-pill-venta-color: #B45309;
    --telo-pub-pill-venta-border: #FDE68A;

    --telo-pub-search-bg: #FFFFFF;
    --telo-pub-search-border: #CBD5E1;

    --telo-pub-menu-bg: #FFFFFF;
    --telo-pub-menu-border: #EDECFD;
    --telo-pub-menu-color: #000824;
    --telo-pub-menu-hover-bg: #EDECFD;
}

.telo-cat-paso-title {
    font-weight: 800;
    color: var(--telo-text);
    text-align: center;
    margin-bottom: 2rem;
}

.telo-cat-selected-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.telo-cat-selected-lbl {
    font-size: 0.8em;
    color: var(--telo-text-muted);
    display: block;
    line-height: 1;
}

.telo-cat-selected-val {
    color: var(--telo-text);
    font-size: 1.05rem;
}

.telo-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.telo-field-sublabel {
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.telo-section-subtitle {
    font-size: 0.85em;
    color: var(--telo-text-muted);
    margin-bottom: 1rem;
}

.telo-rates-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.telo-form-divider-section {
    border-top: 1px solid var(--telo-border);
    padding-top: 1.5rem;
}

.telo-form-divider-section.large {
    margin-top: 2rem;
}

.telo-rate-add-row {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
}

.telo-input-prefix-container {
    position: relative;
}

.telo-input-prefix-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: var(--telo-primary);
    font-size: 1.1rem;
}

.telo-input-prefixed {
    border-radius: 8px;
    padding-left: 32px !important;
    margin-bottom: 0;
    height: auto;
}

.telo-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--telo-text);
    margin-bottom: 1.5rem;
}

.telo-counter-text {
    font-size: 0.75em;
    color: var(--telo-text-muted);
    display: block;
    text-align: right;
}

.telo-photos-picker-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.telo-photo-placeholder {
    text-align: center;
    color: var(--telo-primary);
}

.telo-photo-placeholder-text {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
}

.telo-photo-adicional-label {
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: -0.5rem;
}

.telo-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.telo-plus-icon {
    color: var(--telo-text-muted);
}

.telo-warning-box {
    border: 1px solid var(--telo-warning);
    background-color: rgba(255, 183, 3, 0.05);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9em;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.telo-warning-box-title {
    color: #d48b00;
    font-weight: bold;
}

.telo-warning-box-link {
    font-weight: bold;
    text-decoration: underline;
    color: var(--telo-primary);
}

.telo-hidden,
.telo-wizard-photo-remove-btn.telo-hidden,
.telo-wizard-photo-slot img.telo-hidden,
.telo-wizard-photo-slot img:not([src]),
.telo-wizard-photo-slot img[src=""] {
    display: none !important;
}

/* Botones de acción directa (Sacar Foto / Galería) */
.telo-photo-direct-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    margin: 0.8rem 0;
    flex-wrap: wrap;
}

.telo-btn-direct-camera,
.telo-btn-direct-gallery {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: none;
}

.telo-btn-direct-camera {
    background-color: #3C51FA;
    color: #FFFFFF;
    box-shadow: 0 2px 6px rgba(60, 81, 250, 0.25);
}

.telo-btn-direct-camera:hover {
    background-color: #2b3fd9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(60, 81, 250, 0.35);
}

.telo-btn-direct-gallery {
    background-color: #EDECFD;
    color: #3C51FA;
    border: 1px solid rgba(60, 81, 250, 0.2);
}

.telo-btn-direct-gallery:hover {
    background-color: #3C51FA;
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Modal de selección de fuente de imagen (Cámara vs Galería) */
.telo-swal-photo-popup {
    border-radius: 16px !important;
    padding: 1.5rem !important;
}

.telo-photo-source-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.telo-photo-source-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #EDECFD;
    background: #FFFFFF;
    color: #000824;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: left;
}

.telo-photo-source-btn i {
    font-size: 1.6rem;
    width: 2.2rem;
    text-align: center;
}

.telo-photo-source-info {
    display: flex;
    flex-direction: column;
}

.telo-photo-source-info strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.telo-photo-source-info span {
    font-size: 0.8rem;
    color: #5a657c;
}

.telo-btn-camera {
    border-color: rgba(60, 81, 250, 0.3);
    background: #EDECFD;
}

.telo-btn-camera i {
    color: #3C51FA;
}

.telo-btn-camera:hover {
    background: #3C51FA;
    border-color: #3C51FA;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.telo-btn-camera:hover i,
.telo-btn-camera:hover strong,
.telo-btn-camera:hover span {
    color: #FFFFFF;
}

.telo-btn-gallery {
    border-color: rgba(60, 81, 250, 0.3);
    background: #FFFFFF;
}

.telo-btn-gallery i {
    color: #3C51FA;
}

.telo-btn-gallery:hover {
    background: #3C51FA;
    border-color: #3C51FA;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.telo-btn-gallery:hover i,
.telo-btn-gallery:hover strong,
.telo-btn-gallery:hover span {
    color: #FFFFFF;
}

/* Tarjetas de Mis Publicaciones */
.telo-pub-card {
    display: flex;
    gap: 1rem;
    border: 1px solid var(--telo-pub-card-border);
    border-radius: 16px;
    padding: 0.9rem;
    background-color: var(--telo-pub-card-bg);
    align-items: flex-start;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.telo-pub-card:hover {
    border-color: #3C51FA;
    box-shadow: 0 4px 14px rgba(60, 81, 250, 0.1);
}

.telo-pub-img-wrapper {
    width: 95px;
    height: 95px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--telo-pub-card-border);
    background-color: var(--telo-pub-img-bg);
}

.telo-pub-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.telo-pub-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-right: 1.5rem;
}

.telo-pub-header-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}

.telo-pub-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--telo-pub-title-color);
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.telo-pub-tags-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.1rem;
}

.telo-pub-category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--telo-pub-text-muted);
    font-weight: 500;
}

.telo-pub-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.telo-pub-type-badge.alquiler {
    background-color: var(--telo-pub-badge-alq-bg);
    color: var(--telo-pub-badge-alq-color);
}

.telo-pub-type-badge.venta {
    background-color: var(--telo-pub-badge-venta-bg);
    color: var(--telo-pub-badge-venta-color);
}

.telo-pub-type-badge.ambos {
    background-color: var(--telo-pub-badge-ambos-bg);
    color: var(--telo-pub-badge-ambos-color);
}

.telo-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    line-height: 1;
}

.telo-pub-price-row {
    margin-top: 0.1rem;
}

.telo-pub-price-main {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--telo-primary, #2563eb);
}

.telo-pub-price-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--telo-pub-text-muted);
}

.telo-pub-price-none {
    font-size: 0.85rem;
    color: #d97706;
    font-weight: 600;
}

.telo-pub-tarifas-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.telo-tarifa-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    background-color: var(--telo-pub-pill-bg);
    border-radius: 8px;
    color: var(--telo-pub-pill-color);
    border: 1px solid var(--telo-pub-pill-border);
}

.telo-tarifa-pill strong {
    color: var(--telo-pub-title-color);
}

.telo-tarifa-pill.venta {
    background-color: var(--telo-pub-pill-venta-bg);
    color: var(--telo-pub-pill-venta-color);
    border-color: var(--telo-pub-pill-venta-border);
}

.telo-pub-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--telo-pub-text-muted);
    margin-top: 0.15rem;
}

.telo-meta-sep {
    color: var(--telo-pub-pill-border);
}

.telo-pub-desc {
    font-size: 0.78rem;
    color: var(--telo-pub-text-muted);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.telo-pub-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Barra de Filtrado, Búsqueda y Paginación */
.telo-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.telo-search-input-wrapper {
    position: relative;
    flex-grow: 1;
    max-width: 420px;
}

.telo-search-icon {
    position: absolute;
    left: 14px;
    top: 12px;
    color: var(--telo-pub-text-muted);
    font-size: 0.9rem;
}

.telo-search-input {
    width: 100%;
    padding: 0.4em 2em 0.4em 2.4em !important;
    height: fit-content !important;
    border-radius: 20px;
    border: 1px solid var(--telo-pub-search-border);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--telo-pub-search-bg);
    color: var(--telo-pub-title-color);
    margin-bottom: 0 !important;
}

.telo-search-input:focus {
    border-color: var(--telo-primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background-color: var(--telo-pub-card-bg);
}

.telo-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--telo-pub-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 2px 4px;
}

.telo-search-clear:hover {
    color: var(--telo-pub-title-color);
}

.telo-pub-count {
    font-size: 0.85rem;
    color: var(--telo-pub-text-muted);
    font-weight: 600;
}

.telo-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.telo-page-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--telo-pub-pill-border);
    background-color: var(--telo-pub-search-bg);
    color: var(--telo-pub-pill-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.telo-page-btn:hover:not(:disabled) {
    border-color: var(--telo-primary, #2563eb);
    color: var(--telo-primary, #2563eb);
    background-color: rgba(37, 99, 235, 0.1);
}

.telo-page-btn.active {
    background-color: var(--telo-primary, #2563eb);
    color: #ffffff;
    border-color: var(--telo-primary, #2563eb);
}

.telo-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Menú Dropdown de Acciones */
.telo-menu-dropdown ul {
    background-color: var(--telo-pub-menu-bg);
    border: 1px solid var(--telo-pub-menu-border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.telo-menu-dropdown ul li a {
    color: var(--telo-pub-menu-color);
}

.telo-menu-dropdown ul li a:hover {
    background-color: var(--telo-pub-menu-hover-bg);
}

@media (max-width: 576px) {
    .telo-pub-card {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    .telo-pub-img-wrapper {
        width: 85px;
        height: 85px;
    }
    .telo-pub-title {
        font-size: 0.95rem;
    }
}

/* =========================================================
   Estilos Modernos para Editores de Texto (Quill Snow)
   ========================================================= */
.ql-toolbar.ql-snow {
    border: 1px solid #CBD5E1 !important;
    border-bottom: none !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    background-color: #F8FAFC !important;
    padding: 8px 12px !important;
}

.ql-container.ql-snow {
    border: 1px solid #CBD5E1 !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    background-color: #FFFFFF !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.95rem !important;
    min-height: 120px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.ql-container.ql-snow.ql-focus,
.ql-toolbar.ql-snow:focus-within {
    border-color: #3C51FA !important;
}

.ql-editor {
    min-height: 110px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    padding: 12px 14px !important;
    color: #000824 !important;
    line-height: 1.5 !important;
}

.ql-editor.ql-blank::before {
    color: #94A3B8 !important;
    font-style: normal !important;
    left: 14px !important;
    right: 14px !important;
}

/* Acciones en Edición de Publicación */
.telo-edit-actions-container {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.telo-btn-action-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 14px;
    background: #3C51FA;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 14px rgba(60, 81, 250, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.telo-btn-action-primary:hover {
    background: #2b3fd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(60, 81, 250, 0.35);
}

.telo-btn-action-primary:active {
    transform: translateY(0);
}

/* =========================================================
   Wizard por Pasos de Creación de Publicación (2026 Design)
   ========================================================= */
.telo-wizard-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.telo-wizard-topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0.8rem;
    position: relative;
}

.telo-wizard-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #3C51FA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.telo-wizard-back-btn:hover {
    background: #EDECFD;
    border-color: #3C51FA;
    transform: translateX(-2px);
}

.telo-wizard-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #000824;
    margin: 0;
    letter-spacing: -0.02em;
}

.telo-wizard-stepper-box {
    margin-bottom: 1.3rem;
}

.telo-wizard-stepper-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.45rem;
}

.telo-wizard-step-label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #000824;
    white-space: nowrap;
}

.telo-wizard-pills-row {
    display: flex;
    gap: 6px;
    flex: 1;
    align-items: center;
}

.telo-wizard-pill {
    height: 6px;
    border-radius: 4px;
    background: #E2E8F0;
    flex: 1;
    transition: background-color 0.3s ease;
}

.telo-wizard-pill.active {
    background: #3C51FA;
}

.telo-wizard-subtitle {
    font-size: 0.84rem;
    color: #5a657c;
    line-height: 1.4;
    margin: 0;
}

.telo-wizard-section-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: #000824;
    margin: 1.2rem 0 0.8rem 0;
}

/* Tarjeta contenedora con Badge */
.telo-wizard-card {
    background: #FFFFFF;
    border: 1px solid #EDECFD;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 8, 36, 0.04);
    margin-bottom: 1.1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.telo-wizard-card:hover {
    box-shadow: 0 6px 20px rgba(0, 8, 36, 0.06);
}

.telo-wizard-badge-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.telo-wizard-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.telo-wizard-badge-icon.teal {
    background: #A7F3D0;
    color: #065F46;
}

.telo-wizard-badge-icon.blue {
    background: #EDECFD;
    color: #3C51FA;
}

.telo-wizard-badge-text {
    display: flex;
    flex-direction: column;
}

.telo-wizard-badge-subtitle {
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a657c;
    margin-bottom: 2px;
    line-height: 1.2;
}

.telo-wizard-badge-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #000824;
    margin: 0;
    line-height: 1.25;
}

/* Selector estilo Tarjeta (Categoría y Subcategoría) */
.telo-wizard-select-card {
    background: #FFFFFF;
    border: 1px solid #EDECFD;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 8, 36, 0.02);
}

.telo-wizard-select-card:hover {
    border-color: #3C51FA;
    background: #F8FAFC;
    transform: translateY(-1px);
}

.telo-wizard-select-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.telo-wizard-select-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #A7F3D0;
    color: #065F46;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.telo-wizard-select-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5a657c;
    display: block;
    line-height: 1.2;
}

.telo-wizard-select-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: #000824;
    display: block;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.telo-wizard-chevron {
    color: #3C51FA;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Fotos del Artículo */
.telo-wizard-photos-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    margin-top: 1.2rem;
}

.telo-wizard-photos-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000824;
    margin: 0;
}

.telo-wizard-photos-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: #5a657c;
}

.telo-wizard-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}

.telo-wizard-photo-slot {
    aspect-ratio: 4/5;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border: 1.5px solid #EDECFD;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.telo-wizard-photo-slot:hover {
    border-color: #3C51FA;
}

.telo-wizard-photo-slot.principal {
    border: 1.5px solid #3C51FA;
}

.telo-wizard-photo-slot img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.telo-wizard-photo-main-badge {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #3C51FA;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.telo-wizard-photo-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3C51FA;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(60, 81, 250, 0.25);
}

.telo-wizard-photo-add-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #5a657c;
    text-align: center;
    line-height: 1.2;
}

.telo-wizard-photo-remove-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.2s;
    z-index: 2;
}

.telo-wizard-photo-remove-btn:hover {
    background: #EF4444;
}

/* Campos de formulario Wizard (Paso 2) */
.telo-wizard-field-group {
    margin-bottom: 1.1rem;
}

.telo-wizard-input-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #000824;
    margin-bottom: 6px;
    display: block;
}

.telo-wizard-input {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #000824;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.telo-wizard-input:focus {
    border-color: #3C51FA;
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 81, 250, 0.1);
}

.telo-wizard-textarea {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #000824;
    resize: vertical;
    min-height: 85px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.telo-wizard-textarea:focus {
    border-color: #3C51FA;
    outline: none;
    box-shadow: 0 0 0 3px rgba(60, 81, 250, 0.1);
}

.telo-wizard-counter {
    font-size: 0.75rem;
    color: #94A3B8;
    text-align: right;
    display: block;
    margin-top: 4px;
    font-weight: 500;
}

/* Tarifas de Alquiler (Paso 3) */
.telo-wizard-rate-item {
    background: #FFFFFF;
    border: 1px solid #EDECFD;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 8, 36, 0.02);
}

.telo-wizard-rate-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.telo-wizard-rate-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.telo-wizard-rate-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000824;
}

.telo-wizard-rate-delete-btn {
    background: none;
    border: none;
    color: #EF4444;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px 6px;
    transition: transform 0.2s, color 0.2s;
}

.telo-wizard-rate-delete-btn:hover {
    color: #DC2626;
    transform: scale(1.15);
}

.telo-wizard-add-rate-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.6rem;
    width: 100%;
    box-sizing: border-box;
}

.telo-wizard-add-rate-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 380px) {
    .telo-wizard-add-rate-fields {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.telo-wizard-rate-field-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.telo-wizard-rate-field-box:focus-within {
    border-color: #3C51FA;
    background: #FFFFFF;
}

.telo-wizard-rate-field-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    line-height: 1.1;
    margin-bottom: 4px;
}

.telo-wizard-rate-select {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #000824;
    outline: none;
    box-shadow: none !important;
    width: 100%;
    cursor: pointer;
    min-width: 0;
}

.telo-wizard-rate-input-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.telo-wizard-rate-currency {
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748B;
}

.telo-wizard-rate-input {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #000824;
    outline: none;
    box-shadow: none !important;
    width: 100%;
    min-width: 0;
}

.telo-wizard-add-rate-btn {
    background: #EDECFD;
    color: #3C51FA;
    border: 1.5px dashed #3C51FA;
    border-radius: 12px;
    width: 100%;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    box-sizing: border-box;
}

.telo-wizard-add-rate-btn:hover {
    background: #3C51FA;
    color: #FFFFFF;
    border-style: solid;
    box-shadow: 0 4px 12px rgba(60, 81, 250, 0.25);
    transform: translateY(-1px);
}

/* Card Switch para Venta */
.telo-wizard-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

/* Selector desplegable de Ubicación en Wizard */
.telo-wizard-select {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #000824;
    outline: none;
    transition: border-color 0.2s ease;
}

.telo-wizard-select:focus {
    border-color: #3C51FA;
}

/* Inputs de horarios 2x2 */
.telo-wizard-time-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .telo-wizard-time-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.telo-wizard-time-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 0;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
}

.telo-wizard-time-box:focus-within {
    border-color: #3C51FA;
    background: #FFFFFF;
}

.telo-wizard-time-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    display: block;
    margin-bottom: 2px;
}

.telo-wizard-time-input {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #000824;
    outline: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   Paso 4: Pantalla de Revisión y Publicación
   ========================================================= */
.telo-review-product-card {
    background: #FFFFFF;
    border: 1.5px solid #818CF8;
    border-radius: 18px;
    padding: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(60, 81, 250, 0.08);
}

.telo-review-img-box {
    width: 110px;
    height: 125px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    background: #EDECFD;
}

.telo-review-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.telo-review-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
}

.telo-review-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.telo-review-dot.active {
    background: #FFFFFF;
}

.telo-review-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.telo-review-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000824;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.telo-review-cat-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid #818CF8;
    background: #EEF2FF;
    color: #3C51FA;
    font-size: 0.78rem;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 4px;
}

.telo-review-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.8rem;
    color: #5a657c;
    line-height: 1.3;
}

.telo-review-meta-icon {
    color: #3C51FA;
    margin-top: 2px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.telo-review-meta-item strong {
    color: #000824;
}

/* Fila de Tarifas en Revisión */
.telo-review-rates-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 1rem;
}

.telo-review-rate-pill {
    flex: 1;
    background: #EDECFD;
    border-radius: 12px;
    padding: 8px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.telo-review-rate-period {
    font-size: 0.75rem;
    color: #5a657c;
    font-weight: 600;
}

.telo-review-rate-amount {
    font-size: 0.95rem;
    color: #000824;
    font-weight: 800;
}

.telo-review-edit-square-btn {
    width: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #3C51FA;
    color: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(60, 81, 250, 0.25);
}

.telo-review-edit-square-btn:hover {
    background: #2b3fd9;
    transform: scale(1.05);
}

/* Tarjetas de Resumen Detallado */
.telo-review-summary-card {
    background: #FFFFFF;
    border: 1px solid #EDECFD;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 8, 36, 0.03);
}

.telo-review-pencil-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #818CF8;
    background: #FFFFFF;
    color: #3C51FA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.telo-review-pencil-btn:hover {
    background: #3C51FA;
    color: #FFFFFF;
    transform: scale(1.08);
}

.telo-review-notice-banner {
    background: #DCFCE7;
    border-radius: 20px;
    padding: 10px 16px;
    text-align: center;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1.25rem 0 1rem 0;
}

/* Botones Principales de Wizard */
.telo-wizard-btn-primary {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    background: #3C51FA;
    color: #FFFFFF;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(60, 81, 250, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 1.25rem;
}

.telo-wizard-btn-primary:hover {
    background: #2b3fd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(60, 81, 250, 0.35);
}

.telo-wizard-btn-primary:active {
    transform: translateY(0);
}

.telo-wizard-btn-secondary {
    width: 100%;
    padding: 12px 20px;
    border-radius: 14px;
    background: #FFFFFF;
    color: #3C51FA;
    border: 1.5px solid #3C51FA;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.telo-wizard-btn-secondary:hover {
    background: #EDECFD;
    transform: translateY(-1px);
}

.telo-wizard-btn-primary:disabled,
.telo-wizard-btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* =========================================================
   Estilos específicos de Paso Inicial de Análisis con IA
   ========================================================= */
.telo-ia-step-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 0;
}

.telo-ia-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #EDECFD;
    color: #3C51FA;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 14px rgba(60, 81, 250, 0.15);
}

.telo-ia-title {
    margin-bottom: 0.5rem;
    text-align: center;
    color: #000824;
    font-weight: 800;
}

.telo-ia-subtitle {
    text-align: center;
    margin-bottom: 1.8rem;
    line-height: 1.5;
    color: #5a657c;
}

.telo-ia-photo-box {
    min-height: 240px;
    cursor: pointer;
    border: 2px dashed #CBD5E1;
    border-radius: 16px;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

.telo-ia-photo-box:hover {
    border-color: #3C51FA;
    background: #EDECFD;
}

.telo-ia-placeholder-box {
    padding: 2.5rem 1rem;
}

.telo-ia-upload-icon {
    font-size: 3rem;
    color: #3C51FA;
    margin-bottom: 0.8rem;
    display: block;
}

.telo-ia-upload-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000824;
}

.telo-ia-upload-subtext {
    display: block;
    font-size: 0.85rem;
    color: #5a657c;
    margin-top: 0.4rem;
}

.telo-ia-preview-img {
    max-height: 280px;
    width: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.telo-ia-submit-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    background: #3C51FA !important;
    color: #FFFFFF !important;
    border: none !important;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(60, 81, 250, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-top: 1.25rem;
}

.telo-ia-submit-btn:hover:not(:disabled) {
    background: #2b3fd9 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(60, 81, 250, 0.35);
}

.telo-ia-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #3C51FA !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    transform: none !important;
}


