/* Kauel — Estilos de páginas públicas anexas (Noticias, Eventos, Contacto) */
:root {
	--ink: #15150F;
	--ink-soft: #6B6B60;
	--paper: #FFFFFF;
	--paper-subtle: #F9F8F5;
	--line: #E9E7DF;
	--orange: #FF5A1F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
	font-family: 'Inter', sans-serif;
	color: var(--ink);
	background: var(--paper);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px clamp(24px, 6vw, 72px);
	z-index: 100;
	gap: 16px;
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.site-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.site-nav a {
	color: var(--ink);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	transition: color 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--orange); }

main.page { flex: 1; }

/* Mini hero */
.hero-mini {
	padding: 72px clamp(24px, 6vw, 72px);
	background: var(--paper-subtle);
	border-bottom: 1px solid var(--line);
}
.hero-mini h1 {
	font-family: 'Space Grotesk', sans-serif;
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 600;
	letter-spacing: -0.02em;
}
.hero-mini p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

.section { padding: 64px clamp(24px, 6vw, 72px); }

/* Cards de noticias/eventos */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}
.card {
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); }
.card-date {
	font-family: 'Space Grotesk', sans-serif;
	font-size: 12px;
	letter-spacing: 0.08em;
	color: var(--orange);
	text-transform: uppercase;
	font-weight: 600;
}
.card h2 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; }
.card .excerpt { color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.card .content { color: var(--ink); font-size: 14px; line-height: 1.7; }
.card .content p { margin-bottom: 8px; }
.card .meta { font-size: 12px; color: var(--ink-soft); }

.empty { color: var(--ink-soft); text-align: center; padding: 48px 0; }

/* Cards enlazables al detalle */
a.card { text-decoration: none; color: inherit; }
.card-img { margin: -28px -28px 8px; border-radius: 16px 16px 0 0; overflow: hidden; max-height: 220px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Artículo / detalle de noticia y evento */
.article { max-width: 900px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 80px; }
.article-hero { border-radius: 18px; overflow: hidden; margin-bottom: 32px; border: 1px solid var(--line); }
.article-hero img { width: 100%; display: block; max-height: 480px; object-fit: cover; }
.article-body { padding: 0 clamp(0px, 2vw, 24px); }
.article-cat { display: inline-block; background: var(--orange); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .1em; padding: 5px 12px; border-radius: 100px; font-weight: 600; }
.article-body h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 16px 0 10px; letter-spacing: -0.01em; }
.article-meta { color: var(--ink-soft); font-size: 13px; margin-bottom: 20px; }
.article-excerpt { font-size: 17px; color: var(--ink); line-height: 1.6; border-left: 3px solid var(--orange); padding-left: 16px; margin-bottom: 20px; }
.article-content { font-size: 15px; line-height: 1.75; color: var(--ink); }
.article-content p { margin-bottom: 14px; }
.article-content a { color: var(--orange); }
.article-gallery-title { font-family: 'Space Grotesk', sans-serif; font-size: 24px; margin: 32px 0 16px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery a { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.05); }
.article-back { margin-top: 40px; }
.article-back a { color: var(--orange); text-decoration: none; font-weight: 600; font-size: 14px; }
.article-back a:hover { text-decoration: underline; }

/* Contacto */
.map-wrap { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; }
.contact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	margin-top: 48px;
}
@media (min-width: 900px) {
	.contact-grid { grid-template-columns: 1fr 1.4fr; }
}
.contact-info h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; margin-bottom: 16px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 10px; line-height: 1.6; }
.contact-info a { color: var(--orange); text-decoration: none; }

.contact-email h2 { font-family: 'Space Grotesk', sans-serif; font-size: 24px; margin-bottom: 16px; }
.contact-email p { color: var(--ink-soft); margin-bottom: 10px; line-height: 1.6; }
.contact-email .email-hint { font-size: 13px; margin-top: 14px; }
.contact-email .btn { text-decoration: none; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ink);
}
.contact-form input,
.contact-form textarea {
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: var(--ink);
	background: var(--paper);
	outline: none;
	transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); }

