/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
}



/* Containers */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  text-align: center;
}

/* Hero */
.hero-content .logo {
  height: 200px;
  width: auto;
  max-width: 90vw; /* <-- Agrega este ajuste */
  border-radius: 18px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.hero {
  position: relative;
  height: 100vh;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}
.btn {
  background: #3d6d9c;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}
.btn:hover {
  background: #3d6d9c;
}

/* Sections */
section {
  padding: 80px 20px;
}
section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #222;
  position: relative;
}
section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: #3d6d9c;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}
/* Video */

.video-embed {
  margin: 32px auto 0 auto;
  display: flex;
  justify-content: center;
}
.video-embed iframe {
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(61, 109, 156, 0.12);
  max-width: 100%;
  width: 320px;
  height: 560px;
}

/* Projects & Services */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.card:hover {
  transform: translateY(-8px);
}
.card img {
    width: 100%;
  height: 400px;
  object-fit: cover;
}
.card h3 {
  padding: 15px;
  color: #3d6d9c;
  font-size: 1.2rem;
}
.card p {
  padding: 0 15px 20px;
}

/* Contact */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px auto;
  max-width: 600px;
}
.contact input, .contact textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.contact button {
  background: #3d6d9c;
  color: white;
  border: none;
  padding: 0.9rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: 0.3s;
}
.contact button:hover {
  background: #3d6d9c;
}
.contact-info {
  margin-top: 20px;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 40px;
}


/* Projects / mini-galerías */
.project-list, .service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.project, .service {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
.project h3, .service h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #222;
}

/* Mini-gallery inside project */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.project-gallery.small {
  grid-template-columns: repeat(2, 1fr);
}
.project-gallery .thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  cursor: pointer;
  border: 2px solid rgba(212,160,23,0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}
.project-gallery .thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Modal */
.img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.img-modal img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Modal nav buttons */
.img-modal .modal-prev,
.img-modal .modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 48px;
  height: 64px;
  border-radius: 8px;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 10001;
}
.img-modal .modal-prev { left: 18px; }
.img-modal .modal-next { right: 18px; }
.img-modal .modal-prev:hover,
.img-modal .modal-next:hover {
  background: rgba(255,255,255,1);
}
@media (max-width: 600px) {
  .hero {
    height: 70vh;
    padding: 30px 10px;
  }
  .hero-content .logo {
    height: 90px;
    max-width: 70vw; /* <-- Ajuste para mobile */
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section {
    padding: 40px 8px;
  }
  section h2 {
    font-size: 1.3rem;
  }
  .container {
    padding: 0 6px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .card img {
    height: 180px;
  }
  .video-embed iframe {
    width: 100vw;
    max-width: 98vw;
    height: 340px;
  }
  .contact form {
    max-width: 98vw;
    gap: 10px;
  }
  footer {
    font-size: 0.8rem;
    padding: 12px;
  }
}
@media (max-width: 800px) {
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-gallery .thumb {
    height: 140px;
  }
}
@media (max-width: 480px) {
  .project-list, .service-list {
    grid-template-columns: 1fr;
  }
  .project-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .project-gallery .thumb {
    height: 160px;
  }
}