/* ===================================================================
   eBosc63 — Frontend Public CSS  v2.0
   Diseño iOS-inspired — moderno, animado, responsive
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── Variables iOS-inspired ──────────────────────────────────────── */
:root {
	/* Colores base */
	--eb-blue:        #007AFF;
	--eb-blue-dark:   #0062CC;
	--eb-blue-soft:   rgba(0,122,255,.12);
	--eb-blue-mid:    rgba(0,122,255,.22);
	--eb-green:       #34C759;
	--eb-green-soft:  rgba(52,199,89,.12);
	--eb-red:         #FF3B30;
	--eb-red-soft:    rgba(255,59,48,.10);
	--eb-orange:      #FF9500;
	--eb-orange-soft: rgba(255,149,0,.12);
	--eb-yellow:      #FFCC00;
	--eb-purple:      #AF52DE;

	/* Grises */
	--eb-gray-50:   #F2F2F7;
	--eb-gray-100:  #E5E5EA;
	--eb-gray-200:  #C7C7CC;
	--eb-gray-400:  #98989F;
	--eb-gray-500:  #6C6C70;
	--eb-gray-700:  #3A3A3C;
	--eb-gray-900:  #1C1C1E;

	/* Radios al estilo iOS */
	--eb-radius-xs: 6px;
	--eb-radius-sm: 10px;
	--eb-radius:    16px;
	--eb-radius-lg: 24px;
	--eb-radius-xl: 30px;

	/* Sombras suaves */
	--eb-shadow-sm: 0 2px 8px rgba(0,0,0,.07);
	--eb-shadow:    0 4px 16px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.05);
	--eb-shadow-md: 0 8px 24px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05);
	--eb-shadow-lg: 0 20px 40px rgba(0,0,0,.14), 0 4px 10px rgba(0,0,0,.07);

	/* Layout */
	--eb-max-width: 680px;

	/* Transiciones */
	--eb-ease:       cubic-bezier(.4,0,.2,1);
	--eb-spring:     cubic-bezier(.34,1.56,.64,1);
}

/* ─── Base ───────────────────────────────────────────────────────── */
.ebosc63-frontend * { box-sizing: border-box; margin: 0; padding: 0; }

.ebosc63-frontend {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
	color: var(--eb-gray-700);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* ─── Animaciones globales ───────────────────────────────────────── */
@keyframes eb-fade-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes eb-slide-in-right {
	from { opacity: 0; transform: translateX(40px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes eb-slide-in-left {
	from { opacity: 0; transform: translateX(-40px); }
	to   { opacity: 1; transform: translateX(0); }
}
@keyframes eb-scale-in {
	from { opacity: 0; transform: scale(.94); }
	to   { opacity: 1; transform: scale(1); }
}
@keyframes eb-pulse-ring {
	0%   { transform: scale(1); opacity: 1; }
	100% { transform: scale(1.5); opacity: 0; }
}
@keyframes eb-spin {
	to { transform: rotate(360deg); }
}
@keyframes eb-item-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─── Wrapper app (SPA container) ────────────────────────────────── */
.ebosc63-app {
	max-width: var(--eb-max-width);
	margin: 0 auto;
	padding: 0 16px 40px;
}

/* ─── Vistas SPA ─────────────────────────────────────────────────── */
.eb-view { display: none; }
.eb-view.eb-view-active {
	display: block;
	animation: eb-fade-in .35s var(--eb-ease) both;
}
.eb-view.eb-slide-right { animation: eb-slide-in-right .32s var(--eb-ease) both; }
.eb-view.eb-slide-left  { animation: eb-slide-in-left  .32s var(--eb-ease) both; }

/* ─── Navbar flotante iOS ─────────────────────────────────────────── */
.eb-navbar {
	display: flex;
	align-items: center;
	padding: 20px 0 12px;
	gap: 12px;
	position: relative;
}
.eb-navbar-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--eb-gray-900);
	flex: 1;
	text-align: center;
}
.eb-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--eb-blue);
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px 0;
	transition: opacity .15s;
	min-width: 70px;
}
.eb-back-btn:hover { opacity: .7; }
.eb-back-btn svg { transition: transform .2s var(--eb-spring); }
.eb-back-btn:hover svg { transform: translateX(-3px); }
.eb-navbar-action {
	min-width: 70px;
	text-align: right;
}

