/* Link en bio – mismo estilo que la portada de diarioelmarino.cl (cabecera simétrica, Gandhi Serif). */
@font-face { font-family: "Gandhi Serif"; src: url("fonts/GandhiSerif-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gandhi Serif"; src: url("fonts/GandhiSerif-Italic.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gandhi Serif"; src: url("fonts/GandhiSerif-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--bg: #ffffff;
	--ink: #111111;
	--line: #111111;
	--muted: #555555;
	--card: #f2f2f2;
	--serif: "Gandhi Serif", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #1c1c1c; --ink: #ffffff; --line: #ffffff; --muted: #bbbbbb; --card: #2a2a2a; }
	.sim__adorno img { filter: brightness(0) invert(1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--serif); }
a { color: inherit; }

.cab, main, .foot { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }
main { max-width: 720px; }

/* Cabecera simétrica */
.cab { padding-top: 24px; }
.sim {
	display: flex; justify-content: space-between; align-items: flex-end;
	padding-bottom: 5px; border-bottom: 3px solid var(--line);
}
.sim__izq, .sim__der { width: 25%; display: flex; flex-direction: column; flex-shrink: 0; }
.sim__izq { text-align: center; }
.sim__der { text-align: right; align-items: flex-end; line-height: 1.4; }
.sim__der span + span { font-size: 15px; }
.sim__precio { display: flex; justify-content: center; align-items: center; gap: 5px; line-height: 1; }
.sim__precio span { font-size: 18px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.sim__precio b { font-size: 54px; line-height: .8; }
.sim__lineas { display: flex; align-items: center; margin: -5px 0 8px; }
.sim__lineas i { flex: 1; height: 2px; background: var(--line); }
.sim__lineas em { width: 45px; }
.sim__adorno { width: 30px; padding-bottom: 5px; }
.sim__adorno img { display: block; width: 100%; height: auto; }
.sim__centro { width: 40%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.sim__logo { margin: 0 0 3px; line-height: 0; }
.sim__logo img { display: block; max-width: 100%; height: auto; max-height: 120px; width: auto; }
.sim__eslogan { margin: 0; font-style: italic; font-size: 16px; line-height: 1.3; }

.barra {
	display: flex; justify-content: space-between; align-items: center; gap: 8px;
	margin-top: 2px; padding: 8px 0;
	border-top: 1px solid var(--line); border-bottom: 4px double var(--line);
	font-size: 15px; text-transform: uppercase;
}
.barra__n { text-transform: none; }

/* Redes y botones */
.nets { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.nets a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; transition: background .15s, color .15s; }
.nets a:hover, .nets a:focus-visible { background: var(--ink); color: var(--bg); }
.nets svg { width: 22px; height: 22px; }

.btns { display: grid; gap: 12px; max-width: 688px; margin: 16px auto 0; }
.btn {
	display: block; padding: 14px 20px;
	background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
	font: 700 17px/1.2 var(--serif); text-align: center; text-decoration: none;
	transition: background .15s, color .15s;
}
.btn:hover { background: var(--bg); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); display: inline-block; min-width: 200px; }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.btn[aria-busy="true"] { opacity: .6; cursor: progress; }

/* «LO ÚLTIMO» como los títulos de sección de la portada */
.rule {
	display: flex; align-items: center; gap: 16px; margin: 32px 0 16px;
	font: 700 14px/1 var(--serif); letter-spacing: .15em; text-transform: uppercase;
}
.rule::before, .rule::after { content: ""; flex: 1; height: 5px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Cuadrícula */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.card a { display: block; position: relative; text-decoration: none; background: var(--card); overflow: hidden; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .25s; }
.card a:hover img { transform: scale(1.03); }
.card a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.card__meta {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 6px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff;
	font-size: 12px; line-height: 1.2; opacity: 0; transition: opacity .2s;
}
.card a:hover .card__meta, .card a:focus-visible .card__meta { opacity: 1; }
@media (hover: none) { .card__meta { opacity: 1; } }

.more { text-align: center; margin: 24px 0 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 0; }
.foot { text-align: center; padding: 40px 16px 32px; font-size: 14px; color: var(--muted); }
.foot a { text-decoration: none; }

/* Teléfono: como la portada, el logo arriba y los bloques laterales debajo */
@media (max-width: 760px) {
	.cab { padding-top: 16px; }
	.sim { flex-wrap: wrap; justify-content: space-between; align-items: flex-end; row-gap: 12px; }
	.sim__adorno { display: none; }
	.sim__centro { order: -1; width: 100%; }
	.sim__izq, .sim__der { width: 48%; font-size: 13px; }
	.sim__der span + span { font-size: 12px; }
	.sim__precio { gap: 3px; }
	.sim__precio span { font-size: 12px; letter-spacing: 0; }
	.sim__precio b { font-size: 38px; }
	.sim__lineas em { width: 32px; }
	.sim__eslogan { font-size: 15px; }
	.barra { flex-direction: column; gap: 4px; font-size: 12px; text-align: center; border-bottom: 1px solid var(--line); }
	.grid { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
