@charset "UTF-8";
/* CSS Document */

/* General styling */

/*
@font-face {
    font-family: 'RedHat-Regular';
    src: url("../fonts/RedHatDisplay-Regular.ttf")format('truetype');
}
*/

@font-face {
    font-family: 'RedHat-Black';
    src: url("../fonts/RedHatDisplay-Black.ttf")format('truetype');
}

@font-face {
font-family: "Roc-grotesk", Arial, sans-serif;
font-weight: 400;
font-style: normal;
}

@font-face {
font-family: "Roc-grotesk", Arial, sans-serif;
font-weight: 600;
font-style: normal;
}

:root {
	/* Colores */
    --rojo: #c62222; /*ED1B24*/
    --verde: #3c5f70;
    --gris: #e9e9e9;
    --blanco: #FFFFFF;
    --negro:#000000;
	
    /* Fuente */
    --Title: 'RedHat-Black';
	--Titlestyle: uppercase;
	--Subtitle: 'Roc-grotesk';
	--Paragraph: 'Roc-grotesk';
	
	/*Font Weight*/
	--bold: 600;
	--regular: 400;
	
    /* Tamano */
    --Small: 1.2rem;
    --Medium: 6em;
    --Large: 4rem;
	
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--Paragraph);
  font-weight: var(--regular);
  color: #222;
  line-height: 1.6;
  background: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}


/* Header */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: 0 2px 4px rgba(0,0,0,0);
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem;
	border: 0px solid red;
}
.logo {
  height: 60px;
	border: solid 0px red;
}
.desktop-nav {
  display: flex;
  gap: 1rem;
}
.desktop-nav a {
  padding: 0.5rem 1rem;
  color: var(--blanco);
}
.menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  z-index: 999;
}
.mobile-menu.hidden {
  display: none;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.close-btn {
  align-self: flex-end;
  font-size: 1.5rem;
  background: none;
  border: none;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}
.hero-text {
  border: solid 0px red;
  position: relative;
  z-index: 2;
  text-align: center;
  height: 100vh;
	width: 90vw;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}
.hero-text h1 {
line-height: 4rem;
  font-size: var(--Large);
  text-transform: var(--Titlestyle);
}
.hero-text .subtitle {
  margin: 0;
  font-size: var(--Small);
  color: var(--blanco);
  text-transform: uppercase;
}

.subtitle {
	margin: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  margin: 0.5rem;
  transition: background 0.5s ease;
	text-transform: uppercase;
	font-family: var(--Subtitle);
	font-weight: var(--regular);
		background: var(--rojo);
background: -webkit-linear-gradient(90deg, rgba(237, 27, 36, 1) 0%, rgba(60, 95, 112, 1) 100%);
background: -moz-linear-gradient(90deg, rgba(237, 27, 36, 1) 0%, rgba(60, 95, 112, 1) 100%);
background: linear-gradient(90deg, rgba(237, 27, 36, 1) 0%, rgba(60, 95, 112, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ED1B24", endColorstr="#3C5F70", GradientType=1);
}

.btn.primary {
	width: auto;
	margin: 1rem auto;
}

.btn.primary:hover {
	background: var(--rojo);
background: -webkit-linear-gradient(90deg, rgba(237, 27, 36, 1) 0%, rgba(60, 95, 112, 1) 52%);
background: -moz-linear-gradient(90deg, rgba(237, 27, 36, 1) 0%, rgba(60, 95, 112, 1) 52%);
background: linear-gradient(90deg, rgba(237, 27, 36, 1) 0%, rgba(60, 95, 112, 1) 52%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ED1B24", endColorstr="#3C5F70", GradientType=1);
}


.btn.secondary {
  background: #fff;
  color: #222;
  border: 1px solid #222;
}
.btn.white {
  background: #fff;
  color: #000;
}
.btn.black {
  background: #000;
  color: #fff;
}

/* About section */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 5rem 1rem;
}
.about .highlight {
  color: #0077ff;
}
.avatar-container {
  position: relative;
  text-align: center;
}
.avatar-container img {
  width: 250px;
  margin: auto;
}
.avatar-container .hint {
  font-size: 0.8rem;
  color: #666;
}

/*Text animation highlight*/
.highlight-sweep {
  /* Base text styling */
  font: 600 2rem/1.3 system-ui, sans-serif;
  color: #111;
  display: inline; /* important for background to fit the phrase */

  /* The "highlight" is a gradient behind the text */
  background-image: linear-gradient(#fff200, #fff200);
  background-repeat: no-repeat;
  background-position: 0 100%; /* align at bottom */
  background-size: 0% 1.1em;   /* start with no width; height ~ text line */

  /* Some padding so the highlight looks like a marker */
  padding: 0 .15em;
}

/* Only animate when this class is present */
.highlight-sweep.animate {
  animation: fillFromLeft 3s ease forwards;
}

@keyframes fillFromLeft {
  from { background-size: 0% 1.1em; }
  to   { background-size: 100% 1.1em; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .highlight-sweep.animate {
    animation: none;
    background-size: 100% 1.1em; /* show final state without motion */
  }
}

/* Services */
.services {
  padding: 5rem 1rem;
  text-align: center;
}
.services .carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}
.services .card {
  width: 250px;
  border: 1px solid #ddd;
  padding: 1rem;
  border-radius: 6px;
  background: #fafafa;
}

/* Publicaciones */
.publicaciones {
  padding: 5rem 1rem;
}
.publicaciones .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.publicaciones article {
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 4px;
  background: #fafafa;
}

/* Footer */
.footer {
  background: #111;
  color: #eee;
  padding: 2rem 1rem;
}
.footer .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
}
.footer a {
  color: #eee;
}

/* Responsive */
@media(max-width:768px){
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .publicaciones .grid {
    grid-template-columns: 1fr;
  }
}


