.gc-catalogo-wrap {
	max-width: 1100px;
	margin: 20px auto;
	padding: 0 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.gc-catalogo-buscador {
	display: flex;
	gap: 8px;
	margin-bottom: 0;
	flex-wrap: wrap;
	flex: 1;
}
.gc-catalogo-buscador input[type="text"] {
	flex: 1;
	min-width: 220px;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.gc-catalogo-buscador button {
	padding: 9px 18px;
}

.gc-catalogo-toolbar {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.gc-catalogo-vista-toggle {
	display: flex;
	border: 1px solid #ccc;
	border-radius: 5px;
	overflow: hidden;
}
.gc-vista-btn {
	background: #fff;
	border: none;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	border-right: 1px solid #ccc;
}
.gc-vista-btn:last-child { border-right: none; }
.gc-vista-btn.gc-vista-activa {
	background: #2271b1;
	color: #fff;
}

.gc-catalogo-aviso-admin {
	background: #fff8e5;
	border: 1px solid #f0d78c;
	color: #7a5b00;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
	margin-bottom: 16px;
}

.gc-catalogo-vacio {
	color: #777;
}

.gc-catalogo-cargando {
	text-align: center;
	color: #888;
	font-size: 13px;
	padding: 16px 0;
}
.gc-catalogo-sentinel {
	height: 1px;
}

.gc-ver-tomos-btn {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 8px 14px;
	font-size: 13px;
	cursor: pointer;
	margin-top: auto;
	align-self: flex-start;
}
.gc-ver-tomos-btn:hover { background: #185a8a; }

body.gc-modal-abierto { overflow: hidden; }

.gc-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.gc-modal-box {
	background: #fff;
	border-radius: 8px;
	max-width: 420px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 24px 20px 20px;
	position: relative;
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.gc-modal-cerrar {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	padding: 4px;
}
.gc-modal-cerrar:hover { color: #000; }
.gc-modal-titulo {
	margin: 0 24px 14px 0;
	font-size: 16px;
}
.gc-modal-contenido .gc-manga-tomos { border-top: none; }
.gc-modal-contenido .gc-otro-tomo { border-top: 1px dashed #e2e2e2; }

.gc-otro-tomo {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #e2e2e2;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}
.gc-otro-tomo-input {
	flex: 1;
	min-width: 0;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 12px;
}
.gc-otro-tomo-btn {
	background: #fff;
	border: 1px solid #25D366;
	color: #1fa855;
	border-radius: 14px;
	padding: 5px 12px;
	font-size: 12px;
	cursor: pointer;
	white-space: nowrap;
}
.gc-otro-tomo-btn:hover { background: #eafbef; }

.gc-catalogo-tabla {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 13px;
}
.gc-catalogo-tabla th, .gc-catalogo-tabla td {
	padding: 8px 10px;
	border: 1px solid #e5e5e5;
	text-align: left;
}
.gc-catalogo-tabla thead th {
	background: #f5f6f8;
	font-weight: 700;
	border-bottom: 2px solid #ddd;
}
.gc-catalogo-tabla tbody tr:nth-child(even) { background: #fafafa; }
.gc-celda-disponible { color: #1e8e3e; font-weight: 600; }
.gc-celda-agotada { color: #b3261e; }

.gc-catalogo-contacto {
	margin-top: 30px;
	border: 1px solid #e2e6ea;
	border-radius: 8px;
	padding: 14px 16px;
	background: #f7f9fb;
}
.gc-catalogo-contacto summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
}
.gc-contacto-campos {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}
.gc-contacto-campos input {
	flex: 1;
	min-width: 160px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.gc-contacto-campos button {
	border: none;
	cursor: pointer;
}

.gc-manga-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.gc-manga-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 14px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	display: flex;
	flex-direction: column;
}

.gc-manga-portada {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 10px;
	background: #f2f2f2;
}
.gc-manga-portada-vacia {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
	font-size: 13px;
}

.gc-manga-card h3 {
	font-size: 15px;
	margin: 0 0 4px;
	line-height: 1.3;
}
.gc-manga-meta {
	font-size: 12px;
	color: #777;
	margin: 0 0 8px;
}
.gc-manga-desc {
	font-size: 13px;
	color: #444;
	margin: 0 0 10px;
	flex-grow: 1;
}
.gc-manga-sin-tomos {
	font-size: 13px;
	color: #999;
	font-style: italic;
}

.gc-manga-tomos {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #f0f0f0;
}
.gc-manga-tomos li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding: 7px 0;
	border-bottom: 1px solid #f5f5f5;
	font-size: 13px;
	flex-wrap: wrap;
}
.gc-tomo-nombre { font-weight: 600; }
.gc-tomo-estado { color: #777; font-size: 12px; flex-grow: 1; }
.gc-tomo-disponible .gc-tomo-estado { color: #1e8e3e; }
.gc-tomo-agotado .gc-tomo-estado { color: #b3261e; }

.gc-btn-whatsapp {
	display: inline-block;
	background: #25D366;
	color: #fff !important;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}
.gc-btn-whatsapp:hover { background: #1fa855; color: #fff; }
.gc-tomo-btn { margin-left: auto; }

.gc-catalogo-paginacion {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 26px;
	flex-wrap: wrap;
}
.gc-catalogo-paginacion a {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 13px;
}
.gc-catalogo-paginacion a.gc-pagina-actual {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

@media (max-width: 480px) {
	.gc-manga-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
	.gc-manga-card { padding: 10px; }
	.gc-catalogo-toolbar { flex-direction: column; align-items: stretch; }
	.gc-catalogo-buscador { flex-direction: column; }
	.gc-catalogo-buscador input[type="text"] { width: 100%; box-sizing: border-box; }
	.gc-catalogo-vista-toggle { align-self: flex-start; }
	.gc-contacto-campos { flex-direction: column; }
	.gc-contacto-campos input { width: 100%; box-sizing: border-box; }
}

@media (max-width: 700px) {
	.gc-catalogo-tabla-wrap-scroll,
	.gc-catalogo-tabla { display: block; overflow-x: auto; white-space: nowrap; }
}
