/*
Theme Name: Tech
Description: Tema de Misiones Tech Week: hero animado, plantilla Home y plantilla Landing.
Version: 1.1.0
Text Domain: tech
*/

html,
body {
	height: 100%;
	margin: 0;
}

body {
	background-color: #0E1316;
}

.tech-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	overflow: hidden;
	background: #202124;
}

/* Lluvia de 0 y 1 (la dibuja assets/hero.js) */
.tech-hero__rain {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.tech-hero__content {
	position: relative;
	z-index: 1;
}

.tech-hero img {
	display: block;
	max-width: 80%;
	height: auto;
}

.tech-hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	width: 100%;
}

.tech-date {
	margin: 0;
	padding: 0.6em 2.2em;
	border: 2px solid #5BE08A;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: clamp(1.1rem, 2.6vw, 2rem);
	font-weight: 300;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.tech-place {
	margin: -1rem 0 0;
	color: #fff;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: clamp(1rem, 2vw, 1.5rem);
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: center;
}

.tech-place strong {
	font-weight: 700;
}

.tech-hero__bottom {
	position: absolute;
	right: 0;
	bottom: 1.25rem;
	left: 0;
	z-index: 1;
	display: flex;
	justify-content: center;
}

/* Botón de inscripción */
.tech-cta {
	display: inline-block;
	padding: 0.8em 2.2em;
	border: 2px solid #5BE08A;
	border-radius: 999px;
	background: #5BE08A;
	color: #0E1316;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	transition: background 0.2s, color 0.2s, transform 0.2s;
}

.tech-cta:hover,
.tech-cta:focus-visible {
	background: #fff;
	border-color: #fff;
	transform: translateY(-2px);
}

.tech-cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.tech-date strong {
	font-weight: 800;
}

.tech-date__month {
	color: #5BE08A;
}

.tech-about {
	box-sizing: border-box;
	width: 100%;
	max-width: 44rem;
	margin: 0 auto;
	padding: 0 1.5rem;
	color: #fff;
	font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	font-size: 0.95rem;
	font-weight: 300;
	line-height: 1.5;
	text-align: center;
}

.tech-about p {
	margin: 0 0 1.25em;
}

.tech-about strong {
	font-weight: 700;
}

.tech-about .tech-green {
	color: #5BE08A;
}

/* Móvil y tablet: el hero ocupa la mitad de la altura de la pantalla. */
@media (max-width: 1023px) {
	.tech-hero:not(.tech-hero--landing) {
		box-sizing: border-box;
		min-height: 50vh;
		min-height: 50svh;
		padding: 2rem 0 5rem; /* deja lugar al botón, que va abajo */
	}
}

/* Escritorio: proporciones según maqueta (referencia 2000x1122). */
@media (min-width: 1024px) {
	.tech-hero:not(.tech-hero--landing) {
		height: 690px;
		min-height: 0;
	}

	.tech-hero img {
		max-width: 39vw;
	}

	.tech-hero__content {
		gap: 5.4vw;
	}

	.tech-date {
		padding: 0.25em 0.65em;
		border-width: 1px;
		background: rgba(255, 255, 255, 0.06);
		font-size: 1.8vw;
		line-height: 1.2;
	}

	.tech-about {
		margin-top: -2.9vw;
		font-size: clamp(0.85rem, 1vw, 1rem);
	}

	.tech-place {
		margin-top: -3.9vw;
		font-size: 1.45vw;
		font-weight: 300;
		letter-spacing: 0;
	}

	.tech-hero__bottom {
		bottom: 3vw;
	}

	.tech-cta {
		font-size: max(0.95rem, 1.1vw);
	}
}
