/* ========================================
   ESTILOS PRINCIPALES - INDEX.PHP
   Centro de Día Margot Neu de Gartner
   ======================================== */

:root {
	--color-primary: #dc2626;
	--color-primary-dark: #b91c1c;
	--color-primary-light: #fee2e2;
	--color-secondary: #1f942b;
	--color-accent: #f59e0b;
	--color-text: #1e293b;
	--color-text-light: #64748b;
	--color-bg: #ffffff;
	--color-bg-light: #f8fafc;
	--color-bg-section: #f1f5f9;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--transition: all 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
	background: var(--color-bg);
	border-bottom: 1px solid #e2e8f0;
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.navbar.scrolled {
	box-shadow: var(--shadow-md);
}

.navbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	text-decoration: none;
	flex-shrink: 0;
}

.logo-container {
	width: 60px;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.logo-main {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand-text h1 {
	font-size: 18px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0;
	line-height: 1.2;
}

.brand-text p {
	font-size: 13px;
	color: var(--color-primary);
	font-weight: 600;
	margin: 0;
}

.municipality-logos {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.logo-municipality {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.logo-municipality-text {
	height: 40px;
	width: auto;
	object-fit: contain;
}

.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--color-text);
	transition: var(--transition);
}

.mobile-menu-toggle:hover {
	color: var(--color-primary);
}

.mobile-menu-toggle .icon {
	width: 24px;
	height: 24px;
}

.navbar-menu {
	display: flex;
	list-style: none;
	gap: 32px;
	align-items: center;
	margin: 0;
	padding: 0;
	flex: 1;
	justify-content: center;
}

.nav-link {
	text-decoration: none;
	color: var(--color-text);
	font-weight: 500;
	font-size: 15px;
	transition: var(--transition);
	position: relative;
	padding: 8px 0;
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--color-primary);
	transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
	color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
	width: 100%;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
	position: relative;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg-light) 100%);
	overflow: hidden;
	padding: 80px 0;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="%23dc2626" opacity="0.1"/></svg>');
	opacity: 0.3;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 900px;
	margin: 0 auto;
}

.hero-title {
	font-size: 48px;
	font-weight: 800;
	color: var(--color-text);
	margin-bottom: 24px;
	line-height: 1.2;
}

.hero-subtitle {
	font-size: 24px;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 20px;
	line-height: 1.4;
}

.hero-description {
	font-size: 18px;
	color: var(--color-text-light);
	margin-bottom: 40px;
	line-height: 1.7;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: var(--transition);
}

.btn-primary {
	background: var(--color-primary);
	color: white;
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn .icon {
	width: 20px;
	height: 20px;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
	padding: 80px 0;
}

.about-section {
	background: var(--color-bg);
}

.addiction-section {
	background: var(--color-bg-section);
}

.work-section {
	background: var(--color-bg);
}

.prevention-section {
	background: var(--color-bg-section);
}

.path-section {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: white;
	text-align: center;
}

.contact-section {
	background: var(--color-bg);
}

.section-header {
	text-align: center;
	margin-bottom: 48px;
}

.section-icon {
	width: 56px;
	height: 56px;
	color: var(--color-primary);
	margin: 0 auto 20px;
}

.section-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--color-text);
	margin: 0;
	line-height: 1.2;
}

.path-section .section-title {
	color: white;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.about-text {
	font-size: 18px;
	line-height: 1.8;
	color: var(--color-text-light);
	margin-bottom: 24px;
}

/* ========================================
   ADDICTION SECTION
   ======================================== */

.addiction-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.addiction-text {
	font-size: 18px;
	line-height: 1.8;
	color: var(--color-text-light);
	margin-bottom: 24px;
}

/* ========================================
   WORK SECTION
   ======================================== */

.work-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.work-text {
	font-size: 18px;
	line-height: 1.8;
	color: var(--color-text-light);
	margin-bottom: 24px;
}

/* ========================================
   PREVENTION SECTION
   ======================================== */

.prevention-content {
	max-width: 900px;
	margin: 0 auto;
}

.prevention-intro {
	font-size: 20px;
	font-weight: 600;
	color: var(--color-text);
	text-align: center;
	margin-bottom: 16px;
}

.prevention-text {
	font-size: 18px;
	line-height: 1.8;
	color: var(--color-text-light);
	text-align: center;
	margin-bottom: 40px;
}

.prevention-keys {
	background: var(--color-bg);
	border-radius: var(--radius-lg);
	padding: 40px;
	box-shadow: var(--shadow-md);
}

.prevention-keys-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 24px;
	text-align: center;
}

