@import url('https://fonts.cdnfonts.com/css/cocogoose');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ========================================
   VARIABLES DE COLOR - SISTEMA DE DISEÑO CRECES
   ======================================== */

:root {
	/* COLORES PRIMARIOS - TONOS NARANJA/AMARILLO */
	--color-creces-primary-400: #E9511D;
	/* Naranja vibrante */
	--color-creces-primary-300: #EF7025;
	/* Naranja medio */
	--color-creces-primary-200: #F38F2D;
	/* Naranja claro */
	--color-creces-primary-100: #F9B036;
	/* Amarillo-naranja */

	/* COLORES SECUNDARIOS - TONOS TEAL/VERDE */
	--color-creces-secondary-400: #00645C;
	/* Teal oscuro */
	--color-creces-secondary-300: #2BA89A;
	/* Teal medio */

	/* COLORES NEUTRALES - ESCALA DE GRISES */
	--color-creces-neutral-dark: #232727;
	/* Gris muy oscuro */
	--color-creces-neutral-mid: #DADADA;
	/* Gris claro */
	--color-creces-neutral-white: #FFFFFF;
	/* Blanco puro */

	/* ========================================
	   VARIABLES DE TIPOGRAFÍA - SISTEMA DE DISEÑO CRECES
	   ======================================== */

	/* FAMILIAS DE FUENTES */
	--font-family-display: 'Cocogoose', sans-serif;
	--font-family-body: 'Inter', sans-serif;

	/* TAMAÑOS DE FUENTE */
	--font-size-display: 120px;
	--font-size-h1: 72px;
	--font-size-h2: 60px;
	--font-size-h3: 56px;
	--font-size-h4: 44px;
	--font-size-h5: 36px;
	--font-size-h6: 22px;
	--font-size-body-lg: 18px;
	--font-size-body-sm: 14px;

	/* PESOS DE FUENTE */
	--font-weight-headings: normal;
	--font-weight-h4: 400;
	--font-weight-body: 400;

	/* ALTURAS DE LÍNEA */
	--line-height-headings: 1.25;
	--line-height-body: 1.5;
}

/* ========================================
   MEDIA QUERY - PANTALLAS PEQUEÑAS
   ======================================== */



@media (max-width: 768px) {
	:root {
		/* TAMAÑOS DE FUENTE AJUSTADOS PARA MÓVILES */
		--font-size-display: 80px;
		/* Reducido de 120px */
		--font-size-h1: 48px;
		/* Reducido de 72px */
		--font-size-h2: 40px;
		/* Reducido de 60px */
		--font-size-h3: 36px;
		/* Reducido de 56px */
		--font-size-h4: 32px;
		/* Reducido de 44px */
		--font-size-h5: 28px;
		/* Reducido de 36px */
	}
}

@media (max-width: 640px) {
	:root {
		--font-size-display: 32px;
		--font-size-h1: 36px;
		--font-size-h2: 28px;
		--font-size-h3: 24px;
		--font-size-h4: 20px;
		--font-size-h5: 20px;
		--font-size-h6: 18px;
		--font-size-body-lg: 16px;
		--font-size-body-sm: 12px;
	}
}


* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100dvh;
}

body {
	font-size: 16px;
}

/* ========================================
   HERO + MENÚ LATERAL
   ======================================== */

.hero {
	min-height: 100dvh;
	display: grid;
	grid-template-columns: 1fr 40%;
	position: relative;
	color: var(--color-creces-neutral-white);
}


.hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	justify-content: flex-start;
	padding: 32px;
	background: url('https://presupuestocreces.hermosillo.gob.mx/landing/assets/images/hero.jpg');
	background-repeat: no-repeat;
	background-position: right center;
	background-size: cover;
	/* aspect-ratio: 1/1; */
}

.hero__logos {
	display: flex;
	gap: 4rem;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	position: relative;
}

.hero__logo-img {
	width: 90%;
	height: auto;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2));
}

