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

html, body {
  height: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

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

/* Header */
.site-header {
  background: #0a2540;
  color: #fff;
  padding: 20px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.main-nav ul li a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: url('hero.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.logo-img {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Secciones */
.proyectos, .contactos {
  padding: 60px 20px;
}

.proyectos h2, .contactos h2 {
  width: 70vw;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #0a2540;
  border-bottom: 2px solid #0a2540;
  display: inline-block;
  text-align: center;
}

.proyectos-boxes, .contactos-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.proyecto-item, .contacto-item {
  background: #fff;
  padding: 20px;
  flex: 1 1 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Media */
#media-container {
  text-align: center;
}

.media-item {
  display: inline-block;
  margin: 10px;
  text-align: center;
  border-radius: 8px;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

img, video {
  max-width: 100%;
  max-height: 200px;
  border-radius: 6px;
}

a {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  color: #0a2540;
  font-weight: bold;
  background-color: #e0e0e0;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

a:hover {
  background-color: #cfcfcf;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  max-width: 100%;
  max-height: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
}

.modal-header {
  background-color: #0a2540;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 20px;
  text-align: center;
}

.modal-footer {
  padding: 10px;
  text-align: center;
}

#close-button {
  background-color: #0a2540;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}

#close-button:hover {
  background-color: #143d66;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.3s; }
.service-item:nth-child(3) { animation-delay: 0.5s; }

/* Footer */
.site-footer {
  background: #0a2540;
  color: #ccc;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}