.prevention-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.prevention-list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	margin-bottom: 16px;
	background: var(--color-bg-light);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--color-primary);
	font-size: 17px;
	line-height: 1.7;
	color: var(--color-text);
	transition: var(--transition);
}

.prevention-list li:hover {
	transform: translateX(8px);
	box-shadow: var(--shadow-sm);
}

.list-icon {
	width: 24px;
	height: 24px;
	color: var(--color-primary);
	flex-shrink: 0;
	margin-top: 2px;
}

/* ========================================
   PATH SECTION
   ======================================== */

.path-content {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.path-icon {
	width: 80px;
	height: 80px;
	color: white;
	margin: 0 auto 24px;
	opacity: 0.9;
}

.path-title {
	font-size: 40px;
	font-weight: 700;
	color: white;
	margin-bottom: 24px;
}

.path-text {
	font-size: 20px;
	line-height: 1.8;
	color: white;
	opacity: 0.95;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-content {
	max-width: 800px;
	margin: 0 auto;
}

.contact-info {
	background: var(--color-bg-light);
	border-radius: var(--radius-lg);
	padding: 48px;
	box-shadow: var(--shadow-md);
}

.contact-name {
	font-size: 28px;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 32px;
	text-align: center;
}

.contact-items {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: var(--color-bg);
	border-radius: var(--radius-md);
	border-left: 4px solid var(--color-primary);
	transition: var(--transition);
}

.contact-item:hover {
	transform: translateX(8px);
	box-shadow: var(--shadow-sm);
}

.contact-icon {
	width: 28px;
	height: 28px;
	color: var(--color-primary);
	flex-shrink: 0;
}

.contact-item span {
	font-size: 17px;
	color: var(--color-text);
	line-height: 1.6;
}

.contact-item a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 600;
	transition: var(--transition);
}

.contact-item a:hover {
	text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
	background: var(--color-text);
	color: white;
	padding: 48px 0;
	margin-top: 80px;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 24px;
}

.footer-logo-img {
	width: 60px;
	height: 60px;
	object-fit: contain;
}

.footer-municipality {
	display: flex;
	align-items: center;
	gap: 16px;
}

.footer-escudo {
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.footer-alem {
	height: 40px;
	width: auto;
	object-fit: contain;
}

.footer-info {
	text-align: right;
}

.footer-info p {
	margin: 4px 0;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
	.mobile-menu-toggle {
		display: block;
	}

	.navbar-menu {
		position: fixed;
		top: 73px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 73px);
		background: var(--color-bg);
		flex-direction: column;
		justify-content: flex-start;
		padding: 32px;
		gap: 24px;
		transition: left 0.3s ease;
		box-shadow: var(--shadow-lg);
		overflow-y: auto;
	}

	.navbar-menu.active {
		left: 0;
	}

	.municipality-logos {
		display: none;
	}

	.hero-title {
		font-size: 36px;
	}

	.hero-subtitle {
		font-size: 20px;
	}

	.hero-description {
		font-size: 16px;
	}

	.section-title {
		font-size: 28px;
	}

	.path-title {
		font-size: 32px;
	}

	.prevention-keys {
		padding: 32px 24px;
	}

	.contact-info {
		padding: 32px 24px;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
	}

	.footer-info {
		text-align: center;
	}
}

@media (max-width: 640px) {
	.navbar .container {
		padding: 0 16px;
	}

	.brand-text h1 {
		font-size: 16px;
	}

	.brand-text p {
		font-size: 12px;
	}

	.logo-container {
		width: 50px;
		height: 50px;
	}

	.hero {
		min-height: 500px;
		padding: 60px 0;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 18px;
	}

	.hero-description {
		font-size: 15px;
	}

	.section {
		padding: 60px 0;
	}

	.section-title {
		font-size: 24px;
	}

	.about-text,
	.addiction-text,
	.work-text {
		font-size: 16px;
	}

	.prevention-keys-title {
		font-size: 20px;
	}

	.prevention-list li {
		font-size: 15px;
		padding: 16px;
	}

	.path-title {
		font-size: 28px;
	}

	.path-text {
		font-size: 18px;
	}

	.contact-name {
		font-size: 24px;
	}

	.contact-item span {
		font-size: 15px;
	}
}