/* ─── Tarjeta de acceso ──────────────────────────────────────────── */
.ebosc63-access-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 48px 16px 40px;
}
.ebosc63-access-card {
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--eb-radius-lg);
	padding: 40px 36px;
	box-shadow: var(--eb-shadow-lg);
	animation: eb-scale-in .4s var(--eb-spring) both;
}
.ebosc63-access-logo {
	text-align: center;
	margin-bottom: 24px;
}
.eb-app-icon {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	background: linear-gradient(135deg, var(--eb-blue) 0%, #5AC8FA 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
	box-shadow: 0 8px 24px rgba(0,122,255,.3);
	font-size: 2rem;
}
.ebosc63-access-card h1 {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--eb-gray-900);
	text-align: center;
	margin-bottom: 6px;
}
.ebosc63-access-card .eb-subtitle {
	text-align: center;
	color: var(--eb-gray-500);
	font-size: 0.9rem;
	margin-bottom: 28px;
}
.ebosc63-access-card .ebosc63-intro {
	background: var(--eb-gray-50);
	border-radius: var(--eb-radius-sm);
	padding: 14px 16px;
	font-size: 0.85rem;
	color: var(--eb-gray-500);
	margin-bottom: 20px;
	text-align: center;
}

/* ─── Inputs y campos ────────────────────────────────────────────── */
.ebosc63-frontend input[type="text"],
.ebosc63-frontend input[type="email"],
.ebosc63-frontend input[type="tel"],
.ebosc63-frontend input[type="password"],
.ebosc63-frontend input[type="number"],
.ebosc63-frontend input[type="url"],
.ebosc63-frontend select,
.ebosc63-frontend textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1.5px solid var(--eb-gray-100);
	border-radius: var(--eb-radius-sm);
	font-size: 1rem;
	font-family: inherit;
	color: var(--eb-gray-900);
	background: var(--eb-gray-50);
	transition: border-color .2s, box-shadow .2s, background .2s;
	outline: none;
	-webkit-appearance: none;
}
.ebosc63-frontend input:focus,
.ebosc63-frontend select:focus,
.ebosc63-frontend textarea:focus {
	border-color: var(--eb-blue);
	background: #fff;
	box-shadow: 0 0 0 3.5px var(--eb-blue-soft);
}
.ebosc63-frontend input:focus-visible,
.ebosc63-frontend select:focus-visible { outline: none; }
.ebosc63-frontend select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C6C70' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}
.ebosc63-frontend textarea { resize: vertical; min-height: 110px; }
.ebosc63-frontend label {
	display: block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--eb-gray-500);
	margin-bottom: 7px;
}

/* Input de código especial */
#ebosc63-codigo {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 4px;
	text-align: center;
	text-transform: uppercase;
	background: var(--eb-gray-50);
}

/* ─── Campos de formulario ───────────────────────────────────────── */
.ebosc63-field { margin-bottom: 18px; }
.ebosc63-field-hint {
	font-size: 0.78rem;
	color: var(--eb-gray-400);
	margin-top: 5px;
}
.ebosc63-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 18px;
}
.ebosc63-field-full { grid-column: 1 / -1; }

/* ─── Botones ────────────────────────────────────────────────────── */
.ebosc63-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 13px 22px;
	border-radius: var(--eb-radius-sm);
	font-size: 0.95rem;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	border: none;
	transition: transform .18s var(--eb-spring), box-shadow .18s, opacity .15s;
	text-decoration: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.ebosc63-btn:active { transform: scale(.96); }

.ebosc63-btn-primary {
	background: var(--eb-blue);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0,122,255,.32);
}
.ebosc63-btn-primary:hover {
	background: var(--eb-blue-dark);
	box-shadow: 0 6px 20px rgba(0,122,255,.42);
	transform: translateY(-1px);
	color: #fff;
}
.ebosc63-btn-outline {
	background: #fff;
	color: var(--eb-blue);
	border: 1.5px solid var(--eb-gray-100);
	box-shadow: var(--eb-shadow-sm);
}
.ebosc63-btn-outline:hover {
	background: var(--eb-blue-soft);
	border-color: var(--eb-blue);
}
.ebosc63-btn-danger {
	background: var(--eb-red);
	color: #fff;
	box-shadow: 0 4px 14px rgba(255,59,48,.25);
}
.ebosc63-btn-ghost {
	background: transparent;
	color: var(--eb-gray-500);
	border: none;
	box-shadow: none;
	padding: 10px 14px;
}
.ebosc63-btn-full { width: 100%; }
.ebosc63-btn:disabled, .ebosc63-btn.loading { opacity: .55; pointer-events: none; }

/* Spinner en botones */
.ebosc63-btn.loading::before {
	content: '';
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: eb-spin .75s linear infinite;
}