.btn {
	background: var(--orange);
	color: #fff;
	border: 1px solid var(--orange);
	border-radius: 100px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 14px;
	padding: 13px 26px;
	cursor: pointer;
	transition: all 0.2s;
	align-self: flex-start;
}
.btn:hover { background: #e04913; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.alert.ok { background: #E7F5EA; color: #1F7A3D; border: 1px solid #BFE3C9; }
.alert.err { background: #FDECEC; color: #B3261E; border: 1px solid #F2C1BC; }

/* Footer */
.site-footer {
	background: var(--ink);
	color: #A9A99E;
	padding: 32px clamp(24px, 6vw, 72px);
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	margin-top: auto;
}
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { color: #D6D6CC; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-address { font-size: 12px; color: #7E7E74; line-height: 1.5; margin-top: 6px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.22); color: #D6D6CC; transition: all .2s;
}
.footer-socials a:hover { border-color: var(--orange); color: var(--orange); background: rgba(255,90,31,.08); }
.footer-socials svg { width: 16px; height: 16px; }
@media (max-width: 640px) {
	.footer-right { align-items: flex-start; }
}

/* ============================================================
   Header y footer idénticos a la portada (Layout.astro)
   ============================================================ */
header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 32px clamp(24px, 6vw, 72px);
	position: sticky;
	top: 0;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(12px);
	z-index: 100;
	border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-isotipo { height: 28px; width: auto; display: none; }
@media (max-width: 560px) {
	.brand-logo { display: none; }
	.brand-isotipo { display: block; }
}
.nav-links { display: none; gap: 32px; align-items: center; }
@media (min-width: 868px) {
	.nav-links { display: flex; }
}
.nav-links a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }

.lang-switch {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 100px;
	padding: 5px 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	transition: border-color 0.2s;
	color: var(--ink-soft);
}
.lang-switch:hover { border-color: var(--orange); }
.lang-opt { transition: color 0.2s; }
.lang-opt.active { color: var(--orange); }
.lang-divider { color: var(--line); font-weight: 400; }

.header-socials { display: flex; align-items: center; gap: 6px; }
.header-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid var(--line);
	color: var(--ink-soft);
	transition: all 0.2s;
}
.header-socials a:hover { border-color: var(--orange); color: var(--orange); }
.header-socials svg { width: 14px; height: 14px; }
@media (max-width: 867px) { .header-socials { display: none; } }

.menu-btn {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: 36px;
	height: 36px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	cursor: pointer;
	padding: 6px;
	transition: border-color 0.2s;
}
.menu-btn:hover { border-color: var(--orange); }
.menu-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }
@media (max-width: 867px) { .menu-btn { display: flex; } }

.sidebar {
	position: fixed;
	top: 0;
	right: -280px;
	width: 260px;
	height: 100vh;
	background: var(--paper);
	border-left: 1px solid var(--line);
	z-index: 200;
	padding: 24px;
	display: flex;
	flex-direction: column;
	transition: right 0.3s ease;
	box-shadow: -4px 0 20px rgba(0, 0, 0, 0.06);
}
.sidebar.open { right: 0; }
.sidebar-close { align-self: flex-end; background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; margin-bottom: 32px; transition: color 0.2s; }
.sidebar-close:hover { color: var(--orange); }
.sidebar-links { display: flex; flex-direction: column; gap: 24px; }
.sidebar-links a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; transition: color 0.2s; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sidebar-links a:hover { color: var(--orange); }
.sidebar-lang { margin-top: auto; padding-top: 24px; }
.sidebar-socials { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.sidebar-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--line);
	color: var(--ink-soft);
	transition: all 0.2s;
}
.sidebar-socials a:hover { border-color: var(--orange); color: var(--orange); }
.sidebar-socials svg { width: 16px; height: 16px; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(21, 21, 15, 0.4); z-index: 199; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }
@media (min-width: 868px) {
	.sidebar { display: none; }
	.sidebar-overlay { display: none; }
}

footer {
	background: var(--ink);
	color: #A9A99E;
	padding: 56px clamp(24px, 6vw, 72px) 32px;
	border-top: none;
	font-size: 13px;
	margin-top: auto;
}
.footer-main { display: grid; grid-template-columns: 1fr; gap: 40px; max-width: 1080px; margin: 0 auto; }
@media (min-width: 868px) {
	.footer-main { grid-template-columns: 1.2fr 0.8fr 1fr; gap: 48px; }
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-logo { height: 40px; width: auto; }
.footer-tagline { line-height: 1.6; font-size: 13px; max-width: 300px; }
.footer-address { font-size: 12px; color: #7E7E74; line-height: 1.5; max-width: 300px; margin-top: 0; }
.footer-links { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-links a { color: #D6D6CC; text-decoration: none; font-size: 13px; border-bottom: none; padding: 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-partners-label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #7E7E74; margin-bottom: 16px; }
.footer-partners-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partner-logo { height: 28px; width: auto; opacity: 0.85; transition: opacity 0.2s; }
.partner-logo:hover { opacity: 1; }
.footer-bottom {
	max-width: 1080px;
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 12px;
	color: #7E7E74;
	flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: #A9A99E; text-decoration: none; border-bottom: none; padding: 0; transition: color 0.2s; }
.footer-legal a:hover { color: var(--orange); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
	display: flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.22); color: #D6D6CC; transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--orange); color: var(--orange); background: rgba(255, 90, 31, 0.08); }
.footer-socials svg { width: 16px; height: 16px; }

@media (max-width: 560px) {
	footer { padding-top: 40px; }
	.footer-brand, .footer-links { align-items: center; text-align: center; }
	.footer-partners-logos { justify-content: center; }
	.footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
	.site-header { flex-direction: column; align-items: flex-start; }
	.contact-form .btn { width: 100%; }
}
