/* SECCIÓN CONTACTO */
.contacto {
  background-color: #1d2d44;
  padding: 4rem 2rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contacto-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.formulario,
.info-contacto {
  flex: 1 1 100%;
  max-width: 600px;
  color: #fff;
}

.formulario h2,
.info-contacto h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.formulario form {
  display: flex;
  flex-direction: column;
}

.formulario input,
.formulario textarea {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.formulario input:focus,
.formulario textarea:focus {
  outline: none;
  border-color: #b88a2b;
  box-shadow: 0 0 5px #b88a2b;
}

.formulario button {
  background-color: #b88a2b;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.formulario button:hover {
  background-color: #96721f;
}

.info-contacto p {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.imagen-contacto {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen-contacto img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FONDO DIAGONAL CON IMAGEN */
.contacto-diagonal {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  background-color: #1d2d44;
  overflow: hidden;
  padding: 4rem 2rem;
}

.contacto-diagonal::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url("assets/imgcontacto.jpg");
  background-size: cover;
  background-position: center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
  opacity: 0.95;
}

.formulario-contacto {
  position: relative;
  z-index: 1;
  background-color: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  margin-left: 1rem;
  color: #1d2d44;
}

.formulario-contacto h2 {
  color: #1d2d44;
  margin-bottom: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

/* Estilo al enfocar campos */
.formulario-contacto input:focus,
.formulario-contacto textarea:focus {
  outline: none;
  border-color: #1d2d44;
  box-shadow: 0 0 5px #1d2d44;
}

.formulario-contacto button {
  background-color: #1d2d44;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #b88a2b;
}

/* POPUP de éxito */
.popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #d4edda;
  color: #155724;
  border-left: 6px solid #28a745;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-weight: bold;
  z-index: 999;
  transition: opacity 0.3s ease;
}

.popup.oculto {
  opacity: 0;
  pointer-events: none;
}

.popup.mostrar {
  opacity: 1;
}

/* RESPONSIVO */

/* Tablets */
@media (max-width: 1024px) {
  .contacto-grid {
    gap: 2rem;
  }

  .formulario,
  .info-contacto {
    max-width: 100%;
  }

  .imagen-contacto {
    flex: 1 1 50%;
  }

  .formulario-contacto {
    max-width: 450px;
    margin-left: 0;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .contacto-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .imagen-contacto {
    flex: 1 1 100%;
  }

  .formulario-contacto {
    max-width: 100%;
    padding: 1.5rem;
    margin-left: 0;
  }

  .formulario-contacto button {
    width: 100%;
  }
}
