/* =========================
   CATEGORÍAS
========================= */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}
.category {
    margin: 0;
    border: 1px solid #e0ecf8;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

.category:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.category-content {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.category-info {
    flex-grow: 1;
}



/* =========================
   RESET Y BASE
========================= */
html, body {
	height: 100%;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	margin: 0;
	font-size: 16px;
	font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
	color: #333;
	line-height: 1.6;
	padding: 0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	word-break: break-word;
}

ul li { list-style: none; }

a, a:active, a:visited {
	padding: 0;
	font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
	font-style: normal;
	color: #336699;
	font-weight: 500;
	font-size: 1rem;
	transition: 0.3s;
	text-decoration: none;
}

a:hover {
	color: #2c3e50;
	text-decoration: underline;
	background-color: transparent;
}

/* =========================
   TIPOGRAFÍA Y ENCABEZADOS
========================= */
h1 {
	color: #336699;
	font-family: 'Lora', serif;
	font-size: 2rem;
	background: transparent;
	border-bottom: 1px solid #336699;
	font-weight: normal;
	text-align: center;
}

h2 {
	color: #2c3e50;
	font-family: 'Lora', serif;
	font-size: 1.5rem;
	font-weight: 600;
	padding: 4px 0;
	text-align: left;
	margin-bottom: 8px;
	line-height: 1.3;
	border-bottom: 1px solid #e0ecf8;
}

h3 {
	font-family: 'Lora', serif;
	padding: 3px 0;
	color: #336699;
	font-size: 1.2rem;
	text-align: center;
	font-weight: normal;
}

h4 {
	background: transparent;
	font-family: 'Oswald', sans-serif;
	font-size: 1.125rem;
}

h2 a { color: #336699; }
h2 a:visited,
h3 a:visited { color: #336699; }

.hero-info {
	font-size: 0.9rem;
	margin: 15px 0 5px;
}

#content {
	max-width: 1200px;
	margin: 2px auto;
	padding: 0 20px;
	font-style: normal;
}

#content p {
	margin: 0.8em 0;
	font-size: 1rem;
	line-height: 1.5;
}

#content p:first-letter { text-transform: uppercase; }

.label { font-weight: bold; }

blockquote {
	border: 1px solid #EEE;
	margin: 10px auto;
	padding: 15px;
	width: 90%;
	background: #f9f9f9;
}

/* =========================
   FORMULARIOS Y BOTONES
========================= */
input, textarea, select {
	border: 1px solid #999;
	font-family: Calibri, Tahoma, sans-serif;
	font-size: 1em;
	margin: 1px;
	padding: 1px;
	vertical-align: middle;
}

.button, button,
#sortform input[type="submit"],
#sortform button {
	text-align: center;
	cursor: pointer;
	border: 1px solid #999;
	border-radius: 5px;
	margin: 0 auto;
	padding: 8px;
	font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: 1rem;
	transition: background-color 0.3s, color 0.3s;
}

/* =========================
   CABECERA Y MENÚ
========================= */
.login {
	text-align: right;
	background: #2c3e50;
	color: #fff;
	font-size: 1rem;
	padding: 4px 20px;
}

.login a { color: #fafafa; }

.header {
	background: #fff;
	height: auto;
	padding: 10px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: right center;
}

#sitename {
	color: #2c3e50;
	font-family: 'Lora', serif;
	font-size: 3rem;
	font-weight: normal;
	text-align: left;
	padding: 5px 0 0 30px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#siteslogan {
	color: #2c3e50;
	font-family: 'Lora', serif;
	font-size: 1.5rem;
	margin: -10px 0 20px 30px;
	text-align: left;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

#menu {
	width: 100%;
	background: #2c3e50;
}

#menu ul {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

#menu li {
	margin: 3px 5px;
	padding: 5px 8px;
}

#menu li:hover { background: rgba(255,255,255,0.1); }

#menu a {
	color: #fff;
	font-size: 0.9em;
	font-weight: 500;
	text-decoration: none;
	transition: 0.3s;
}