/* ─── Badges ─────────────────────────────────────────────────────── */
.ebosc63-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ebosc63-estado-recibida      { background: var(--eb-blue-soft);   color: var(--eb-blue); }
.ebosc63-estado-en_revision   { background: var(--eb-orange-soft); color: var(--eb-orange); }
.ebosc63-estado-en_seguimiento{ background: rgba(175,82,222,.12);  color: var(--eb-purple); }
.ebosc63-estado-trasladada_admin { background: rgba(255,149,0,.12); color: #c07000; }
.ebosc63-estado-cerrada       { background: var(--eb-gray-100);    color: var(--eb-gray-500); }
.ebosc63-badge-danger         { background: var(--eb-red-soft);    color: var(--eb-red); }
.ebosc63-tipo-propietario     { background: var(--eb-blue-soft);   color: var(--eb-blue); }
.ebosc63-tipo-inquilino       { background: var(--eb-green-soft);  color: var(--eb-green); }
.ebosc63-prioridad-alta  { background: var(--eb-red-soft);    color: var(--eb-red); }
.ebosc63-prioridad-normal{ background: var(--eb-blue-soft);   color: var(--eb-blue); }
.ebosc63-prioridad-baja  { background: var(--eb-gray-100);    color: var(--eb-gray-500); }
.ebosc63-estado-lg { font-size: 0.8rem; padding: 4px 12px; border-radius: 20px; }

/* ─── Notices ────────────────────────────────────────────────────── */
.ebosc63-notice {
	padding: 14px 18px;
	border-radius: var(--eb-radius-sm);
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 16px;
	animation: eb-fade-in .25s var(--eb-ease);
}
.ebosc63-notice.success,
.ebosc63-notice-success { background: var(--eb-green-soft); color: #1a6636; border-left: 4px solid var(--eb-green); }
.ebosc63-notice.error,
.ebosc63-notice-error   { background: var(--eb-red-soft);   color: #8b1a1a; border-left: 4px solid var(--eb-red); }
.ebosc63-notice.info,
.ebosc63-notice-info    { background: var(--eb-blue-soft);  color: #1a4490; border-left: 4px solid var(--eb-blue); }

/* ─── Cabecera del panel de vecino ───────────────────────────────── */
.ebosc63-panel-header {
	background: linear-gradient(135deg, var(--eb-blue) 0%, #5AC8FA 100%);
	border-radius: var(--eb-radius-lg);
	padding: 24px 24px 20px;
	margin: 16px 0 20px;
	box-shadow: 0 8px 24px rgba(0,122,255,.28);
	animation: eb-fade-in .4s var(--eb-ease) both;
	position: relative;
	overflow: hidden;
}
.ebosc63-panel-header::before {
	content: '';
	position: absolute;
	top: -30px; right: -30px;
	width: 120px; height: 120px;
	background: rgba(255,255,255,.12);
	border-radius: 50%;
}
.ebosc63-panel-header::after {
	content: '';
	position: absolute;
	bottom: -40px; left: 30px;
	width: 90px; height: 90px;
	background: rgba(255,255,255,.08);
	border-radius: 50%;
}
.ebosc63-panel-welcome {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 16px;
	color: #fff;
	position: relative;
	z-index: 1;
}
.ebosc63-avatar {
	width: 52px; height: 52px;
	background: rgba(255,255,255,.25);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	backdrop-filter: blur(6px);
	flex-shrink: 0;
}
.ebosc63-panel-welcome h2 {
	font-size: 1.2rem;
	font-weight: 800;
	color: #fff;
	margin-bottom: 2px;
}
.ebosc63-panel-welcome p { color: rgba(255,255,255,.8); font-size: 0.85rem; }
.ebosc63-panel-actions {
	display: flex;
	gap: 10px;
	position: relative;
	z-index: 1;
}
.ebosc63-btn-panel-new {
	background: #fff;
	color: var(--eb-blue);
	border-radius: var(--eb-radius-sm);
	padding: 10px 18px;
	font-size: 0.88rem;
	font-weight: 700;
	border: none;
	cursor: pointer;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: transform .2s var(--eb-spring), box-shadow .18s;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.ebosc63-btn-panel-new:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0,0,0,.16);
	color: var(--eb-blue);
}
.ebosc63-btn-logout {
	background: rgba(255,255,255,.2);
	color: #fff;
	border: 1.5px solid rgba(255,255,255,.35);
	border-radius: var(--eb-radius-sm);
	padding: 10px 16px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s;
}
.ebosc63-btn-logout:hover { background: rgba(255,255,255,.28); }

/* ─── Section title ──────────────────────────────────────────────── */
.ebosc63-section-title {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--eb-gray-900);
	margin: 4px 0 14px;
}

/* ─── Tickets list ───────────────────────────────────────────────── */
.ebosc63-tickets-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.ebosc63-ticket-card {
	display: block;
	background: #fff;
	border-radius: var(--eb-radius);
	padding: 18px 20px;
	box-shadow: var(--eb-shadow);
	text-decoration: none;
	color: var(--eb-gray-700);
	border: 1.5px solid transparent;
	transition: transform .22s var(--eb-spring), box-shadow .22s, border-color .18s;
	animation: eb-item-in .35s var(--eb-ease) both;
	cursor: pointer;
}
.ebosc63-ticket-card:nth-child(2) { animation-delay: .05s; }
.ebosc63-ticket-card:nth-child(3) { animation-delay: .10s; }
.ebosc63-ticket-card:nth-child(4) { animation-delay: .15s; }
.ebosc63-ticket-card:nth-child(5) { animation-delay: .20s; }
.ebosc63-ticket-card:hover {
	transform: translateY(-3px) scale(1.005);
	box-shadow: var(--eb-shadow-md);
	border-color: var(--eb-gray-100);
}
.ebosc63-ticket-card:active { transform: scale(.98); }
.ebosc63-ticket-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}
.ebosc63-ticket-id {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--eb-gray-400);
}
.ebosc63-ticket-card-body strong {
	font-size: 1rem;
	font-weight: 700;
	color: var(--eb-gray-900);
	display: block;
	margin-bottom: 4px;
}
.ebosc63-ticket-excerpt {
	font-size: 0.85rem;
	color: var(--eb-gray-500);
}
.ebosc63-ticket-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--eb-gray-50);
	font-size: 0.78rem;
	color: var(--eb-gray-400);
}
.ebosc63-ticket-view-link {
	color: var(--eb-blue);
	font-weight: 700;
	font-size: 0.8rem;
}