/* Anchos específicos por logo */
.hero__logos .hero__logo-img:nth-child(1) {
	max-width: 260px;
}

.hero__logos .hero__logo-img:nth-child(2) {
	max-width: 420px;
}

.hero__logos .hero__logo-img:nth-child(3) {
	max-width: 710px;
}

.hero__headline {
	margin: 0;
	font-family: var(--font-family-display);
	font-size: var(--font-size-display);
	line-height: var(--line-height-headings);
	font-weight: var(--font-weight-headings);
	text-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.hero__menu {
	position: relative;
	z-index: 1;
	display: grid;
	grid-auto-rows: 1fr;
	gap: 0;
}

.menu-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1.5rem;
	gap: 1rem;
	transition: transform .15s ease, filter .15s ease, color .15s ease, border .15s ease;
	font-family: var(--font-family-display);
	font-size: var(--font-size-h6);
	color: var(--color-creces-neutral-white);
	text-decoration: none;
	border: 3px solid transparent;
	text-transform: uppercase;
}

.menu-card span {
	max-width: 13ch;
	text-wrap: pretty;
	white-space: normal;
}

.menu-card:first-child span {
	max-width: 17ch;
}

.menu-card:hover span {
	color: var(--color-creces-primary-400);
	text-shadow:
		-2px -2px 0 var(--color-creces-neutral-white),
		2px -2px 0 var(--color-creces-neutral-white),
		-2px 2px 0 var(--color-creces-neutral-white),
		2px 2px 0 var(--color-creces-neutral-white);
}

.menu-card:hover {
	filter: brightness(1.05);
}

.menu-card--primary {
	background: var(--color-creces-primary-400);
}

.menu-card--primary-300 {
	background: var(--color-creces-primary-300);
}

.menu-card--primary-200 {
	background: var(--color-creces-primary-200);
}

.menu-card--primary-100 {
	background: var(--color-creces-primary-100);

}



/* Layout responsive: menú abajo en pantallas pequeñas */
@media (max-width: 1024px) {
	.hero {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr auto;
	}

	.hero__menu {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.hero__menu {
		grid-template-columns: 1fr;
	}

	.menu-card {
		padding: 20px;
		font-weight: 700;
	}
}

/* ========================================
   PRELAUNCH SECTION
   ======================================== */

.prelaunch {
	background-color: var(--color-creces-secondary-300);
	padding: 6rem 1rem;
	color: var(--color-creces-neutral-white);
	text-align: center;

}

.prelaunch__inner {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	gap: 24px;
	place-items: center;
}

.prelaunch__eyebrow {
	margin: 0;
	font-family: var(--font-family-display);
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-headings);
	line-height: var(--line-height-headings);
}

.prelaunch__media {
	width: 96%;
	max-width: 885px;
	margin: 0;
	background: #000;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
	overflow: hidden;
}

.prelaunch__media img {
	display: block;
	width: 100%;
	height: auto;

}

.prelaunch__display {
	margin: 0;
	font-family: var(--font-family-display);
	font-size: var(--font-size-display);
	font-weight: var(--font-weight-headings);
	line-height: var(--line-height-headings);
	text-transform: uppercase;
}

/* ========================================
   CALENDARIO GRID
   ======================================== */

.calendario {
	display: grid;
	grid-template-columns: repeat(2, minmax(260px, 1fr));
	gap: 0;
	min-height: 100vh;
}

.cal-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2rem;
	color: var(--color-creces-neutral-white);
	box-shadow: inset 8px 0 12px -4px rgba(0, 0, 0, 0.2);

}

.cal-card__inner {
	width: 100%;
	max-width: 59ch;
	margin: 0 auto;
	text-align: left;
	text-wrap: pretty;
}


/* Variantes de color usando variables */
.cal-card--p100 {
	background: var(--color-creces-primary-100);
}

.cal-card--p200 {
	background: var(--color-creces-primary-200);
}

.cal-card--p300 {
	background: var(--color-creces-primary-300);
}