#menu a:hover {
	color: #fff;
	opacity: 0.9;
}

/* =========================
   FILTROS / SORTFORM
========================= */
#sortform {
	display: block;
	width: 100%;
	text-align: center;
	clear: both;
	margin: 10px auto;
	padding: 5px 0;
}

#sortform form {
	display: inline-block;
	margin: 0 auto;
	max-width: 100%;
}

#sortform select {
	display: inline-block;
	margin: 5px 3px;
	max-width: 100%;
	box-sizing: border-box;
	background: #f8f9fa;
	color: #2c3e50;
	border: 1px solid #999;
	border-radius: 4px;
	padding: 5px 8px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg fill='%232c3e50' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px 16px;
	padding-right: 30px;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

#sortform input[type="submit"],
#sortform button {
	display: inline-block;
	margin: 5px 3px;
	max-width: 100%;
	box-sizing: border-box;
	background: #f8f9fa;
	color: #2c3e50;
	border: 1px solid #999;
	border-radius: 4px;
	padding: 5px 8px;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

#sortform select option {
	background: #fff;
	color: #2c3e50;
}

#sortform select option:checked {
	background: #2c3e50;
	color: #fff;
}

/* =========================
   OTROS ELEMENTOS
========================= */
.footer {
	text-align: center;
	margin-top: 20px;
	padding: 20px 40px;
	background: #2c3e50;
	color: #b8c6d1;
	font-size: 0.875rem;
}

.footer a { color: #fff; text-decoration: underline; }
.footer a:hover { color: #ccc; }

#newsarchive, .respond { text-align: center; }
#newsbox { margin: 0 auto; padding: 10px; }
.newscom {
	background: transparent;
	font-weight: normal;
	text-align: right;
	font-family: 'Open Sans Condensed', sans-serif;
	font-size: 20px;
}
.newssig {
	font-family: calibri,verdana,sans-serif;
	font-style: italic;
	font-size: 9pt;
}

#category { text-align: left !important; }
.catimg { float: left; padding: 3px 6px 3px 0; }
.cat_description { padding: 5px; text-align: center; }

#pagelinks {
  width: 100%;
  text-align: center;
  padding: 1em;
  font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

#pagelinks a,
#pagelinks span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #336699;
  background-color: #336699;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 36px;
  text-align: center;
}

#pagelinks a:hover {
  background-color: #e0ecf8;
  color: #2c3e50;
  border-color: #336699;
}

#pagelinks a#currentpage,
#pagelinks span.current,
a#currentpage {
  background-color: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
  font-weight: bold;
  cursor: default;
}

#pagelinks span.disabled {
  background-color: #b0c4de;
  color: #666;
  border-color: #336699;
  cursor: not-allowed;
}

#pagelinks a.disabled:hover {
  background-color: #b0c4de;
  color: #666;
  border-color: #336699;
  cursor: not-allowed;
}

#alphabet {
	text-align: center;
	padding: 5px;
	font-family: 'Open Sans Condensed', 'Trebuchet Ms', Verdana, Tahoma, sans-serif;
	font-size: 1.2rem;
}

#jumpmenu { text-align: right; }

#story {
	background: #fff;
	width: 90%;
	margin: 20px auto;
	padding: 20px;
	border-radius: 8px;
	font-size: 1.1265rem !important;
	line-height: 1.5;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	text-align: justify;
}

#story * {
	font-size: inherit !important;
}

#login {
	position: absolute;
	top: 4px;
	left: 4px;
	text-align: left;
}

#columncontainer {
	width: 90%;
	text-align: justify;
}

.copyright {
	padding: 5px 0;
	text-transform: uppercase;
	font-size: 10pt;
}