/* Left accent por estado */
.ebosc63-estado-card-recibida       { border-left: 4px solid var(--eb-blue); }
.ebosc63-estado-card-en_revision    { border-left: 4px solid var(--eb-orange); }
.ebosc63-estado-card-en_seguimiento { border-left: 4px solid var(--eb-purple); }
.ebosc63-estado-card-trasladada_admin { border-left: 4px solid var(--eb-yellow); }
.ebosc63-estado-card-cerrada        { border-left: 4px solid var(--eb-gray-200); }

/* ─── Empty state ────────────────────────────────────────────────── */
.ebosc63-empty-state {
	text-align: center;
	padding: 60px 20px;
	animation: eb-fade-in .4s var(--eb-ease);
}
.ebosc63-empty-icon { font-size: 3.5rem; display: block; margin-bottom: 16px; }
.ebosc63-empty-state p { color: var(--eb-gray-400); margin-bottom: 20px; font-size: 0.95rem; }
.ebosc63-empty-msg { color: var(--eb-gray-400); font-size: 0.9rem; text-align: center; padding: 24px 0; }

/* ─── Formulario de nueva solicitud ──────────────────────────────── */
.eb-form-card {
	background: #fff;
	border-radius: var(--eb-radius-lg);
	padding: 28px 24px;
	box-shadow: var(--eb-shadow);
	animation: eb-slide-in-right .32s var(--eb-ease) both;
}
.eb-form-card h2, .ebosc63-form-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--eb-gray-900);
	margin-bottom: 4px;
}
.eb-form-card p.ebosc63-form-intro, p.ebosc63-form-intro {
	color: var(--eb-gray-500);
	font-size: 0.875rem;
	margin-bottom: 24px;
}
.ebosc63-field-section {
	background: var(--eb-gray-50);
	border-radius: var(--eb-radius-sm);
	padding: 16px;
	margin-bottom: 14px;
}
.ebosc63-field-section .ebosc63-field:last-child { margin-bottom: 0; }

/* ─── Checkbox personalizado ──────────────────────────────────────── */
.ebosc63-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--eb-gray-700);
	text-transform: none;
	letter-spacing: 0;
}
.ebosc63-checkbox-label input[type="checkbox"] { display: none; }
.ebosc63-checkbox-indicator {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	border: 2px solid var(--eb-gray-200);
	background: #fff;
	flex-shrink: 0;
	transition: all .2s var(--eb-spring);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}
.ebosc63-checkbox-label input:checked + .ebosc63-checkbox-indicator {
	background: var(--eb-blue);
	border-color: var(--eb-blue);
	transform: scale(1.1);
}
.ebosc63-checkbox-label input:checked + .ebosc63-checkbox-indicator::after {
	content: '';
	display: block;
	width: 5px;
	height: 9px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(40deg) translateY(-1px);
}
.ebosc63-urgent-field {
	background: var(--eb-red-soft);
	border-radius: var(--eb-radius-sm);
	padding: 14px 16px;
	border: 1.5px solid transparent;
	transition: border-color .2s;
}
.ebosc63-urgent-field.is-checked { border-color: var(--eb-red); }
.ebosc63-urgent-hint { color: var(--eb-red); font-size: 0.78rem; margin-top: 8px; }

