/*
Theme Name: ComparaLana Child
Theme URI: https://comparalana.com
Description: ComparaLana branding — deep teal + amber, MX loan comparator. Child of Neve.
Author: ComparaLana
Template: neve
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: comparalana-child
*/

/* ── Brand palette (Neve CSS variables) ─────────────────────────── */
:root {
	--nv-primary-accent: #0f766e;
	--nv-secondary-accent: #f59e0b;
	--cl-teal: #0f766e;
	--cl-teal-dark: #0b5d57;
	--cl-amber: #f59e0b;
	--cl-ink: #1f2937;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
	color: var(--cl-teal-dark);
}
.entry-content a,
.nv-content-wrap a {
	color: var(--cl-teal);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
.entry-content a:hover,
.nv-content-wrap a:hover {
	color: var(--cl-amber);
}

/* ── Tables (comparativas) ──────────────────────────────────────── */
.entry-content table,
.nv-content-wrap table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5em 0;
	font-size: 0.95em;
}
.entry-content table th,
.nv-content-wrap table th {
	background: var(--cl-teal);
	color: #fff;
	font-weight: 700;
	text-align: left;
	padding: 10px 12px;
}
.entry-content table td,
.nv-content-wrap table td {
	padding: 9px 12px;
	border-bottom: 1px solid #e5e7eb;
}
.entry-content table tbody tr:nth-child(even),
.nv-content-wrap table tbody tr:nth-child(even) {
	background: #f8faf9;
}

/* ── Blockquote (préstamo responsable) ──────────────────────────── */
.entry-content blockquote,
.nv-content-wrap blockquote {
	border-left: 4px solid var(--cl-amber);
	background: #f0f9f8;
	padding: 16px 20px;
	margin: 1.5em 0;
	border-radius: 0 8px 8px 0;
	font-size: 0.97em;
}
.entry-content blockquote p,
.nv-content-wrap blockquote p {
	margin: 0;
	color: var(--cl-ink);
}

/* ── FAQ (details/summary) ──────────────────────────────────────── */
.entry-content details,
.nv-content-wrap details {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	margin: 10px 0;
	background: #fff;
}
.entry-content details summary,
.nv-content-wrap details summary {
	padding: 12px 16px;
	font-weight: 700;
	color: var(--cl-teal-dark);
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 40px;
}
.entry-content details summary::after,
.nv-content-wrap details summary::after {
	content: "+";
	position: absolute;
	right: 16px;
	color: var(--cl-amber);
	font-size: 1.3em;
	font-weight: 700;
}
.entry-content details[open] summary::after,
.nv-content-wrap details[open] summary::after {
	content: "–";
}
.entry-content details p,
.nv-content-wrap details p {
	padding: 0 16px 14px;
	margin: 0;
}

/* ── Lists ──────────────────────────────────────────────────────── */
.entry-content ul li::marker,
.nv-content-wrap ul li::marker {
	color: var(--cl-amber);
}

/* ── Hero figure ────────────────────────────────────────────────── */
.entry-content figure,
.nv-content-wrap figure {
	margin: 1.5em 0;
}
.entry-content figure img,
.nv-content-wrap figure img {
	border-radius: 12px;
	width: 100%;
	height: auto;
}

/* ── Header / footer accents ────────────────────────────────────── */
.nv-footer,
footer.site-footer {
	background: var(--cl-teal-dark);
}
.nv-footer a,
footer.site-footer a {
	color: #d9f2ef;
}

/* ── Offers grid ([cl_offers]) ──────────────────────────────────── */
.cl-offers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin: 1.5em 0 0.75em;
}
.cl-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-shadow: 0 1px 3px rgba(15, 118, 110, 0.08);
}
.cl-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}
.cl-name {
	font-weight: 800;
	font-size: 1.15em;
	color: var(--cl-teal-dark);
}
.cl-badge {
	background: var(--cl-amber);
	color: #1f2937;
	font-size: 0.72em;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	white-space: nowrap;
}
.cl-entity {
	font-size: 0.75em;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.cl-rows {
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 0.9em;
}
.cl-row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.cl-row span {
	color: #6b7280;
}
.cl-row strong {
	color: var(--cl-ink);
	text-align: right;
}
.cl-cta {
	margin-top: auto;
	display: block;
	text-align: center;
	background: var(--cl-teal);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	padding: 10px 14px;
	border-radius: 8px;
	transition: background 0.15s ease;
}
.cl-cta:hover {
	background: var(--cl-amber);
	color: #1f2937 !important;
}
.cl-disclaimer {
	font-size: 0.8em;
	color: #6b7280;
	border-top: 1px solid #e5e7eb;
	padding-top: 10px;
}