.copyright a:hover { color: #4D4A4B; }

/* =========================
   OTROS
========================= */
body {
	overflow-x: auto;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* =========================
   ESTADO DE HISTORIAS
========================= */
.status-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
    text-transform: capitalize;
    letter-spacing: 0.2px;
}

@media screen and (max-width: 768px) {
    .status-button {
        float: none;
        margin: 5px 0;
        display: inline-block;
        vertical-align: middle;
    }
    
    h2 {
        display: inline-block;
        margin-right: 10px;
        vertical-align: middle;
    }
}

.status-button.Finalizado, .status-button.finalizado {
    background-color: #dcf5e3;
    color: #1b5e20;
    border: none;
}

.status-button.En.proceso, .status-button.en.proceso {
    background-color: #fff3e0;
    color: #e65100;
    border: none;
}

/* Ocultar icono RSS */
a[href*="rss.php"], a[href*="rss.php"] img {
	display: none !important;
}

/* Hero Section */
.hero-section {
	background-color: #2c3e50;
	background: url('/web/20251124010700im_/https://amor-yaoi.com/skins/AmorYaoi/hero/hero001.jpg') center top/cover no-repeat;
	padding: 20px 20px;
	text-align: center;
	position: relative;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.hero-section .hero-content {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}

.hero-section h1 {
	font-family: 'Lora', serif;
	color: #ffffff;
	font-size: 2rem;
	margin-bottom: 15px;
}

.hero-section p {
	font-family: 'Open Sans', sans-serif;
	color: #ffffff;
	font-size: 1.2rem;
	margin-bottom: 20px;
}

.hero-button {
	display: inline-block;
	background-color: transparent;
	color: #fff;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	padding: 12px 24px;
	border-radius: 30px;
	text-decoration: none;
	border: 2px solid #ffffff;
	box-shadow: none;
	transition: all 0.3s ease;
}

.hero-button:hover {
	background-color: #ffffff;
	color: #2c3e50;
}

@media (max-width: 767px) {
	.hero-section {
		padding: 10px 15px;
	}
	.hero-section h1 {
		font-size: 2rem;
	}
	.hero-section p {
		font-size: 1rem;
	}
}

/* =========================
   LOGIN FORM FIX
========================= */
.login label,
.login b {
	display: inline-block;
	min-width: 120px;
	white-space: nowrap;
	vertical-align: top;
}

/* =========================
   FORMULARIO EDITAR PREFERENCIAS
========================= */
form[action*="editprefs"] {
	width: 100% !important;
	max-width: 800px;
	margin: 20px auto !important;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

form[action*="editprefs"] label {
	display: inline-block;
	width: 200px;
	text-align: right;
	margin-bottom: 10px;
	padding-right: 10px;
	vertical-align: top;
}

form[action*="editprefs"] input[type="text"],
form[action*="editprefs"] input[type="password"],
form[action*="editprefs"] input[type="email"],
form[action*="editprefs"] select,
form[action*="editprefs"] textarea {
	width: calc(100% - 220px);
	max-width: 500px;
	box-sizing: border-box;
	margin-bottom: 10px;
	padding: 6px;
	border: 1px solid #999;
	border-radius: 4px;
}

form[action*="editprefs"] input[type="checkbox"] {
	margin-left: 5px;
	margin-right: 5px;
}

form[action*="editprefs"] input[type="submit"],
form[action*="editprefs"] button {
	margin-top: 15px;
	padding: 10px 20px;
	font-size: 1rem;
	border-radius: 5px;
	cursor: pointer;
	background-color: #2c3e50;
	color: #fff;
	border: none;
	transition: background-color 0.3s ease;
}

form[action*="editprefs"] input[type="submit"]:hover,
form[action*="editprefs"] button:hover {
	background-color: #224466;
}

@media (max-width: 767px) {
	form[action*="editprefs"] label {
		display: block;
		width: 100%;
		text-align: left;
		margin-bottom: 5px;
	}
	form[action*="editprefs"] input[type="text"],
	form[action*="editprefs"] input[type="password"],
	form[action*="editprefs"] input[type="email"],
	form[action*="editprefs"] select,
	form[action*="editprefs"] textarea {
		width: 100%;
		max-width: 100%;
	}
}
/* =========================
   FORMULARIO NUEVA HISTORIA MEJORADO
========================= */
form[action*="newstory"] {
	width: 100% !important;
	max-width: 1400px;
	margin: 20px auto !important;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

form[action*="newstory"] label {
	display: inline-block;
	width: 200px;
	text-align: right;
	margin-bottom: 10px;
	padding-right: 10px;
	vertical-align: top;
}

form[action*="newstory"] input[type="text"],
form[action*="newstory"] input[type="password"],
form[action*="newstory"] input[type="email"],
form[action*="newstory"] select,
form[action*="newstory"] textarea {
	width: calc(100% - 220px);
	max-width: 1200px;
	box-sizing: border-box;
	margin-bottom: 15px;
	padding: 8px;
	border: 1px solid #999;
	border-radius: 4px;
}

form[action*="newstory"] textarea {
	min-height: 200px;
	resize: vertical;
}

form[action*="newstory"] input[type="submit"],
form[action*="newstory"] button {
	margin-top: 15px;
	padding: 10px 20px;
	font-size: 1rem;
	border-radius: 5px;
	cursor: pointer;
	background-color: #2c3e50;
	color: #fff;
	border: none;
	transition: background-color 0.3s ease;
}

form[action*="newstory"] input[type="submit"]:hover,
form[action*="newstory"] button:hover {
	background-color: #224466;
}

@media (max-width: 767px) {
	form[action*="newstory"] label {
		display: block;
		width: 100%;
		text-align: left;
		margin-bottom: 5px;
	}
	form[action*="newstory"] input[type="text"],
	form[action*="newstory"] input[type="password"],
	form[action*="newstory"] input[type="email"],
	form[action*="newstory"] select,
	form[action*="newstory"] textarea {
		width: 100%;
		max-width: 100%;
	}
}

/* =========================
   FORMULARIO NUEVO CAPÍTULO MEJORADO
========================= */
form[action*="newchapter"] {
	width: 100% !important;
	max-width: 1400px;
	margin: 20px auto !important;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

form[action*="newchapter"] label {
	display: inline-block;
	width: 200px;
	text-align: right;
	margin-bottom: 10px;
	padding-right: 10px;
	vertical-align: top;
}

form[action*="newchapter"] input[type="text"],
form[action*="newchapter"] input[type="password"],
form[action*="newchapter"] input[type="email"],
form[action*="newchapter"] select,
form[action*="newchapter"] textarea {
	width: calc(100% - 220px);
	max-width: 1200px;
	box-sizing: border-box;
	margin-bottom: 15px;
	padding: 8px;
	border: 1px solid #999;
	border-radius: 4px;
}

form[action*="newchapter"] textarea {
	min-height: 200px;
	resize: vertical;
}

form[action*="newchapter"] input[type="submit"],
form[action*="newchapter"] button {
	margin-top: 15px;
	padding: 10px 20px;
	font-size: 1rem;
	border-radius: 5px;
	cursor: pointer;
	background-color: #2c3e50;
	color: #fff;
	border: none;
	transition: background-color 0.3s ease;
}

form[action*="newchapter"] input[type="submit"]:hover,
form[action*="newchapter"] button:hover {
	background-color: #224466;
}

@media (max-width: 767px) {
	form[action*="newchapter"] label {
		display: block;
		width: 100%;
		text-align: left;
		margin-bottom: 5px;
	}
	form[action*="newchapter"] input[type="text"],
	form[action*="newchapter"] input[type="password"],
	form[action*="newchapter"] input[type="email"],
	form[action*="newchapter"] select,
	form[action*="newchapter"] textarea {
		width: 100%;
		max-width: 100%;
	}
}

/* Mejoras para pantallas muy grandes */
@media (min-width: 1400px) {
	form[action*="newstory"],
	form[action*="newchapter"] {
		max-width: 1600px;
	}
	form[action*="newstory"] input[type="text"],
	form[action*="newstory"] input[type="password"],
	form[action*="newstory"] input[type="email"],
	form[action*="newstory"] select,
	form[action*="newstory"] textarea,
	form[action*="newchapter"] input[type="text"],
	form[action*="newchapter"] input[type="password"],
	form[action*="newchapter"] input[type="email"],
	form[action*="newchapter"] select,
	form[action*="newchapter"] textarea {
		max-width: 1400px;
	}
}

/* Sobrescribir restricciones genéricas para formularios de fanfics */
#content form[action*="newstory"],
#content form[action*="newchapter"],
#content form[action*="editstory"],
#content form[action*="editchapter"] {
	max-width: 1400px !important;
	width: 100% !important;
	margin: 20px auto !important;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	box-sizing: border-box;
}

/* Restaurar estilo para enlaces dentro de encabezados */
h1 a, h2 a, h3 a {
  font-family: 'Lora', serif;
  font-weight: bold;
  font-size: inherit;
  text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover {
  text-decoration: underline;
}


/* =========================
   GRID SYSTEM
========================= */
.grid {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	overflow: hidden;
	padding: 0;
}

.grid:after {
	content: "";
	display: table;
	clear: both;
}

.grid-pad {
	padding: 20px;
}

/* =========================
   LISTADOS Y BLOQUES
========================= */
.listbox, .even, .odd, .comment {
	max-width: 1000px;
	margin: 20px auto;
	padding: 20px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	border: 1px solid #ddd;
	transition: transform 0.2s ease;
}

.story-meta {
	font-size: 0.9em;
	color: #666;
	margin: 4px 0;
}

#clasi { margin-bottom: 8px; }

.storyinfo {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 5px;
	font-size: 0.95em;
	color: #444;
	margin-top: 10px;
	background: #f5f5f5;
	padding: 10px 15px;
	border-radius: 5px;
	border: 1px solid #ddd;
	line-height: 1.4;
}

.storyinfo span {
	display: inline-block;
	margin-right: 10px;
	white-space: normal;
}

.storyinfo b {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.9em;
	color: #333;
	margin-right: 3px;
}

.last-read {
	margin-top: 8px;
	font-size: 0.9em;
	color: #666;
	text-align: center;
}

.story-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 2px;
	margin-top: 10px;
	font-size: 0.85em;
	color: #555;
}

.story-actions span { white-space: normal; margin-right: 2px; }
.story-actions a { color: #336699; text-decoration: none; }
.story-actions a:hover { text-decoration: underline; }

.even:hover, .odd:hover, .comment:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========================
   MEDIA QUERIES
========================= */
@media (max-width: 991px) {
	.listbox, .even, .odd, .comment {
		margin: 15px auto;
		padding: 15px;
		width: 90%;
	}

	#menu a {
		padding: 8px 12px;
		font-size: 1rem;
		display: inline-block;
		min-height: 36px;
	}
	#menu li { margin: 3px 6px; display: inline-block; }
	button, .button,
	input[type="submit"], input[type="button"] {
		font-size: 1.1rem;
		padding: 12px 20px;
		min-height: 48px;
	}
	/* Aplicamos estilos solo a los enlaces del menú y botones, no a todos los enlaces */
	.button, button a {
		padding: 10px 8px;
		min-height: 44px;
		display: inline-block;
	}
	/* Enlaces normales mantienen su tamaño natural y alineación con el texto */
	.story-actions a, .listbox a:not(.button), p a {
		padding: 0;
		min-height: auto;
		display: inline;
	}
}

@media (max-width: 767px) {
	.listbox, .even, .odd, .comment {
		margin: 15px 3%;
		padding: 15px;
		border-radius: 8px;
	}

	.story-meta {
		gap: 8px;
		margin: 6px 0;
	}

	.storyinfo {
		padding: 12px 15px;
		gap: 6px 12px;
		margin-top: 12px;
	}

	.footer { padding: 15px 20px; }
	.hero-section { padding: 10px 15px; }
	.hero-section h1 { font-size: 2rem; }
	.hero-section p { font-size: 1rem; }
	#menu ul {
		flex-wrap: wrap;
		justify-content: center;
		padding: 2px 3px;
	}
	#menu li {
		margin: 2px 4px;
		padding: 0;
	}
	#menu a {
		font-size: 0.95rem;
		padding: 5px 8px;
		min-height: 32px;
		white-space: nowrap;
	}
	#menu { padding: 0; margin: 0; }
	[class*='col-'] {
		width: auto;
		float: none;
		margin: 10px 0;
		padding: 0;
	}
	div, table, form, .tblborder, .column, .grid, #mainContainer, #content {
		max-width: 100% !important;
		width: auto !important;
		min-width: 0 !important;
		overflow-x: hidden;
		padding: 0;
	}
	.chapter-nav {
		justify-content: flex-end;
	}
	.hero-section h1 { font-size: 1.5rem !important; }
	#sitename { font-size: 1.5rem; padding: 10px 0; text-align: center; }
	#siteslogan { font-size: 1rem; margin: 0; text-align: center; }
	.login { font-size: 0.9rem; padding: 8px 15px; text-align: right; }
	h1 { font-size: 1.5rem; }
	h2, #pagetitle, .sectionheader { font-size: 1.25rem; }
	h3 { font-size: 1.1rem; }
	h4 { font-size: 1rem; }

	/* Reducir padding grid en móviles */

}