.ebosc63-info-box {
	background: var(--eb-blue-soft);
	border-radius: var(--eb-radius-sm);
	padding: 12px 16px;
	font-size: 0.85rem;
	color: #1a4490;
	margin-bottom: 14px;
}
.ebosc63-privacy-text {
	background: var(--eb-gray-50);
	border-radius: var(--eb-radius-xs);
	padding: 12px 14px;
	font-size: 0.78rem;
	color: var(--eb-gray-500);
	margin-bottom: 12px;
	max-height: 120px;
	overflow-y: auto;
}

/* ─── Detalle de ticket ──────────────────────────────────────────── */
.ebosc63-ticket-detail-wrap { animation: eb-slide-in-right .32s var(--eb-ease) both; }
.ebosc63-ticket-detail-header {
	background: #fff;
	border-radius: var(--eb-radius-lg);
	padding: 22px 24px;
	margin-bottom: 14px;
	box-shadow: var(--eb-shadow);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.ebosc63-ticket-detail-header h2 {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--eb-gray-900);
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.ebosc63-ticket-detail-body {
	background: #fff;
	border-radius: var(--eb-radius);
	padding: 22px 24px;
	margin-bottom: 14px;
	box-shadow: var(--eb-shadow);
}
.ebosc63-ticket-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	background: var(--eb-gray-50);
	border-radius: var(--eb-radius-sm);
	padding: 16px;
	margin-bottom: 20px;
}
.ebosc63-info-item { display: flex; flex-direction: column; gap: 4px; }
.ebosc63-info-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--eb-gray-400); }
.ebosc63-ticket-asunto h3 { font-size: 1.05rem; font-weight: 800; color: var(--eb-gray-900); margin-bottom: 10px; }
.ebosc63-ticket-descripcion p { font-size: 0.9rem; color: var(--eb-gray-700); line-height: 1.65; }

/* ─── Timeline de comunicaciones ──────────────────────────────────── */
.ebosc63-ticket-timeline {
	background: #fff;
	border-radius: var(--eb-radius);
	padding: 22px 24px;
	box-shadow: var(--eb-shadow);
	margin-bottom: 14px;
}
.ebosc63-ticket-timeline > h3 {
	font-size: 0.98rem;
	font-weight: 800;
	color: var(--eb-gray-900);
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--eb-gray-100);
}
.ebosc63-timeline-item {
	display: flex;
	gap: 14px;
	margin-bottom: 16px;
	animation: eb-item-in .3s var(--eb-ease) both;
}
.ebosc63-timeline-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--eb-blue);
	flex-shrink: 0;
	margin-top: 14px;
	position: relative;
}
.ebosc63-timeline-dot::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%,-50%);
	width: 100%; height: 100%;
	border-radius: 50%;
	background: inherit;
}
.ebosc63-seg-admin .ebosc63-timeline-dot { background: var(--eb-blue); }
.ebosc63-seg-vecino .ebosc63-timeline-dot { background: var(--eb-green); }
.ebosc63-timeline-body { flex: 1; }
.ebosc63-seg-admin .ebosc63-timeline-body {
	background: var(--eb-blue-soft);
	border: 1px solid var(--eb-blue-mid);
	border-radius: 0 var(--eb-radius-sm) var(--eb-radius-sm) var(--eb-radius-sm);
	padding: 12px 16px;
}
.ebosc63-seg-vecino .ebosc63-timeline-body {
	background: var(--eb-green-soft);
	border: 1px solid rgba(52,199,89,.22);
	border-radius: 0 var(--eb-radius-sm) var(--eb-radius-sm) var(--eb-radius-sm);
	padding: 12px 16px;
}
.ebosc63-timeline-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.ebosc63-timeline-meta strong { font-size: 0.85rem; color: var(--eb-gray-700); }
.ebosc63-timeline-fecha { font-size: 0.75rem; color: var(--eb-gray-400); margin-left: auto; }
.ebosc63-timeline-body > p { font-size: 0.9rem; color: var(--eb-gray-700); line-height: 1.6; }
.ebosc63-seg-adjunto {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 8px;
	font-size: 0.8rem;
	color: var(--eb-blue);
	font-weight: 600;
	text-decoration: none;
}
.ebosc63-seg-adjunto:hover { text-decoration: underline; }

