/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente general */
body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0e0f0f;
  color: #e4e4dc;
  line-height: 1.75;
}

/* Contenedor general */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Encabezado */
header {
  background: linear-gradient(145deg, #000000, #3e5237);
  padding: 60px 20px;
  text-align: center;
  color: #000;
  border-bottom: 1px solid #4a4a3f;
}

header h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

header p {
  font-size: 1.3rem;
  color: #cbd5bd;
}

/* Navegación */
nav {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
}

nav a {
  color: #b7c4a8;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1.75rem;
}

nav a:hover,
nav a:focus {
  color: #d5e1c1;
  outline: none;
}

/* Secciones */
section {
  padding: 50px 20px;
  background-color: #1b1d1a;
  margin-bottom: 30px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(60, 75, 50, 0.15);
}

section h2 {
  color: #a4b58a;
  font-size: 2rem;
  margin-bottom: 20px;
  border-left: 4px solid #6a7b5e;
  padding-left: 10px;
}

/* Barra superior */
.top-bar {
  background-color: #111;
  color: #f0f0f0;
  padding: 10px 20px;
}

.top-bar .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

/* Logo */
.logo {
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Hero */
.hero {
  background: url('resources/img1.jpg') center center / cover no-repeat;
  height: 35vh;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  position: relative;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1.5px;
}

.hero .verde {
  color: #a4b58a;
}

.hero p {
  font-size: 1.8rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1.4;
}

/* Sobre nosotros */
.about-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.about-content .image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Tarjetas */
.card {
  background: linear-gradient(145deg, #242723, #1a1c1a);
  border: 1px solid #3d453a;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #b8cc9d;
  margin-bottom: 12px;
}

/* Botones */
button {
  background: linear-gradient(135deg, #5a6b4f, #819272);
  color: #f4f4ec;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease-in-out;
}

button:hover,
button:focus {
  background: linear-gradient(135deg, #7a8b6e, #a1b58a);
  outline: none;
}

/* Pie de página */
footer {
  background-color: #2b3027;
  color: #aab49c;
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
  border-top: 1px solid #3a3f35;
}

/* Servicios con imágenes */
.card-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card-content img {
  width: 250px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.card .text {
  flex: 1;
}

/* Imagen a la derecha */
.card.reverse .card-content {
  flex-direction: row-reverse;
}

/* Media queries agrupadas */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.4rem;
  }

  nav a {
    display: inline-block;
    margin: 10px 15px;
    font-size: 1.4rem;
  }

  section {
    padding: 30px 15px;
  }

  .hero {
    height: 60vh;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.4rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-content .image img {
    width: 100%;
    margin-top: 20px;
  }

  .card-content {
    flex-direction: column;
    text-align: center;
  }

  .card.reverse .card-content {
    flex-direction: column;
  }

  .card-content img {
    width: 100%;
    max-width: 300px;
  }
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.gallery-grid img:hover {
  transform: scale(1.03);
}

/* Lightbox para ampliar imágenes de la galería */
.lightbox {
  display: none; /* Oculto por defecto */
  position: fixed;
  inset: 0; /* top, right, bottom, left = 0 */
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
}

.lightbox.active img {
  transform: scale(1);
  opacity: 1;
}

.lightbox:focus {
  outline: none;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.why-card {
  background: #1b1d1a;
  padding: 20px;
  border: 1px solid #3d453a;
  border-radius: 10px;
  text-align: center;
}

.why-card i.icon {
  font-size: 2rem;
  color: #a4b58a;
  display: block;
  margin-bottom: 10px;
}