/* Forzar color igual en enlaces visitados dentro de listbox h3 */
.listbox h3 a:visited {
  color: #336699;
}

/* =========================
   MEJORA FORMULARIO LOGIN v2
========================= */
.login-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  text-align: center;
  font-family: 'Open Sans', 'Segoe UI', Roboto, Arial, sans-serif;
}

.login-container h2 {
  margin-bottom: 25px;
  font-family: 'Lora', serif;
  font-size: 2rem;
  color: #2c3e50;
}

.login-container form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.login-container form label {
  text-align: left;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.login-container form input[type="text"],
.login-container form input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #f9f9f9;
}

.login-container form input[type="text"]:focus,
.login-container form input[type="password"]:focus {
  border-color: #336699;
  box-shadow: 0 0 5px rgba(51,102,153,0.3);
  outline: none;
  background-color: #fff;
}

.login-container form .remember-me {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #333;
}

.login-container form .remember-me input[type="checkbox"] {
  margin-right: 8px;
}

.login-container form input[type="submit"],
.login-container form button {
  width: 100%;
  padding: 14px;
  background-color: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container form input[type="submit"]:hover,
.login-container form button:hover {
  background-color: #224466;
}

.login-container .links {
  margin-top: 20px;
  font-size: 0.95rem;
}

.login-container .links a {
  color: #336699;
  margin: 0 8px;
}

@media (max-width: 500px) {
  .login-container {
    margin: 30px auto;
    padding: 25px 20px;
  }
  .login-container h2 {
    font-size: 1.6rem;
  }
}

/* =========================
   NAVEGACIÓN CAPÍTULOS
========================= */
.chapter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px auto;
  max-width: 800px;
  padding: 10px;
}

.chapter-prev a,
.chapter-next a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #336699;
  background-color: #336699;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
  font-weight: 500;
}

.chapter-prev a:hover,
.chapter-next a:hover {
  background-color: #e0ecf8;
  color: #2c3e50;
  border-color: #336699;
}

/* Separación y cursiva para opciones login */
.login span {
  margin-right: 10px;
  font-style: italic;
}

/* Forzar cursiva en enlaces dentro del login */
.login span a {
  font-style: italic;
}

/*
     FILE ARCHIVED ON 01:07:00 Nov 24, 2025 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 09:52:11 Jan 23, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.481
  exclusion.robots: 0.018
  exclusion.robots.policy: 0.008
  esindex: 0.01
  cdx.remote: 8.332
  LoadShardBlock: 197.873 (3)
  PetaboxLoader3.datanode: 326.47 (5)
  PetaboxLoader3.resolve: 239.692 (3)
  load_resource: 396.412 (2)
*/