/* ─── Formulario de respuesta del vecino ─────────────────────────── */
.ebosc63-reply-wrap {
	background: #fff;
	border-radius: var(--eb-radius);
	padding: 22px 24px;
	box-shadow: var(--eb-shadow);
	margin-bottom: 14px;
	animation: eb-fade-in .4s var(--eb-ease) .12s both;
}
.ebosc63-reply-wrap h3 {
	font-size: 0.98rem;
	font-weight: 800;
	color: var(--eb-gray-900);
	margin-bottom: 4px;
}
.ebosc63-reply-wrap > .description {
	color: var(--eb-gray-400);
	font-size: 0.85rem;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--eb-gray-100);
}
.ebosc63-form-group { margin-bottom: 16px; }
.ebosc63-form-group label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--eb-gray-400);
	margin-bottom: 6px;
	display: block;
}
.ebosc63-form-group textarea { min-height: 90px; }
.ebosc63-form-group .description { font-size: 0.75rem; color: var(--eb-gray-400); margin-top: 4px; }
.ebosc63-reply-closed {
	background: var(--eb-gray-50);
	border-radius: var(--eb-radius-sm);
	padding: 18px 22px;
	margin-top: 12px;
	color: var(--eb-gray-500);
	font-size: 0.9rem;
	text-align: center;
}

/* ─── Sección de acceso rápido ───────────────────────────────────── */
.ebosc63-access-code-group {
	position: relative;
	margin-bottom: 20px;
}
.ebosc63-access-code-group svg {
	position: absolute;
	left: 14px; top: 50%; transform: translateY(-50%);
	color: var(--eb-gray-400);
	pointer-events: none;
}

/* ─── Back link general ──────────────────────────────────────────── */
.ebosc63-back-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--eb-blue);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 16px;
	padding: 6px 0;
	transition: opacity .15s;
}
.ebosc63-back-link:hover { opacity: .7; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.ebosc63-access-card { padding: 32px 24px; }
	.ebosc63-panel-header { padding: 20px 18px 16px; }
	.ebosc63-panel-actions { flex-direction: column; }
	.ebosc63-form-grid { grid-template-columns: 1fr; }
	.ebosc63-ticket-info-grid { grid-template-columns: 1fr 1fr; }
	.ebosc63-ticket-detail-header { flex-direction: column; align-items: flex-start; }
	.eb-form-card { padding: 22px 18px; }
	.ebosc63-ticket-detail-body,
	.ebosc63-ticket-timeline,
	.ebosc63-reply-wrap { padding: 18px 16px; }
}

@media (max-width: 380px) {
	.ebosc63-ticket-info-grid { grid-template-columns: 1fr; }
	.ebosc63-panel-header { border-radius: var(--eb-radius); }
}

/* ─── Admin CSS: responsive settings ────────────────────────────── */
.ebosc63-repeated-row { animation: eb-item-in .25s var(--eb-ease) both; }

/* ═══════════════════════════════════════════════════════════════════
   MEJORAS iOS v3.0 — Chat bubbles, spring animations, mobile
   ═══════════════════════════════════════════════════════════════════ */

/* ── Animación SPA mejorada con curva iOS ──────────────────────── */
/* La curva iOS real para swipe (0.25, 0.46, 0.45, 0.94) */
:root {
	--eb-ios-curve: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--eb-ios-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--eb-ios-decel: cubic-bezier(0.0, 0.0, 0.2, 1);
}

.eb-view.eb-view-active { animation-timing-function: var(--eb-ios-curve); animation-duration: .38s; }
.eb-view.eb-slide-right  { animation-timing-function: var(--eb-ios-curve); animation-duration: .34s; }
.eb-view.eb-slide-left   { animation-timing-function: var(--eb-ios-curve); animation-duration: .34s; }

/* ── Micro-animaciones en botones ──────────────────────────────── */
.ebosc63-btn {
	transition:
		transform .18s var(--eb-ios-spring),
		box-shadow .18s var(--eb-ios-curve),
		background .15s,
		opacity .15s;
}
.ebosc63-btn:not(:disabled):not(.loading):hover {
	transform: translateY(-1px) scale(1.01);
}
.ebosc63-btn:not(:disabled):not(.loading):active {
	transform: scale(.96) translateY(0);
	transition-duration: .08s;
}

