:root { 
	--white: #fff;
	--black: rgb(25,25,25);
	--absblack: #000;
	--grey: #303030;
	/*--primary: #FFC107;*/
	--primary: #3E065F;
	--secondary: #700B97;
	--terciary: #8E05C2;
	/*--secondary: #0097A7;*/

	--title-fontsize: 3.8rem;
	--subtitle-fontsize: 2.8rem;
	--secondary-subtitle-fontsize: 2.1rem;
}

/* Globals */
html {
	box-sizing: border-box; /* Boxmodel hack */
	font-size: 62.5%; /* Normalize rem */
	color: var(--white);
}

*, *:before, *:after { 
	box-sizing: inherit; /* Boxmodel hack */
	margin: 0;
}

body {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 16px;
	background-color: #070707;
}

header {
	background-color: var(--black);
	padding: 2.5rem;
}

.contenedor {
	margin:  0 auto;
	max-width: 100rem;
}

.boton {
	background-color: var(--secondary);
	border-radius: 0.5rem;
	border: none;
	color: var(--white);
	font-size: 2rem;
	margin-top: 1rem;
	padding: 1rem 3rem;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	width: 50%;
	border: none;
}

@media (min-width: 480px) {
	.boton {
		width: auto;
	}
}

.boton:hover {
	cursor: pointer;
}


.sombra {
	background-color: var(--black);
	-webkit-box-shadow: 0px 5px 15px 3px rgba(0,0,0,0.52);
	-moz-box-shadow: 0px 5px 15px 3px rgba(0,0,0,0.52);
	box-shadow: 0px 5px 15px 3px rgba(0,0,0,0.52);
	padding: 2rem;
	border-radius: 0.5rem;
}

/* Typography */

h1 {
	font-size: var(--title-fontsize);
	margin: 0;
}

h2 {
	font-size: var(--subtitle-fontsize);
	margin-bottom: 2rem;
}

h3 {
	font-size: var(--secondary-subtitle-fontsize);
}

h1, h2, h3 {
	text-align: center;
}

a{
	text-decoration: none;
}

a:visited, a:hover, a:active {
	color: inherit;
}

/* Titles */
.titulo {
	color: var(--white);
	font-weight: normal;
}

/* Smaller text inside title */
.titulo span {
	font-size: 2rem;
}

.nav-bg {
	background-color: var(--secondary);
}

.navegacion-principal {
	align-items: center;
	display: flex;
	flex-direction: column;
}

@media (min-width: 480px) {
	.navegacion-principal {
		flex-direction: row;
		justify-content: space-evenly;
	}
}

.navegacion-principal a {
	color: var(--white);
	font-size: 2rem;
	padding: 1rem;
	text-decoration: none;
}

.navegacion-principal a:hover {
	background-color: var(--primary);
	color: var(--black);
}

/* Presentation */

.presentacion {
	background-image: url(../images/bgimg.jpg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--white);
	height: 45rem;
	position: relative;
	margin-bottom: 2rem
}

.contenido-presentacion {
	background-color: rgb(0 0 0 / 90%);
	background-color: rgba(0, 0, 0, 0.9);
	height: 100%;
	position: absolute;
	width: 100%;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
}

.contenido-presentacion h2,
.contenido-presentacion p {
	color: var(--white);
}

/* Terminal style text */
.terminal {
	font-size: 2rem;
	font-weight: 700;
}

@media (min-width: 480px) {
	.terminal {
		font-size: 3rem;
	}
}

.location {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Services */

@media (min-width: 480px) {
	.services {
		display: grid;
		grid: repeat(2, 1fr) / repeat(3, 1fr);
		/* grid-template-columns: 30rem 30rem 30rem;
		grid-template-rows: 20rem 20rem; */
		column-gap: 1rem;
		row-gap: 2rem;
	}
}

.service {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 2rem 0;
}

@media (min-width: 480px) {
	.service{
		margin: 1rem 0;
	}
}

.service h3 {
	color: var(--white);
	font-weight: normal;
	text-transform: capitalize;
}

.service p {
	line-height: 2;
	text-align: center;
	white-space: pre-line;
}

.service .icons {
	height: 15rem;
	width: 15rem;
	margin: 1rem;
	background-color: var(--primary);
	border-radius: 50%;
	display: flex;
	justify-content: space-evenly;
	align-items: center;
}

.contact {
	margin-top: 3rem;
}

.contact-form {
	background-color: var(--grey);
	width: min(60rem, 100%);
	height: fit-content;
	margin: 0 auto;
	padding: 2rem;
	border-radius: 1rem;
}

.contact-form fieldset {
	border: none;
}

.contact-form legend {
	text-align: center;
	font-size: 1.8rem;
	text-transform: uppercase;
	font-weight: bold;
	margin-bottom: 1rem;
}



@media (min-width: 480px) {
	.form-inputs-container {
		display: grid;
		grid: auto auto 20rem / repeat(2, 50%);
		column-gap: 1rem;
	}

	.field:nth-child(3), .field:nth-child(4) {
		grid-column: 1 / 3;
	}
}

.field {
	margin-bottom: 1rem;
}

.field label {
	color: var(--white);
	font-weight: bold;
	margin-bottom: 0.5rem;
	display: block;
}

.field input, .field textarea {
	width: 100%;
	border: none;
	padding: 1.5rem;
	border-radius: 0.5rem;
}

.field textarea {
	height: 17rem;
	resize: none;
}

footer {
	text-align: center;
	height: fit-content;
	padding: 1rem;
}

.socialmedia {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--white);
}

.socialmedia p {
	text-decoration: none;
}

/*Utilities*/
.w-sm-100 {
	width: 100%;
}

@media (min-width: 480px) {
	.w-sm-100 {
		width: auto;
	}
}

.flex {
	display: flex;
}

.rigth-align {
	justify-content: flex-end;
}

/* Animations */

/*Credits for animation: https://css-tricks.com/snippets/css/typewriter-effect/*/
.typewriter h2 {
	overflow: hidden; /* Ensures the content is not revealed until the animation */
	border-right: .20em solid var(--primary); /* The typwriter cursor */
	white-space: nowrap; /* Keeps the content on a single line */
	margin: 0 auto; /* Gives that scrolling effect as the typing happens */
	letter-spacing: .15em; /* Adjust as needed */
	animation: 
	  typing 3.5s steps(40, end),
	  blink-caret .75s step-end infinite;
  }
  
  /* The typing effect */
  @keyframes typing {
	from { width: 0 }
	to { width: 100% }
  }
  
  /* The typewriter cursor effect */
  @keyframes blink-caret {
	from, to { border-color: transparent }
	50% { border-color: var(--primary); }
  }
