/**
 * SECCIÓN LAYOUT:
 * Responsabilidad: estilos aislados de la Fase 1.
 * Dependencias: ninguna.
 * Límite: no redefine estilos globales.
 * SECCIÓN RESPONSIVE: adaptación básica a móvil.
 */
.gz-create-business{width:min(100%,820px);margin:0 auto;padding:32px 24px 48px;box-sizing:border-box}
.gz-create-business__header{margin-bottom:28px}
.gz-create-business__eyebrow{display:block;margin-bottom:8px;font-size:13px;font-weight:700;text-transform:uppercase}
.gz-create-business__title{margin:0 0 10px;font-size:clamp(28px,4vw,40px);line-height:1.1}
.gz-create-business__intro{max-width:680px;margin:0;line-height:1.6}
.gz-create-business__progress{display:grid;grid-template-columns:repeat(9,1fr);gap:6px;margin:0 0 34px}
.gz-create-business__progress span{height:4px;border-radius:99px;background:#e7e7e7}
.gz-create-business__progress span.is-active{background:currentColor}
.gz-create-business__form{display:grid;gap:24px}
.gz-create-business__field{display:grid;gap:8px}
.gz-create-business__field label{font-weight:650}
.gz-create-business__field input,.gz-create-business__field textarea{width:100%;box-sizing:border-box;padding:14px 15px;border:1px solid #d8d8d8;border-radius:10px;background:#fff;font:inherit}
.gz-create-business__field textarea{min-height:150px;resize:vertical}
.gz-create-business__field small{line-height:1.45;opacity:.72}
.gz-create-business__actions{display:flex;justify-content:flex-end}
.gz-create-business__button{min-height:48px;padding:0 22px;border:0;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.gz-create-business__button:disabled{cursor:wait;opacity:.6}
.gz-create-business__message{min-height:22px;line-height:1.45}
.gz-create-business__message.is-success,.gz-create-business__message.is-error{font-weight:600}
.gz-create-business__notice{padding:18px;border:1px solid #ddd;border-radius:10px}
@media(max-width:640px){.gz-create-business{padding:24px 16px 36px}.gz-create-business__actions{justify-content:stretch}.gz-create-business__button{width:100%}}

/*
 * SECCIÓN CONFIRMACIÓN:
 * Responsabilidad: destacar claramente el resultado del guardado.
 */
.gz-create-business__message.is-success {
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    line-height: 1.55;
}

/*
 * SECCIÓN FASES:
 * Responsabilidad: ocultar y ordenar visualmente las fases del asistente.
 */
.gz-create-business__phase[hidden] { display: none !important; }

.gz-create-business__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gz-create-business__back {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.gz-create-business__message.is-success {
    background: #eef9f0;
    border-color: #cfe9d3;
}

/*
 * SECCIÓN MENSAJES DE ERROR Y ADVERTENCIA:
 * Responsabilidad: diferenciar visualmente errores/advertencias de la información normal.
 * Dependencias: business-create.js añade la clase is-error.
 * Límite: no altera el contrato de mensajes; solo mejora su visibilidad.
 */
.gz-create-business__message.is-error {
    margin-top: 4px;
    padding: 14px 16px;
    border: 1px solid #f0b8b8;
    border-radius: 10px;
    background: #fff0f0;
    color: #9b1c1c;
    font-weight: 700;
    line-height: 1.55;
}

/* SECCIÓN UX EDICIÓN: navegación clara sin depender del menú lateral. */
.gz-create-business__topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
.gz-create-business__dashboard,.gz-create-business__my-businesses{font-size:14px;font-weight:700;text-decoration:none}
.gz-create-business__my-businesses{opacity:.75}
.gz-create-business__choice{display:grid;gap:10px}
.gz-create-business__choice label{display:flex;gap:10px;align-items:center;padding:13px 15px;border:1px solid #ddd;border-radius:10px;background:#fff}
@media(max-width:640px){.gz-create-business__topbar{align-items:flex-start;flex-direction:column}}

/**
 * SECCIÓN CATEGORÍAS:
 * Responsabilidad: resultados de búsqueda y selecciones de Fase 4.
 * Dependencias: business-create.js.
 */
.gz-category-results,.gz-category-selected{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gz-category-results label,.gz-category-selected label{display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid #e2e2e2;border-radius:9px;background:#fff;font-size:14px}
.gz-category-results:empty,.gz-category-selected:empty{display:none}

/**
 * SECCIÓN CATEGORÍAS:
 * Responsabilidad: mostrar resultados pulsables y categorías seleccionadas.
 * Dependencias: business-create.js.
 */
.gz-category-results{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.gz-category-result{padding:11px 13px;text-align:left;border:1px solid #ddd;border-radius:9px;background:#fff;cursor:pointer;font:inherit}
.gz-category-selected{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gz-category-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #ddd;border-radius:999px;background:#f7f7f7}
.gz-category-chip input{display:none}
.gz-category-chip button{border:0;background:transparent;cursor:pointer;font-size:18px;line-height:1;padding:0}


/**
 * SECCIÓN MEDIA:
 * Responsabilidad: galería visual, acciones de portada/logo y estados de carga.
 * Dependencias: business-create.js.
 */
.gz-media-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.gz-media-item{position:relative;overflow:hidden;border:1px solid #ddd;border-radius:12px;background:#f7f7f7;aspect-ratio:1/1}
.gz-media-item img{display:block;width:100%;height:100%;object-fit:cover}
.gz-media-item__actions{position:absolute;left:7px;right:7px;bottom:7px;display:flex;gap:5px;justify-content:flex-end}
.gz-media-item__actions button{width:32px;height:32px;border:1px solid rgba(0,0,0,.12);border-radius:8px;background:rgba(255,255,255,.94);font-size:16px;cursor:pointer}
.gz-media-item.is-primary{outline:3px solid currentColor;outline-offset:-3px}
.gz-media-item.is-primary:before{content:'Principal';position:absolute;z-index:2;top:7px;left:7px;padding:4px 7px;border-radius:7px;background:#fff;font-size:11px;font-weight:700}
.gz-media-upload-status{min-height:24px;margin-top:8px;font-size:14px}
.gz-media-logo{min-height:80px;display:flex;align-items:center;gap:12px;padding:12px;border:1px dashed #d8d8d8;border-radius:10px}
.gz-media-logo img{width:80px;height:80px;object-fit:cover;border-radius:10px}
.gz-social-field{gap:6px}
@media(max-width:640px){.gz-media-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}


/*
 * SECCIÓN HORARIO:
 * Responsabilidad: presentar de forma clara las opciones del contrato de Horario.
 * Límite: solo presentación; no contiene reglas de negocio.
 */
.gz-hours-row{border:1px solid #e2e2e2;border-radius:14px;padding:16px;margin:0 0 12px;background:#fff}
.gz-hours-row__title{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:12px}
.gz-hours-row__times{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.gz-hours-row label{font-size:14px}
.gz-hours-row input[type="time"]{display:block;width:100%;margin-top:6px}
.gz-hours-toggle{display:flex;align-items:center;gap:8px}
@media(max-width:640px){.gz-hours-row__title{align-items:flex-start;flex-direction:column}.gz-hours-row__times{grid-template-columns:1fr}}


/*
 * SECCIÓN REVISIÓN FINAL:
 * Responsabilidad: presentar el resumen de Fase 9 de forma legible en escritorio y móvil.
 * Límite: solo presentación; no contiene validación ni envío.
 */
.gz-create-business__summary{display:grid;gap:0;border:1px solid #e2e2e2;border-radius:14px;overflow:hidden;background:#fff}
.gz-create-business__summary>div{display:grid;grid-template-columns:minmax(150px,.35fr) 1fr;gap:18px;padding:14px 16px;border-bottom:1px solid #eee}
.gz-create-business__summary>div:last-child{border-bottom:0}
.gz-create-business__summary strong{font-size:14px}
.gz-create-business__summary span{line-height:1.5;overflow-wrap:anywhere}
@media(max-width:640px){.gz-create-business__summary>div{grid-template-columns:1fr;gap:5px}}


/**
 * SECCIÓN MAPA:
 * Responsabilidad: presentación del mapa y sus resultados de búsqueda.
 * Dependencias: Leaflet cargado por class-gz-business-create.php.
 */
.gz-map-search{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
.gz-map-search input{width:100%;box-sizing:border-box;padding:14px 15px;border:1px solid #d8d8d8;border-radius:10px;background:#fff;font:inherit}
.gz-business-map{width:100%;height:380px;margin-top:12px;border:1px solid #ddd;border-radius:14px;overflow:hidden;background:#f3f3f3}
.gz-map-results{display:grid;gap:6px;margin-top:8px;max-height:220px;overflow:auto}
.gz-map-result{padding:11px 13px;text-align:left;border:1px solid #ddd;border-radius:9px;background:#fff;cursor:pointer;font:inherit;line-height:1.4}
.gz-map-status{min-height:22px;margin-top:8px;font-size:14px;line-height:1.45}
.gz-create-business__exit-final{display:block;width:max-content;margin:4px auto 0;font-size:14px;font-weight:700;text-decoration:none}
@media(max-width:640px){.gz-map-search{grid-template-columns:1fr}.gz-map-search .gz-create-business__back{width:100%}.gz-business-map{height:320px}}
