/* ============================= */
/* VARIABLES GLOBALES DE COLORES */
/* ============================= */

:root {
  --primary-color: #ffffff;
  /* Color de texto principal */
  --secondary-color: #0b534c;
  /* Turquesa */
  --background-color: #121212;
  /* Fondo oscuro */
  --navbar-bg: #1e1e1e;
  /* Color del navbar */
  --accent-color: #0b534c;
  /* Color de hover */
  --shadow-color: rgba(0, 0, 0, 0.5);
  /* Sombra */
  --border-color: #333333;
  /* Bordes */
}

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap');

@font-face {
  font-family: 'Guardians';
  src: url('fonts/CGF-Locust-Resistance.ttf') format('truetype');
  /* Asegúrate de que la ruta sea correcta */
  font-weight: normal;
  font-style: normal;
}

/* ============================= */
/* CONFIGURACIONES GENERALES */
/* ============================= */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Prompt', sans-serif;
  background-color: var(--background-color);
  color: var(--primary-color);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Guardians', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
}

p {
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================= */
/* HEADER Y NAVBAR */
/* ============================= */
header {
  background-color: var(--navbar-bg);
  box-shadow: 0 2px 4px var(--shadow-color);
  position: fixed;
  width: 100%;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
}

.logo-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
}

.logo {
  width: 100%;
  height: auto;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--secondary-color);
}

.navbar.change-color {
  background-color: var(--secondary-color);
}

/* ============================= */
/* HERO SECTION */
/* ============================= */
.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
  color: var(--primary-color);
  padding-top: 120px;
  /* compensar header fijo */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  padding: 20px;
}

.hero-logo-container {
  flex: 1;
  text-align: center;
}

.hero-logo {
  width: 250px;
  height: auto;
  transition: transform 0.3s ease;
}

.hero-text {
  flex: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.cta-button {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-color);
}

.contact-banner {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  font-size: 1.2em;
  z-index: 2;
}

.contact-banner a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;

}

.cg-banner a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  background-color: var(--secondary-color);
}

.contact-banner a:hover {
  color: var(--accent-color);
}

/* ============================= */
/* SECCIONES GENERALES */
/* ============================= */
.about,
.services,
.portfolio,
.contact {
  padding: 80px 20px;
  text-align: center;
  padding-top: 140px;
}

.about {
  background-color: var(--navbar-bg);
}

.services {
  background-color: var(--background-color);
}

.portfolio {
  background-color: var(--navbar-bg);
}

/* ============================= */
/* SECCIÓN SERVICIOS */
/* ============================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service {
  background-color: var(--navbar-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--shadow-color);
  transition: transform 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
}

.service img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.service h3 {
  margin-bottom: 10px;
}

.service p {
  color: var(--primary-color);
}

/* ============================= */
/* SECCIÓN PROYECTOS (PORTFOLIO) */
/* ============================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background-color: var(--navbar-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--shadow-color);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.portfolio-item h3 {
  margin-bottom: 10px;
}

.portfolio-item p {
  color: var(--primary-color);
}

/* ============================= */
/* FOOTER */
/* ============================= */
footer {
  background-color: var(--navbar-bg);
  color: var(--primary-color);
  padding: 20px;
  text-align: center;
}

footer.change-color {
  background-color: var(--secondary-color);
}

footer:hover {
  transition: background-color 0.3s ease;
}

/* ============================= */
/* RESPONSIVE DESIGN */
/* ============================= */
@media (max-width: 768px) {

  header {
    display: none;
  }
  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1em;
  }

  .about-content {
    flex-direction: column;
  }

  .about-content img {
    width: 100%;
  }

  .nav-links {
    gap: 10px;
  }

  .logo-container {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  header {
    display: none;
  }
  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 0.9em;
  }

  .nav-links {
    gap: 5px;
  }

  .hero,
  .about,
  .services,
  .portfolio,
  .contact {
    padding: 60px 15px;
  }

  .logo-container {
    width: 60px;
    height: 60px;
  }
}