/* --- Variables de Color y Estilos Globales --- */
:root {
  --primary-color: #005a9c; /* Azul corporativo, inspira confianza */
  --secondary-color: #fdb813; /* Amarillo/Dorado para acentos y botones */
  --dark-color: #2c3e50; /* Gris oscuro para texto */
  --light-color: #ecf0f1; /* Gris claro para fondos */
  --white-color: #ffffff;
}

body {
  font-family: "Poppins", sans-serif; /* Fuente moderna y legible */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--dark-color);
  line-height: 1.6;
}

/* --- Estructura y Contenedores --- */
.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 2rem;
}

/* --- Barra de Navegación --- */
.navbar {
  background: var(--white-color);
  color: var(--dark-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
}

.navbar ul li a {
  color: var(--dark-color);
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: var(--primary-color);
}

/* --- Hero Section (Inicio) --- */
.hero {
  background: url("../images/hero-background.jpg") no-repeat center center/cover;
  height: 80vh;
  color: var(--white-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.hero::before {
  /* Capa oscura para legibilidad */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* --- Botones --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--secondary-color);
  color: var(--dark-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
}

/* --- Secciones Generales --- */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #777;
  margin-bottom: 3rem;
}

/* --- Tarjetas de Servicios --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card i {
  /* Para iconos */
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Galería --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  opacity: 0.8;
}

/* --- Contacto --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: "Poppins", sans-serif;
}

/* --- Footer --- */
.footer {
  background: var(--dark-color);
  color: var(--white-color);
  text-align: center;
  padding: 2rem 0;
}

/* --- Responsive (Para Móviles) --- */
.menu-toggle {
    display: none; /* Oculto en desktop */
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
  }

  .navbar ul {
    display: none; /* Ocultar los links por defecto */
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  .navbar ul.active {
    display: flex; /* Mostrar cuando el menú está activo */
  }

  .menu-toggle {
    display: block; /* Mostrar el botón de hamburguesa */
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