.cal-card--p400 {
	background: var(--color-creces-primary-400);
}

.cal-card--s300 {
	background: var(--color-creces-secondary-300);
}

.cal-card--s400 {
	background: var(--color-creces-secondary-400);
}

.cal-card__date {
	margin: 0 0 8px;
	font-family: var(--font-family-display);
	font-size: var(--font-size-h3);
	font-weight: var(--font-weight-headings);
	line-height: var(--line-height-headings);
}

.cal-card__title {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: var(--font-size-h4);
	font-weight: var(--font-weight-h4);
	line-height: var(--line-height-headings);
}

@media (max-width: 900px) {
	.calendario {
		grid-template-columns: 1fr;
	}
}

/* ========================================
   CONTACTO
   ======================================== */

.contacto {
	background: var(--color-creces-neutral-white);
}

.contacto__inner {
	width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 40% auto;
	gap: 0;
}

.contacto__title {
	font-family: var(--font-family-display);
	font-size: var(--font-size-h2);
	font-weight: var(--font-weight-headings);
	line-height: var(--line-height-headings);
	color: var(--color-creces-primary-300);
	padding-block: 2rem;
	margin-bottom: 0;
	text-transform: uppercase;
}



.contacto__list {
	margin: 0;
	padding: 0;
	font-family: var(--font-family-body);
	font-size: var(--font-size-body-lg);
	line-height: var(--line-height-body);
	list-style: none;
}

.contacto__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 1rem;
	position: relative;
}

.contacto__list li::before {
	content: '';
	flex-shrink: 0;
	width: 29px;
	height: 29px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	margin-top: 2px;
}

.contacto__list li a {
	color: inherit;
	text-decoration: none;
	transition: text-decoration .15s ease;
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;

	&:hover {
		text-decoration: underline;
	}

	& strong {
		margin-right: 1ch;
	}
}


.contacto__item--direccion::before {
	background-image: url('../images/icons/icon-direccion.svg');
}

.contacto__item--telefono::before {
	background-image: url('../images/icons/icon-telefono.svg');
}

.contacto__item--correo::before {
	background-image: url('../images/icons/icon-correo.svg');
}

.contacto__item--web::before {
	background-image: url('../images/icons/icon-web.svg');
}

.contacto__form {
	display: grid;
	gap: 16px;
	width: min(640px, 90%);
}

.input,
.textarea {
	font-family: var(--font-family-display);
	font-size: var(--font-size-h6);
	padding: .5rem 1rem;
	border-radius: 10px;
	border: 4px solid var(--color-creces-secondary-300);
	outline: none;
	color: var(--color-creces-secondary-400);
	transition: border-color .15s ease;

	&::placeholder {
		color: var(--color-creces-neutral-mid);
	}

	&:focus,
	&:focus-visible {
		border-color: var(--color-creces-secondary-400);
	}
}

.textarea {
	resize: vertical;
}

.btnenv
{
	justify-self: center;
	padding: .5rem 2rem;
	border: none;
	border-radius: 999px;
	background: var(--color-creces-primary-300);
	color: var(--color-creces-neutral-white);
	font-family: var(--font-family-display);
	font-size: var(--font-size-h6);
	text-transform: uppercase;
	font-weight: 700;
	cursor: pointer;
	margin-top: 1rem;
}