/* ── Tarjetas: animación de entrada tipo card-enter ────────────── */
@keyframes eb-card-enter {
	from { opacity: 0; transform: scale(0.97) translateY(10px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ebosc63-access-card { animation: eb-card-enter .42s var(--eb-ios-spring) both; }
.eb-form-card        { animation: eb-card-enter .38s var(--eb-ios-curve) both; }
.ebosc63-ticket-detail-header,
.ebosc63-ticket-detail-body,
.ebosc63-ticket-timeline,
.ebosc63-reply-wrap {
	animation: eb-card-enter .36s var(--eb-ios-curve) both;
}
.ebosc63-ticket-detail-body { animation-delay: .04s; }
.ebosc63-ticket-timeline    { animation-delay: .08s; }
.ebosc63-reply-wrap         { animation-delay: .12s; }

/* ── Chat bubbles iMessage ─────────────────────────────────────── */
/* Keyframe para inserción de mensaje nuevo por AJAX */
@keyframes eb-bubble-in {
	from { opacity: 0; transform: translateY(14px) scale(.96); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.eb-chat-new { opacity: 0; transform: translateY(14px) scale(.96); }
.eb-chat-new.eb-chat-visible {
	animation: eb-bubble-in .4s var(--eb-ios-spring) forwards;
}

/* Estilo iMessage: admin (izquierda, azul) vs vecino (derecha, verde) */
.eb-chat-bubble {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}

/* Admin → burbuja en el lado izquierdo */
.eb-chat-bubble.ebosc63-seg-admin {
	flex-direction: row;
	align-items: flex-start;
}
.eb-chat-bubble.ebosc63-seg-admin .ebosc63-timeline-dot {
	order: -1;
	margin-top: 16px;
}
.eb-chat-bubble.ebosc63-seg-admin .ebosc63-timeline-body {
	background: linear-gradient(135deg, rgba(0,122,255,.10) 0%, rgba(90,200,250,.10) 100%);
	border: 1px solid rgba(0,122,255,.18);
	border-radius: 4px var(--eb-radius-sm) var(--eb-radius-sm) var(--eb-radius-sm);
	max-width: 88%;
	box-shadow: 0 2px 8px rgba(0,122,255,.08);
}

/* Vecino → burbuja en el lado derecho */
.eb-chat-bubble.ebosc63-seg-vecino {
	flex-direction: row-reverse;
	align-items: flex-start;
}
.eb-chat-bubble.ebosc63-seg-vecino .ebosc63-timeline-dot {
	margin-top: 16px;
}
.eb-chat-bubble.ebosc63-seg-vecino .ebosc63-timeline-body {
	background: linear-gradient(135deg, rgba(52,199,89,.12) 0%, rgba(48,209,88,.08) 100%);
	border: 1px solid rgba(52,199,89,.22);
	border-radius: var(--eb-radius-sm) 4px var(--eb-radius-sm) var(--eb-radius-sm);
	max-width: 88%;
	box-shadow: 0 2px 8px rgba(52,199,89,.08);
}
.eb-chat-bubble.ebosc63-seg-vecino .ebosc63-timeline-meta {
	flex-direction: row-reverse;
}
.eb-chat-bubble.ebosc63-seg-vecino .ebosc63-timeline-fecha {
	margin-left: 0;
	margin-right: auto;
}

/* Cambios de estado: sin burbuja chat, estilo pill centrado */
.ebosc63-seg-cambio_estado:not(.eb-chat-bubble) .ebosc63-timeline-body,
.eb-chat-bubble.ebosc63-seg-cambio_estado .ebosc63-timeline-body {
	background: var(--eb-gray-50);
	border: 1px dashed var(--eb-gray-100);
	border-radius: var(--eb-radius-sm);
	font-size: 0.82rem;
	color: var(--eb-gray-500);
}

/* ── Timeline general (sin clase chat) — fallback limpio ─────── */
.ebosc63-timeline-item:not(.eb-chat-bubble) .ebosc63-timeline-body {
	background: var(--eb-gray-50);
	border: 1px solid var(--eb-gray-100);
	border-radius: var(--eb-radius-sm);
	padding: 12px 16px;
}

/* ── Lista de tickets: hover mejorado ──────────────────────────── */
.ebosc63-ticket-card {
	transition:
		transform .24s var(--eb-ios-spring),
		box-shadow .24s var(--eb-ios-curve),
		border-color .18s;
}
.ebosc63-ticket-card:hover {
	transform: translateY(-4px) scale(1.008);
	box-shadow: var(--eb-shadow-md);
}

/* ── Responsive mejorado < 480px ──────────────────────────────── */
@media (max-width: 480px) {
	.ebosc63-access-card { padding: 28px 20px; border-radius: var(--eb-radius); }
	.ebosc63-access-card h1 { font-size: 1.35rem; }
	.ebosc63-panel-header { padding: 18px 16px 14px; border-radius: var(--eb-radius); }
	.ebosc63-panel-welcome h2 { font-size: 1.05rem; }
	.eb-form-card { padding: 20px 16px; }
	.ebosc63-ticket-detail-header,
	.ebosc63-ticket-detail-body,
	.ebosc63-ticket-timeline,
	.ebosc63-reply-wrap { padding: 16px; border-radius: var(--eb-radius-sm); }
	.ebosc63-ticket-info-grid {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		padding: 12px;
	}
	.eb-chat-bubble.ebosc63-seg-admin .ebosc63-timeline-body,
	.eb-chat-bubble.ebosc63-seg-vecino .ebosc63-timeline-body {
		max-width: 95%;
	}
	.eb-navbar { padding: 14px 0 10px; }
	.eb-back-btn { font-size: 0.82rem; }
	.ebosc63-section-title { font-size: 1rem; }
	.ebosc63-btn { padding: 12px 18px; font-size: 0.9rem; }
	.ebosc63-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
	.ebosc63-ticket-info-grid { grid-template-columns: 1fr; gap: 8px; }
	.ebosc63-avatar { width: 42px; height: 42px; font-size: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   TRACKER — Línea de tiempo estilo seguimiento de envío
   ═══════════════════════════════════════════════════════════════════ */

.eb-tracker-wrap {
	background: #fff;
	border-radius: var(--eb-radius);
	padding: 22px 24px 20px;
	margin-bottom: 14px;
	box-shadow: var(--eb-shadow);
	animation: eb-card-enter .34s var(--eb-ios-curve) .02s both;
	overflow: auto;
}

/* Track horizontal */
.eb-tracker {
	display: flex;
	align-items: flex-start;
	gap: 0;
	position: relative;
	min-width: 320px;
}

/* Cada paso */
.eb-tracker-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	position: relative;
}

/* Contenedor del icono + línea */
.eb-tracker-icon-wrap {
	display: flex;
	align-items: center;
	width: 100%;
	position: relative;
	margin-bottom: 10px;
}

.eb-tracker-icon {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	background: var(--eb-gray-100);
	color: var(--eb-gray-500);
	transition: background .3s, box-shadow .3s;
}

/* Línea conectora entre pasos */
.eb-tracker-line {
	flex: 1;
	height: 3px;
	background: var(--eb-gray-100);
	border-radius: 2px;
	transition: background .4s ease;
}
.eb-tracker-line.eb-line-done {
	background: linear-gradient(90deg, var(--eb-blue) 0%, rgba(0,122,255,.5) 100%);
}

/* Estado: completado */
.eb-step-done .eb-tracker-icon.eb-step-check {
	background: var(--eb-blue);
	color: #fff;
	box-shadow: 0 3px 10px rgba(0,122,255,.3);
}

/* Estado: actual (con pulso) */
@keyframes eb-tracker-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(0,122,255,.4); }
	70%  { box-shadow: 0 0 0 10px rgba(0,122,255,.0); }
	100% { box-shadow: 0 0 0 0 rgba(0,122,255,.0); }
}

.eb-step-current .eb-tracker-icon.eb-step-pulse {
	background: linear-gradient(135deg, var(--eb-blue) 0%, #5AC8FA 100%);
	color: #fff;
	font-size: 1rem;
	animation: eb-tracker-pulse 1.8s ease-in-out infinite;
	box-shadow: 0 3px 12px rgba(0,122,255,.35);
}

/* Estado: futuro */
.eb-step-future .eb-tracker-icon {
	background: var(--eb-gray-50);
	border: 2px solid var(--eb-gray-100);
	font-size: 1rem;
	opacity: .6;
}

/* Etiquetas de texto */
.eb-tracker-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--eb-gray-400);
	line-height: 1.3;
	padding: 0 4px;
	transition: color .3s;
}
.eb-step-done .eb-tracker-label { color: var(--eb-blue); }
.eb-step-current .eb-tracker-label.eb-label-current { color: var(--eb-blue); font-weight: 700; }
.eb-step-future .eb-tracker-label { color: var(--eb-gray-200); }

/* Badge "Estado actual" */
.eb-tracker-now {
	display: block;
	margin-top: 3px;
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--eb-blue);
	text-transform: uppercase;
	letter-spacing: .04em;
	background: var(--eb-blue-soft);
	border-radius: 10px;
	padding: 1px 6px;
}

/* Responsive tracker: reducir tamaño en móvil */
@media (max-width: 480px) {
	.eb-tracker-wrap { padding: 16px 12px 14px; }
	.eb-tracker-icon { width: 32px; height: 32px; font-size: 0.9rem; }
	.eb-tracker-label { font-size: 0.65rem; }
	.eb-tracker-now { font-size: 0.6rem; padding: 1px 5px; }
	.eb-tracker-line { height: 2px; }
}


