/* Reset general */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
}

body {
  background: #111111;
  color: #ffffff;
}

/* ========== NAVBAR ========== */
.navbar {
  background-color: rgba(46, 122, 105, 0.92);
  padding: 15px 30px;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.navbar .logo {
  font-weight: bold;
  font-size: 1.5rem;
}

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

.navbar ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #00d1b2;
}

/* ========== CONTAINER GENERAL ========== */
.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
}

/* ========== TITULOS ========== */
h1 {
  text-align: center;
  margin: 40px 0 20px;
  color: #ffffff;
}

h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

h3 {
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* ========== CARD SECCION ========== */
.card-seccion {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  margin: 50px auto;
  max-width: 1200px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== SERVICIOS ========== */
.tarjetas-servicio {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.servicio {
  background-color: #274747;
  border: 1px solid #062557;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  flex: 1 1 30%;
  min-width: 250px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.servicio:hover {
  transform: scale(1.03);
}

.servicio img {
  height: 150px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

.servicio h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: white;
}

.servicio p {
  font-size: 0.95rem;
  color: #ffffff;
}

/* Botón Ver más */
.ver-mas {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: rgba(46, 122, 105, 0.92);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.ver-mas:hover {
  background-color: #00a08c;
}

/* ========== FORMULARIO ========== */
.formulario {
  background-color: #1e1e1e;
  padding: 40px 20px;
  max-width: 600px;
  margin: 50px auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.intro-formulario {
  text-align: center;
  font-size: 1rem;
  color: #bbbbbb;
  margin-bottom: 30px;
  line-height: 1.5;
}

.formulario h2 {
  color: rgb(255, 255, 255);
  margin-bottom: 30px;
  text-align: center;
}

.formulario label {
  display: block;
  margin: 12px 0 6px;
  font-weight: bold;
  color: #ffffff;
}

.formulario input,
.formulario select,
.formulario textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #2c2c2c;
  color: #fff;
  margin-bottom: 15px;
}

.formulario button {
  background-color: rgba(46, 122, 105, 0.92);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
  width: 100%;
}

.formulario button:hover {
  background-color: #00a08c;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(3px);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-contenido {
  background: #000000;
  padding: 40px 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideIn 0.4s ease;
}

.cerrar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.cerrar:hover {
  color: #e74c3c;
  transform: scale(1.2);
}

.hidden {
  display: none;
}
#modal-mensaje-titulo {
  color: #00d1b2;
}

.modal-contenido p {
  white-space: pre-line;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ========== FOOTER ========== */
.footer {
  background-color: rgba(46, 122, 105, 0.92);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .container-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .tarjetas-servicio {
    flex-direction: column;
    align-items: center;
  }

  .servicio {
    width: 100%;
    max-width: 350px;
  }

  .card-seccion,
  .formulario {
    padding: 20px;
    margin: 20px;
  }

  .formulario input,
  .formulario select,
  .formulario textarea {
    font-size: 1rem;
  }

  .formulario button {
    font-size: 1rem;
  }
}