/* Placeholder para imagen de fondo del lado izquierdo */
.contacto__left {
	position: relative;
	min-height: 520px;
	background-image: url('https://presupuestocreces.hermosillo.gob.mx/landing/assets/images/imagen_contacto.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: right center;
	color: var(--color-creces-neutral-white);
	overflow: hidden;
	display: grid;
	place-items: flex-end;

	& .contacto__title {
		font-size: var(--font-size-h5);
		color: var(--color-creces-neutral-white);
		padding-bottom: 1rem;
	}
}

.contacto__overlay {
	width: fit-content;
	margin-inline: auto;
	padding: 2rem 1rem;

}

.contacto__right {
	display: grid;
	place-items: center;
	padding-block-end: 4rem;

	& .contacto__title {
		width: 100%;
		text-align: center;
		margin: 0;
		background-color: var(--color-creces-neutral-white);
		filter: drop-shadow(0 3px 16px rgba(0, 0, 0, .17));
		margin-bottom: 4rem;
		margin-top: 0;

	}

}

.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {
	.contacto__inner {
		grid-template-columns: 1fr;
	}

	.contacto__left {
		min-height: 360px;
	}
}

.site-footer {
	background-color: #686868;
	width: 100%;
	color: var(--color-creces-neutral-white);
	font-family: var(--font-family-body);
	font-size: var(--font-size-body-sm);
	margin-top: 0;
	display: flex;

	& a {
		color: inherit;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}

	display: flex;
	width: 100%;
	min-height: 42px;
}

.site-footer>div {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	color: #fff;
	font-size: 16px;
	padding: 0 20px;
}

.site-footer>div:nth-child(2) {
	background: var(--color-creces-primary-300, #EF7025);
	border-top-left-radius: 60px;
	justify-content: flex-end;
}

.site-footer a {
	color: #fff;
	text-decoration: underline;
}


.site-footer>div {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	color: #fff;
	padding: 1rem 2rem;
}

footer>div:nth-child(2) {
	background: var(--color-creces-primary-300);
	border-top-left-radius: 60px;
	justify-content: flex-end;
}

footer a {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.site-footer {
		flex-direction: column;

		& div:nth-child(2) {
			justify-content: center !important;
		}
	}

}

/* ========================================
   ICONOS DE MENÚ - CARD ICONS
   ======================================== */

.card-icon {
	aspect-ratio: 120 / 68;
	width: 90%;
	min-width: 48px;
	max-width: 120px;
	height: auto;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	flex-shrink: 0;
}

@media (max-width: 640px) {
	.card-icon {
		width: 80%;
		max-width: 48px;
	}
}

.icon-que {
	background-image: url('../images/icons/icon-que.svg');
}

.icon-convocatoria {
	background-image: url('../images/icons/icon-convocatoria.svg');
}

.icon-proyectos {
	background-image: url('../images/icons/icon-proyectos.svg');
}

.icon-preguntas {
	background-image: url('../images/icons/icon-preguntas.svg');
}

/* ========================================
   PAGE HEADER - TEMPLATE PÁGINAS INTERNAS
   ======================================== */

.page-header {
	width: 100%;
	background: var(--color-creces-secondary-300);
	background-image: url('../assets/img/2025/city.svg');
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: cover;
	color: var(--color-creces-neutral-white);
	position: relative;
	padding-block-start: 2rem;
	padding-block-end: 2rem;
}

.page-header__inner {
	width: 100%;
	max-width: 1900px;
	margin: 0 auto;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	min-height: 240px;
}

.page-header__logos {
	display: flex;
	align-items: center;
	gap: 2rem;
	justify-content: center;
}

.page-header__logo {
	height: auto;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .2));
}

.page-header__logo--hermosillo {
	width: 96%;
	max-width: 280px;
	flex: 1;
}

.page-header__logo--creces {
	width: 96%;
	max-width: 190px;
	flex: 1;
}

