/* ===============================
	 Portada tipo medio de comunicación
	 =============================== */

.template-homepage .homepage {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.5rem 3rem;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.homepage-hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
	margin-bottom: 3rem;
}

.hero-main-article {
    display: grid;
    grid-template-columns: 1.3fr 1.7fr;
    gap: 1.5rem;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);

    /* Nuevo: controla el alto de todo el hero */
    max-height: 420px;      /* súbelo/bájalo a tu gusto: 380–460px */
}

.hero-image {
    height: 100%;
    overflow: hidden;
    /* quita el borde rojo de prueba aquí si lo tenías */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-placeholder {
	background: linear-gradient(135deg, #2c5aa0, #e74c3c);
	height: 100%;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 4rem;
	font-weight: 700;
}

.hero-main-text {
	padding: 2rem;
}

.hero-main-text h1 {
	font-size: 2.2rem;
	margin: 0 0 0.8rem;
	line-height: 1.2;
}

.hero-main-text h1 a {
	color: #222;
	text-decoration: none;
}

.hero-main-text h1 a:hover {
	color: #2c5aa0;
}

.hero-intro {
	font-size: 1.1rem;
	color: #555;
	margin-bottom: 1rem;
}

.hero-meta small {
	color: #888;
}

.homepage-hero-side {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 1.5rem 1.5rem 1.2rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.homepage-hero-side .side-title {
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #2c5aa0;
	margin: 0 0 1rem;
}

.homepage-hero-side ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.homepage-hero-side li {
	padding: 0.6rem 0;
	border-bottom: 1px solid #e2e6ea;
}

.homepage-hero-side li:last-child {
	border-bottom: none;
}

.homepage-hero-side a {
	color: #222;
	text-decoration: none;
	font-weight: 600;
}

.homepage-hero-side a:hover {
	color: #2c5aa0;
}

.homepage-hero-side small {
	display: block;
	color: #888;
}

.homepage-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2rem;
}

.grid-block h2 {
	font-size: 1.2rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid #2c5aa0;
	padding-bottom: 0.4rem;
}

.grid-opinion .grid-items {
	display: grid;
	grid-auto-flow: dense;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.5rem;
}

.grid-opinion article.keyword-block {
	background: #ffffff;
	border-radius: 8px;
	padding: 1.2rem 1.3rem;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.grid-opinion article.keyword-block:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* Bloques de temas con tamaños variados para romper la monotonía */
.grid-opinion article.keyword-block:nth-child(3n) {
	grid-column: span 2;
}

.grid-opinion article.keyword-block:nth-child(4n) {
	grid-row: span 2;
}

.grid-opinion h3 {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
}

.grid-opinion h3 a {
	color: #222;
	text-decoration: none;
}

.grid-opinion h3 a:hover {
	color: #2c5aa0;
}


.keyword-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #222;
	border-radius: 6px;
	overflow: hidden;
	background: #f9fafb;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.keyword-card + .keyword-card {
	margin-top: 0.75rem;
}

.keyword-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.keyword-card-image {
	width: 100%;
	height: 120px;
	overflow: hidden;
	background: #e5e7eb;
}

.keyword-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.keyword-card-body {
	padding: 0.6rem 0.75rem 0.65rem;
}

.keyword-card-title {
	margin: 0 0 0.3rem;
	font-size: 0.98rem;
	font-weight: 600;
}

.keyword-card-meta {
	margin: 0;
	font-size: 0.8rem;
	color: #6b7280;
}

.grid-secondary ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.grid-secondary li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #e2e6ea;
}

.grid-secondary li:last-child {
	border-bottom: none;
}

.grid-secondary a {
	color: #222;
	text-decoration: none;
}

.grid-secondary a:hover {
	color: #2c5aa0;
}

.grid-secondary small {
	margin-left: 0.4rem;
	color: #888;
}

.homepage-intro {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e6ea;
	color: #555;
}

@media (max-width: 960px) {
	.homepage-hero,
	.homepage-grid {
		grid-template-columns: 1fr;
	}

	.hero-main-article {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.template-homepage .homepage {
		padding: 1.5rem 1rem 2rem;
	}

	.hero-main-text h1 {
		font-size: 1.6rem;
	}
}