.page-header__rounded-container {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.page-header__rounded-box {
	background: var(--color-creces-neutral-white);
	color: var(--color-creces-neutral-dark);
	padding: 2rem 3rem;
	border-radius: 1rem;
	width: 100%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
	text-align: center;
}

.page-header__title {
	margin: 0 0 1rem 0;
	font-family: var(--font-family-display);
	font-size: var(--font-size-h4);
	font-weight: var(--font-weight-headings);
	line-height: var(--line-height-headings);
	text-transform: uppercase;
}

.page-header__title--highlight {
	color: var(--color-creces-primary-300);
}

.page-header__subtitle {
	margin: 0;
	font-family: var(--font-family-body);
	font-size: var(--font-size-body-lg);
	line-height: var(--line-height-body);
	font-weight: var(--font-weight-body);
}

/* Responsive adjustments */
@media (max-width: 900px) {
	.page-header__inner {
		gap: 1.5rem;
	}

	.page-header__logos {
		gap: 2rem;
	}

	.page-header__rounded-box {
		padding: 1.5rem 2rem;
		max-width: 100%;
	}

	.page-header__title {
		font-size: var(--font-size-h5);
	}
}

@media (max-width: 640px) {
	.page-header__inner {
		padding: 1.5rem 1rem;
		min-height: 200px;
		gap: 1rem;
	}

	.page-header__logos {
		flex-direction: column;
		gap: 1rem;
	}

	.page-header__logo--hermosillo {
		width: 140px;
	}

	.page-header__logo--creces {
		width: 160px;
	}

	.page-header__rounded-box {
		padding: 1rem 1.5rem;
		border-radius: 24px;
	}

	.page-header__title {
		font-size: var(--font-size-h6);
	}

	.page-header__subtitle {
		font-size: var(--font-size-body-sm);
	}
}

/* ========================================
   PAGE CONTENT - CONTENIDO PRINCIPAL
   ======================================== */

.page-content {
	background: var(--color-creces-neutral-white);
	min-height: 60vh;
	padding: 4rem 2rem;
}

.page-content__inner {
	max-width: 1440px;
	margin: 0 auto;
}

.site-navigation 
{
	background: var(--color-creces-neutral-white);
	color: var(--color-creces-neutral-dark);
	padding: 1rem;
	border-radius: 1rem;
	width: 100%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
	overflow: hidden;
	position: relative;
}

.hamburger-menu {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
	position: absolute;
	top: -4px;
	right: 1rem;
	z-index: 10;
}

.hamburger-menu:hover {
	background-color: rgba(43, 168, 154, 0.1);
}

.hamburger-line {
	width: 24px;
	height: 2px;
	background-color: var(--color-creces-secondary-400);
	margin: 2px 0;
	transition: all 0.3s ease;
	transform-origin: center;
}

.hamburger-menu--active .hamburger-line:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu--active .hamburger-line:nth-child(2) {
	opacity: 0;
}

.hamburger-menu--active .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.site-navigation__list {
	display: flex;
	flex-direction: row;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	/*border: 1px solid var(--color-creces-secondary-400);*/
	border-radius: 8px;
	overflow: hidden;
}

.site-navigation__item {
	list-style: none;
	margin: 0;
	padding: 0;
	border-right: 1px solid var(--color-creces-secondary-400);
	flex: 1;
}

.site-navigation__item:last-child {
	border-right: none;
}

.site-navigation__link {
	text-decoration: none;
	color: var(--color-creces-secondary-400);
	font-family: var(--font-family-body);
	font-weight: var(--font-weight-body);
	text-transform: uppercase;
	line-height: 1.5;
	padding: 0.75rem 1rem;
	display: block;
	text-align: center;
	transition: background-color 0.2s ease;
}

.site-navigation__link:hover {
	text-decoration: underline;
	background-color: rgba(43, 168, 154, 0.1);
}

@media (max-width: 768px) {
	.hamburger-menu {
		display: flex;
	}

	.site-navigation__list {
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-creces-neutral-white);
		border-top: 1px solid var(--color-creces-secondary-400);
		border-radius: 0 0 8px 8px;
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
		transform: translateY(-100%);
		opacity: 0;
		visibility: hidden;
		transition: all 0.3s ease;
		z-index: 5;
	}

	.site-navigation__list--open {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.site-navigation--open {
		overflow: visible;
	}

	.site-navigation__item {
		border-right: none;
		border-bottom: 1px solid var(--color-creces-secondary-400);
	}

	.site-navigation__item:last-child {
		border-bottom: none;
	}

	.site-navigation__link {
		padding: 1rem;
		font-size: var(--font-size-body-sm);
	}
}